cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping every record in a given message type to an IDoc

Former Member
0 Kudos

Hi all,

As per the requirement, I have a message type which stores a number of records from the database. The root node of the message type repeats as many times as the number of records. I need to map this message type to an IDoc with an IDoc created for each record. However, the pre-defined structure of IDoc has the root node occuring only once. Can the mapping of every record to an IDoc be acheived by using Message tab of the message mapping to have the IDoc occurence as 0..unbounded?

Thanks,

Amit

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

In message mapping Change the occurence of the IDOC as 0 to unbounded in the Target message inside Messages Tab.

Also change the occurrence of IDOC in the Interface mapping as 0 to unbounded.

Thanks,

Tiny

Edited by: TINY MAMPILLY on May 7, 2009 11:14 AM

Former Member
0 Kudos

Hi,

Idocs wont work with changing occurances in Message Tabs or in Interface Mapping.

Please export the XSD of Idoc from IR. Change the occurrance in XSD save it and import to IR.

Second option is to go for Idoc Packaging.

Regards,

Vineetha.

Former Member
0 Kudos

Hi,

Please check the following link - Blog for changing the occurances of IDoc:

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

Regards,

Vineetha.

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi,

Map your record root node to IDOC root node. So as many times your record appears IDOC will be created. Also note both structures have to be 0... unbounded.

Regards,

Siddhesh S.Tawate