cancel
Showing results for 
Search instead for 
Did you mean: 

Idoc segment to idocs

Former Member
0 Kudos

Hello all,

I am working on idoc to idoc scenario, i have to map a segment to idoc, exact requirement is

" If there are 10 "E1P12" segments in the inbound IDOC then we need to create 10 outbound Delins IDOCs, each with 1 E1EDP10 segment.

Can anyone provide me the steps to follow in this scenario.

Thanks for all your help.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

1)Export the target Idoc

2)Change the occurance of Idoc to 0..unbounded

3)Also change the occurance E1EDP10 segment to 1

4) Now import this external definition in the target.

Map E1P12 segment to Idoc

Check the Weblog for the same

Former Member
0 Kudos

Hey thanks for the reply.. only this much steps i have to follow.. do i have to use any thing elsemore....

Former Member
0 Kudos

Hi,

>>only this much steps i have to follow.. do i have to use any thing elsemore....

Nothing More

Regards

Seshagiri

Former Member
0 Kudos

one more

For every Idoc generated on the target side the header data is populated frm source Idoc.(i.e) the same header repeated 4r all idocs right???

In order to do tat u need to write a simple udf


public void Test(String[] a,String[] b,ResultList result,Container container)
{
   //write your code here
 for (int i=0; i<a.length;i++)
{
     result.addValue(b[0]);
}
}

use this udf under all header element(eg.element1 under header tgt side)

then mapping ll be

E1EP12----->
                      Test-------->Split By Value---->element1
src element---->

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

export and change the IDOC to 0-Unbounded.

Import the IDOC.

E1P12-Remove contextsplitbyvalue(each)-collapse contextIDOC(target)

Regards,

Prakasu

Former Member
0 Kudos

Hi,

Use this Logic at the Receiver side to create n number of Idocs in the receiver system based on the Source Segment occurs

REgards

Seshagiri