Skip to Content

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

Repeat Target Segment based on multiple source fields

Hi Experts,

I have following scenario of mapping,

Source Structure (Customized structure from legacy system):


.....multiple fields






.....multiple fields (same parent)


Target Structure (Standard structure):

<Purchase Order>

.....multiple fields

<Tax Detail> (0 to unbounded)


</Tax Detail>

</Purchase Order>

I need to repeat Tax Detail segment in Target structure based on how many Tax field comes in Source structure (same level) of now it is 5. is it possible using standard functions or do I need to write UDF...if yes please provide details on how should I proceed.

Please help.

Thanks and Regards,

Nitin Patil

Former Member


If input elements are Tax, Tax, Tax, Tax, Tax then map one-to-one Tax to target TaxDetail.

If Input elements are Tax1,Tax2,Tax3,Tax4, Tax5 then duplicate target TaxDetail 5 times in target structure in message mapping and map one-to-one.

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