Skip to Content

Multiple segments checking in multipl idocs.

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Apr 11, 2012 at 12:27 AM

    Hi Loordh,


    pastedImage_2.png (13.6 kB)
    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Apr 11, 2012 at 06:40 AM

    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)

    Add comment
    10|10000 characters needed characters exceeded