cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Question - Two Nodes

Former Member
0 Kudos

Hi PI Cracks,

I'm working on PI 7.1 and got a problem due a grafical message mapping.

I have a source message with 2 nodes one holds header information:

<header> Occurrences 1:1

<head_field1>

<head_field2>

</header>

<position> Occurrences 0:unbounded

<position_field1>

<position_field2>

<position_field3>

<position_field4>

</position>

In my target structure I have:

<target> Occurrences 1:1

<item> Occurrences 0:unbounded

<field1>

<field2>

<field3>

</item>

</target>

So now my problem is, I need to get a value from header structure in every

item line on target side. Currently it's every time only in the first target item

not in all that follows.

How to solve this within graphical mapping?

Regards Matt

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

You need to use useOneAsMany function, try this mapping:

Header_Field -


>

position -


>useOneAsMany -


> Target

position -


>

-Supriya.

Former Member
0 Kudos

I solve it with a Variable like in this blog: /people/william.li/blog/2008/02/13/sap-pi-71-mapping-enhancements-series-using-graphical-variable

Former Member
0 Kudos

http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm

/people/sravya.talanki2/blog/2005/12/08/message-mapping-simplified-150-part-ii

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/media/uuid/b9af5e71-0701-0010-d0b8-f612f...

http://help.sap.com/saphelp_nw04/helpdata/en/03/398c4024d26e1de10000000a1550b0/content.htm

/people/claus.wallacher/blog/2006/06/29/message-splitting-using-the-graphical-mapping-tool

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Header_Field

Position--


UseOneasmany-----Target_Field

position_filed1

Thanks

Amit

peter_wallner2
Active Contributor
0 Kudos

Hi Matthias,

/people/riyaz.sayyad/blog/2006/04/23/introduction-to-context-handling-in-message-mapping

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

http://help.sap.com/saphelp_nwpi71/helpdata/de/ef/df564b6aa24fc9ab0d685460747de5/content.htm

and maybe:

/people/claus.wallacher/blog/2006/04/17/replication-of-nodes-using-the-graphical-mapping-tool

Best regards,

Peter

former_member200962
Active Contributor
0 Kudos
I need to get a value from header structure in every
item line on target side. Currently it's every time only in the first target item
not in all that follows.

UseOneAsMany standard function of Message Mapping can help you in this. There is a good blog on this functionality...check it.

Regards,

Abhishek.

Former Member
0 Kudos

Thx Abhishek - do you got the link for this Blog?

Former Member
0 Kudos

/people/sravya.talanki2/blog/2005/08/16/message-mapping-simplified--part-i

New functions in the Graphical Mapping Tool SP13 by Stefan grube's

Message Splitting Using the Graphical Mapping Tool by Claus Wallacher

Former Member
0 Kudos

Hi ,

Check the link below regarding UseOneasmany function:

http://saptechnical .com/Tutorials/XI/NodeFunctions/Page5.htm

Thanks,