Skip to Content
avatar image
Former Member

a little help needed in message mapping

a little help needed in message mapping

I have to map one of the idoc header segments as many times as it occurs to each Idoc when using the split message funcionality

let us say we have the segment seg1 and there is a QUALF in it

<seg1>

<qualf>001</qualf>

</seg1>

<seg1>

<qualf>002</qualf>

</seg1>

then we use the vbeln to split the idoc into 2.

so if we have

<vbeln> 1 </vbeln>

and

<vbeln>2 </vbeln>

then 2 Idocs should be created like this

<Idoc>

<vbeln> 1 </vbeln>

<seg1>

<qualf>001</qualf>

</seg1>

<seg1>

<qualf>002</qualf>

</seg1>

</Idoc>

<Idoc>

<vbeln> 2 </vbeln>

<seg1>

<qualf>001</qualf>

</seg1>

<seg1>

<qualf>002</qualf>

</seg1>

</Idoc>

it is easy to create the segment by using createif with the QUALF field but my problem how to map the qualf twice for each idoc

Thanks.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    avatar image
    Former Member
    Oct 05, 2010 at 02:29 PM

    To copy the QUALF many times you can simply use the standard function "CopyValue(0)".

    QUALF ---> CopyValue(0) --->TargetField

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 05, 2010 at 02:26 PM

    UseOneAsMany is the function you need to use.

    It takes three parameters:

    1 --- The node you want to duplicated

    2 --- How many times you want to duplicated

    3 --- The context you want to place for it.

    Regards

    Liang

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Oct 06, 2010 at 12:25 PM

    Hi

    Copyvalue solved the problem

    Thanks

    Add comment
    10|10000 characters needed characters exceeded