cancel
Showing results for 
Search instead for 
Did you mean: 

creating multiple idocs in ABAP mapping

Former Member
0 Kudos

Hi,

my scenario is source message (JDBC) to target message (idoc).

There can be multiple idocs (unbounded).

I am using ABAP mapping to create the Idoc XML structure. For this i use function module IDX_IDOC_TO_XML.

The idoc is getting created but the problem occurs in case of generating multiple idoc instances.

I changed the idoc occurence to unbounded & used the new idoc external definition in the interface mapping.

I also call the IDX_IDOC_TO_XML & create the output stream factory in a loop (per idoc ).

However only 1 idoc gets generated every time.

Can someone suggest how to create the multiple idocs.

Regards

Prasenjit

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi Prasenjit,

In order to generate multiple idoc first of all you need to change the target structure with multiple occurence...that you have already done...

Now while generating XML in abap mapping you have to make sure you have element idoc(with its content) repeating for your "N" number of idocs...

can you please copy paste your final xml generated...

Nilesh