on 10-02-2007 8:39 AM
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,
Hi Carme,
It's a pattern NestedtableToFlatStructure.
See below.
http://help.sap.com/saphelp_nw04/helpdata/en/38/85b142fa26c811e10000000a1550b0/content.htm
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Carme,
you can use the function "useOneAsMany".
http://help.sap.com/saphelp_nw04/helpdata/de/ef/df564b6aa24fc9ab0d685460747de5/content.htm
regards
Bin
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
98 | |
11 | |
11 | |
10 | |
10 | |
8 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.