cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping issue

Former Member
0 Kudos

Hi gurus,

i need a help with fololwing mapping:

my source structure is:

->document

->->recordset (0..N)

->->->header (1)

->->->->valA

->->->items (0..N)

->->->->valB

my target is like

->document (1)

->->subdocument (0..N)

->->->nodeA (0..N)

->->->->valA0

->->->->valB0

mapping is:

recordset->subdocument

items->nodeA

valB->valB0

problem:

and I need to get valA to node A from each recordset to appropriate subdocument/nodeA - so it will be replicated.

Thank you for your help.

Olian

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

This is typical situation of using stardard function

useOneAsMany:


   valA [ChangeContext to RecordSet] ->
   valB [ChangeContext to RecordSet] -> UseOneAsMany ->valA0

   valB --------------------------> 

for other node, just direct mapping since context does not change at all:


valB --> valB0

Liang

Edited by: Liang Ji on Apr 11, 2008 5:17 PM

Former Member
0 Kudos

Hi,

useAsMany was only one part, SplitByValue was the 2nd key

Thank you,

Olian

Answers (1)

Answers (1)

rodrigoalejandro_pertierr
Active Contributor
0 Kudos

Hi,

do this with function UseOneAsMany

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

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

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

Try and tell us

Thanks

Rodrigo