I am sending DELVRY03 type IDOC from SAP 4.6C to third party as an XML document using Business Connector. My mapping is as follows
LOOP over ‘DELVRY03/DELVRY03/IDOC’
–MAP (Header fields from E1EDL20)
–LOOP over ‘DELVRY03/DELVRY03/IDOC/E1EDL20’
----MAP (E1EDL24 fields occurs many times - Items)
----LOOP over ‘DELVRY03/DELVRY03/IDOC/E1EDL20/E1EDL24’
------MAP (E1ADRM1 fields - Shipto )
My External format requires data in the following format
DocHeader
Request (Record List)
–Shipto (address)
–Items (Record List)
Simple example
<?xml>
<als>
–<docheader>
----<request>
------<shipto>
------</shipto>
------<orderline>
------</orderline>
------<orderline>
------</orderline>
----</request>
So far I have not been successful in mapping two line items under one request. I am very new to BC. I have tried several combinations by mapping my segments into temporary record lists etc. without any success. I would appreciate if someone can point me in the right direction. This will help me to proceed further.
Thanks,