Skip to Content
0
Former Member
May 16, 2007 at 01:12 PM

Spilitting of one record into multiple segments in IDOC

9 Views

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