cancel
Showing results for 
Search instead for 
Did you mean: 

mapping problem ?

Former Member
0 Kudos
43

I have 3 records in a segment from sender header.

At receiver Item level i need to this segment in all the items with all 3 records.

requirement is as below :

sender payload :

header level

seg1-record1

field1

field2

seg1-record2

field1

field2

seg1-record3

field1

field2

receiver payload :

header level

item level

item1

seg1-record1

seg1-record2

seg1-record3

item2

seg1-record1

seg1-record2

seg1-record3

item3

seg1-record1

seg1-record2

seg1-record3

when I am going to map the same, the 3 records are coming only in first item1, item2 and item3 are blank.

How I can do it ?

Regards,

Study SAP

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

>>the 3 records are coming only in first item1, item2 and item3 are blank

this mite be because you are not handling your contexts properly... you mite need to use splitbyvalue before feeding it to target.

thanks.

latika.

Answers (4)

Answers (4)

former_member192295
Active Contributor
0 Kudos

Hi,

At receiver end item level make occruence 0..2, automatically you can get required format

Former Member
0 Kudos

suppose you have an XML Like

<root>

<node>1</node>

<node>2</node>

</root>

split by value(node) returns:

<root>

<node>1</node>

</root>

<root>

<node>2</node>

</root>

Instead remove context does the opposite.

You can find all the function explanations here

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/frameset.htm

http://help.sap.com/saphelp_nw04/helpdata/en/1f/ea0fb12403844bbb6c4cbc8a00cda9/frameset.htm

Former Member
0 Kudos

Dear Swathi,

I hope he still needs to use Explicit Context Selection after using SplitByValue.

It is because SplitByValue simply introduces a context change in between all the fields. exaclty one Context change between each field.

But to make this customised based on the user requirement we can proceed with External Context Selection as I explained previously.

Please go through this presentation of you need clear understanding about Context handling

[Advanced Graphical Mapping|https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/media/uuid/b9af5e71-0701-0010-d0b8-f612fb6593dd]

Best Regards

Praveen

Former Member
0 Kudos

hi

try with the standard function USE ONE AS MANY

check this link for help

http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm

regards

kummari

Former Member
0 Kudos

Hi Friend,

You use SplitByValue Node function, and also use Explicit Context Selection.

This is done like this:

select the Source field in Mapping area where you used splitbyvalue and right click on the field --> select Context --> change to the level of Hierarchy for Context handling.

This should work

Best Regards

Praveen