cancel
Showing results for 
Search instead for 
Did you mean: 

Multiple segments checking in multipl idocs.

allamudi_loordh
Active Participant
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

once try it below logic :

source field (QUalf) -> remove context -> equals -> constant (M) -> if

then-> name -> remove context -> sort ->splitbyvalue(value change) ->    targetfield ...((if u have any duplicate values then use Sort and splitbyValue)

former_member214364
Active Contributor
0 Kudos

Hi Loordh,