cancel
Showing results for 
Search instead for 
Did you mean: 

1:n mapping

Former Member
0 Kudos

in mapping 1:n i hAVE based on one field i am splitting the data but in msg testing when i am duplicating and given same value for two times it is generating two files for same value to that field how to eliminate this problem when same value for the same filed it should generate one msg only

Accepted Solutions (0)

Answers (5)

Answers (5)

Former Member
0 Kudos

Here is the complete logic..

Source>RemoveContext>Sort>SplitByValue(on Value Changes)>CollapseContext>SplitByValue(each value)>Target

Former Member
0 Kudos

Hi,

First collect all values of the field in a single context; then use splitByValue (value Change) function and then use collapseContext function to have a unique value.

-Supriya.

Former Member
0 Kudos

Use the following node functions:

Source> removeContext>Sort>SplitbyValue>Target

Also, refer the following thread, it will help you understand various node functions and thier application:

http://wiki.sdn.sap.com/wiki/display/XI/DifferenceBetweenRemoveContextandCollapseContext.

Former Member
0 Kudos

Hi,

At the conditin level set the source field context to parent level to generate only one target message for n occurences of source field...

if still does not work then check using collapse context node function and try...

HTH

Rajesh

rajasekhar_reddy14
Active Contributor
0 Kudos

Write mapping logic.

use Splitbyvalue(value change),this will solve your problem.

Regards,

Raj