Skip to Content

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

Creating the IDOC element


I am getting an SAP-XML file where in I have the source structure as

ORGANISATION (0 to unbounded)

-> TAG001(1-1)

-> 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?

Please suggest.



Former Member
Former Member replied

Pass the two values TAG019 and TAG002 to UDF.

Take the TAG019 in one context.

For(i=0;i< TAG019.length;i++)




Other method is useofMany UDf which SAP XI has provided you can use that also.

Thanks and Regards,

Chirag Gohil

0 View this answer in context

Helpful Answer

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