Creating the IDOC element
I am getting an SAP-XML file where in I have the source structure as
ORGANISATION (0 to unbounded)
-> TAG002 (1-1)
-> TAG019(0 to unbounded)
under TAG019 I have a filed called legacy system ID and under TAG002 I have a field called Customer Name.
Now I am creating IDOC's only when my Legacy system ID under TAG019 is "1" for every occurance of ORGANISATION.
and then populating the Customer name to Name1 segment of Debmas06 Idoc.
This is working fine.
But when I have multiple Organisations and multiple TAG019's and in which if I have legacy system Id as 2 once and 1 in the second occurance of the TAG019 in orgnaisation then this customer number is not being poplutated.
Do I need to write any UDF for this?