Mapping of Idoc to external system..
I am struggling with one mapping scenario and looking your help to achieve the output.
It's for Idoc to external system.
Source Structure -->
EDP01 ( 0 to unbounded)
--EDPT1( 0 to unbounded)
TDID ( 0 to 1)
TDLINE ( 0 to 1)
Receiver Structure --->
OrderLines ( 0 to 1)
-- OrderLine ( 0 to unbounded)
---Lineattachments(0 to 1)
----Lineattachment( 0 to unbounded)
-----LineattachmentText( 0 to 1)
Mapping has to perform like, if TDID contains F12 then TDLINE value has to be populated into the LineAttachmentText. And the occurance of OrderLine should be the same as the occurance of EDP01. Means if EDP01 is coming three times then OrderLine will also be created three times. And if the TDID comes in the second EDP01 then the Lineattachment should be filled into the second OrderLines.
Please provided you valuable inputs.