cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Question

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Answers (2)

Answers (2)

Former Member
0 Kudos

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...

Former Member
0 Kudos

duplicate Trees was the TIP....

THX Matt

Former Member
0 Kudos

Hi,

Go to the Message Mapping Function - Node Function

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

Regards,

Vijay