cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple segments in Custom IDOC Message Mapping to XSD

Former Member
0 Kudos

Need to map multiple segments in an IDOC to XSD.

These Multiple segments get created at runtime for a custom IDOC which has 5Segments defined under it. Each of those 5 Segments can repeat any number of times and they are decided at runtime.

My problem is when importing the IDOC to XI , I have only those 5segments to map to fields in XSD. However at runtime each segment may repeat . So at runtime , need to read all the occurences of segments ,populate the XSD structure and create multiple records depending on the number of occurences of a segment.

Pls suggest a best approach to do this message mapping.

thnx

sunil

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Sunil

When u look @ the IDOC structure as an XSD it should have n occurences as defined in SAP.So do your root mapping from segment IDOC segment to the corresponding root nodes in target XSD and you should be on..

Former Member
0 Kudos

Hi Sunil,

Please can you check if the XSD that you have has 0...unbounded.

YOu must be having a mapping doc which says this segment needs to go here in the XSD. Just see if there is 0...unbounded for the segments which can occur multiple times in IDoc.

Regards

Vijaya