Repeat Target Segment based on multiple source fields
I have following scenario of mapping,
Source Structure (Customized structure from legacy system):
.....multiple fields (same parent)
Target Structure (Standard structure):
<Tax Detail> (0 to unbounded)
I need to repeat Tax Detail segment in Target structure based on how many Tax field comes in Source structure (same level)...as 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.
Thanks and Regards,
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.