Skip to Content
author's profile photo
Former Member

Mapping Question

Hi,

I have another question. I have a input structure 1 item an need to map it on an IDOC stucture - no problem so far.

Now I need 1 segment of the IDOC 2 times for every income. Like this:

income --> IDOC ---> segment x values...

---> segment y(1) values...

---> segment y(2) values...

Can someone tell me how to do that, I try it with some own written Java functions - but this doesn't works really stable...

THX Matt

Message was edited by: Matthias Boettger

Add comment
10|10000 characters needed characters exceeded

  • Follow
  • Get RSS Feed

3 Answers

  • Best Answer
    author's profile photo
    Former Member
    Oct 06, 2005 at 01:23 PM

    Hi Matthias,

    Right-click on the concerned target segment and select "Duplicate Subtree". Now you can define a second mapping, that is independent of the first one. (But can also be identical, of course).

    Best regards

    Joachim

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:25 PM

    Hi,

    Go to the Message Mapping Function - Node Function

    and use the Function <b>SplitByVlaue</b> before mapping it to the target.

    Regards,

    Vijay

    Add comment
    10|10000 characters needed characters exceeded

  • author's profile photo
    Former Member
    Oct 06, 2005 at 01:30 PM

    If i understand your situation right,

    you want to fill another line in the idoc with the same

    data coming from your source structure (duplicate the data). If this is your scenario then you can use the fucntion CopyValue from the message mapping screen.

    you can also map the same source field into two differant target fields. find what fits you...

    Add comment
    10|10000 characters needed characters exceeded