Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

1:n mapping

Hello experts,

as an inbound message I have a XML like following

























I need to map if to the outbound interface as following:






















The order of the outbound records is not important. How can this be done? Preferably in the graphical interface without programming.



Former Member
Former Member replied

Hi Jiri

You can create a 1...unbounded RECORD field on target data type, with ID, TYPE and NUMBER as subfields.

In the graphical mapping, right click on the RECORD targe field and choose "Duplicate subtree".

A new RECORD will be added with all its subfields. Repeat this until you have a target RECORD for each source field like phone1, phone2....

Map target RECORD field with PHONE1, the second record with PHONE2, and so on.

You can just map them all with source RECORD field if all PHONE1, PHONE2... fields are mandatory.

Then you need to map the target ID with source ID.

For the TYPE target field, use a constant "PHONE1" and then map the PHONE1 field with target NUMBER field.

Iterate this replacing the constant "PHONE1" with the needed value and mapping target NUMBER field with correct source field.



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question