cancel
Showing results for 
Search instead for 
Did you mean: 

Spilitting of one record into multiple segments in IDOC

Former Member
0 Kudos

Hi,

I have a requirment to Spilit the single record into multiple segments in IDOC with the same information.

Eg: Source record structure:

<ITEMS>

<KEY>......</KEY>

<Code1>......</Code1>

<Code2>......</Code2>

<wkq>......</wkq>

<mtr>......</mtr>

<qty_1>......</qty_1>

<qty_2>......</qty_2>

<qty_3>......</qty_3>

<qty_4>......</qty_4>

<qty_5>......</qty_5>

</ITEMS>

My target IDoc structure is

<ITEMS>

<KEY>.....</KEY>

<Code1>.....</Code1>

<Code2>.....</Code2>

<wkq>.....</wkq>

<mtr>.....</mtr>

<qty>.....</qty>

</ITEMS>

Since there is only one quantity"qty" field in the target structure, I need to create 5 segments with same KEY, Code1, Code2, wkq, mtr values with different qty values.

I tried but i am getting 5 segments, in that 1 segment is filling with info and remaining 4 segments coming without any data.

Could anyone plz let me know how to do this...

Thanks,

kumar

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Kumar,

is your this problem resolved now or not?..........

Thanks,

Rajeev Gupta

Former Member
0 Kudos

Rajeev,

My problem is resolved but done in different way.

thankx

kumar.

Former Member
0 Kudos

Hope your <qty> at target IDOC has max Occurs = unbounded.

Right click the qty element and select the option Duplicate subtree.

Now map the qty_1 to qty and qty_2 to the newly created element.

Regards,

Jai Shankar