cancel
Showing results for 
Search instead for 
Did you mean: 

Doubt in graphical mapping

Former Member
0 Kudos

Hello,

I have a source structure like this:

Source (1.. unbounded)

Item ident

structure (0..unbounded)

Sub item

And I need to convert onto a target structure like:

Target (1.. unbounded)

Item ident

Sub item

How can I copy "Item ident" to target?

It must be replicated for every value of "sub item"

Thanks,

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi Carme,

It's a pattern NestedtableToFlatStructure.

See below.

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

Answers (5)

Answers (5)

Former Member
0 Kudos

Hi Carme,

Source (1.. unbounded)
Item ident
structure (0..unbounded)
Sub item

Could you please clarify your source structure? Item ident and structure are they coming in same lavel? Like

 <Source>
     <Item ident>1</Item ident>
     <Structure>
         <Subitem>sub1_1</Subitem>
         <Subitem>sub1_2</Subitem>
     </Structure>
    <Item ident>2</Item ident>
     <Structure>
         <Subitem>sub2_1</Subitem>
         <Subitem>sub2_2</Subitem>
     </Structure>
</Source>

If so then you can use contact function or Useoneofmany. If not there will be no relation with Item ident and Subitem.

Thanks

Shubhankar

0 Kudos

Hi,

you can try the following mapping:

subitem->source (where setting the context of subitem to the root element)

item ---

subitem -


> useOneAsMany ->item (where setting the context of the second input of "useOneAsMany" (subitem element) to the element "source").

subitem ---

subitem->subitem.

it should work.

regards

Bin

Former Member
0 Kudos

hi,

try as below

Source (1.. unbounded) Target (1.. unbounded)

Item ident -


useOneAsMany-SplitByValueItem indent

Subitem--/

Subitem--/

structure (0..unbounded)

Sub item -


SplitByValue-----Sub item

-- Change the sub item cintext to root node

Chilla

0 Kudos

Hi Carme,

you can use the function "useOneAsMany".

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

regards

Bin

Former Member
0 Kudos

Hi,

You can use useoneasmany function in the node functions. Please check this link on how to use it.

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

Regards,

Sudheer.