Hi there!
I'm currently stuck at implementing a new message mapping based on an DELVRY07 idoc.
So the IDOC has the following segment structure
DELVRY07
- IDOC
-- E1EDL20
---E1ADRM1(1:N)
----PARTNER_Q
----PARTNER_ID
The result is in the following structure
-FILE
--DELIVRY(1:N)
---HEAD(1:1:)
----STORAGE_FLAG(1:1)
---POSITION(1:N)
----STORAGE_FLAG(1:1)
The story behind this mapping is, that based on the carrier (PARTNER_Q = SP) we need to evaluate the storage_flag. The output file will be sent to the carrier. The storage flag routes the packages to the relevant hubs. But we create these deliveries that only one flag is necessary. This means, storageflag on head and positions are the same.
I'm currently having a hard time creating the necessary message mapping. Per E1EDL20 one POSITION will be created.
I need to select that single E1ADRM1 where the PARTNER_Q equals SP. Based on this one PARTNER_ID i want to set the STORAGE_FLAG for the new position. As i know this flag will be relevant for the whole idoc, i want to set it for the HEAD-storage_flag too.
So, i am struggling with the queue and the given context and need some tips&tricks, how i should solve this issue or a little trick to know which node function and context is relevant, to achieve my result.
thanks in advance!
BR
Pascal