Skip to Content
0
Apr 10, 2012 at 05:11 PM

Multiple segments checking in multipl idocs.

12 Views

Hi Mates,

i have issue while doing mapping for multiple idocs to mutliple records.

My requirement is like this . each idoc is like one record at target . based on idocs i should populate multiple multiple records,

My sample xml is follows.

Idoc <0 to unbounded> Record < 0 to unbounded>

<Segment> 0 to unbounded

<qulifier> Name

<name>

Now my condition is : if qualifier is "M" i should pass name to Name at target.

sample i should get like this. Output should be

Idoc Record

<Segment> <Name>kumar

<name> </Record>

</Segment> Record

<Name> Test

<Segment>

<qulifier> M

<name>Kumar

</Segment>

Idoc

<Segment>

<name>

</Segment>

<Segment>

<qulifier> M

<name>Test

</Segment>

Can any one please give me the logic.

i am not getting properly due to context problem.

Regards,

Loordh.