cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping Question

Former Member
0 Kudos

Hi Friends,

My source structurre is below

Recordset (1 : Unbounded)

Header (1)

Name (Field)

DeliveryNode ( 1: Unbounded)

Delivery (1)

Detail (1 :Unbounded)

Header(<b>Under Header i have element called Name</b>) and Delivery nodes are at same level. Delivery is under Delivery Node ,Detail is under Delivery.

So in a Recodset i will have One header , Multiple Delivery nodes .Each delivery node will have one Delivery and multiple Details associated with that Delivery.

My Target structure structure is IDOC.For each DeliveryNode i have to generate one IDOC.For example if i have 10 delivery nodes in my Source Structure I have to generate 10 IDOCS with <b>Name</b> under Header(One of element of IDOC should hold the Value of Header).

I could able to generate 10 idocs ,but i see Name from Header is populated in only First IDOC.Name is not getting populated in Rest of 9 IDOC'S.

My requirement is i should populate Name from header in all 10 IDOC'S.

I would appreciate ,if anybody give any clue on how to populate name in all IDOCS.

Thank You,

Surya.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Hi surya,

"I could able to generate 10 idocs ,but i see Name from Header is populated in only First IDOC.Name is not getting populated in Rest of 9 IDOC'S."

Try changing the context of the Name in teh source structure to be at the level of Recordset.

Former Member
0 Kudos

Hi,

Use iDoc Packaging,

try to get the XSD of taargt idoc and change the occurreces 0..unbound (min occur = 1 max occur = unbound)

and map the Dlivery node to Idoc and to map the header field useOneasmany to map target field..

/people/stefan.grube/blog/2006/09/18/collecting-idocs-without-using-bpm - collecting IDocs without BPM

IDoc Packages without BPM

take a look at the note : 814393.

Also see the below links

/people/michal.krawczyk2/blog/2005/12/04/xi-idoc-bundling--the-trick-with-the-occurance-change

/people/sravya.talanki2/blog/2005/12/09/xiidoc-message-packages

/people/jin.shin/blog/2006/02/07/multi-mapping-without-bpm--yes-it146s-possible

How to serialize IDoc XML messages fed into XI - /people/community.user/blog/2006/11/04/how-to-serialize-idoc-xml-messages-fed-into-xi

Regards

Chilla

Former Member
0 Kudos

Surya,

Have you tried using useOneAsMany in the node functions. I think with the help of that you can resolve your issue.

Check this help on this:

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

http://help.sap.com/saphelp_nw04/helpdata/en/38/85b142fa26c811e10000000a1550b0/content.htm

Also see this weblog for some help:

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

---Satish