on 08-18-2008 8:10 AM
INPUT XML is :
<header>
Num1
num2
num3
OUTPUT XML should be like :
<header>
.....
<Item1>
num1
num2
num3
<item2>
num1
num2
num3
<item3>
num1
num2
num3
How I can get this output, I have tried standard function Split by value, but it is not working.
For first item it is giving the all 3 values, but other Items does not have the values.
Regards,
Study SAP
Hi,
You need to go for UDF.
If you have only 3 Number ,
Like,
Item 0-Unbounded,
Num 0-Unbounded then,
Select the Num and Duplicate the field.
Use Copy Value function.
For Mapping Like Below,
Num(Header)-Copy Value(0) -Num(Item)1
Num(Header)-Copy Value(1) -Num(Item)2
Num(Header)-Copy Value(2) -Num(Item)3
Regards,
Prakasu
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
The one which you used earlier should work like this:\
You must be getting the output like this right:
<Item1>
num1
num2
num3
<item2>
<item3>
But using same SplitByValue you can achieve the required output.
Go to Message mapping and Right click the Num1 and select Context then change it to one lever Higher which is Header.
This Process is called Explicit Context Selection.
Or Try the same with Node Function SplitByValue.
This should use SplitByValue Node Function.
Then you get the appropriate result.
Best Regards
Praveen
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 the standard node function USE ONEAS MANY
check the explanation in the below link
http://help.sap.com/saphelp_nw04/helpdata/en/43/c4cdfc334824478090739c04c4a249/frameset.htm
regards
kummari
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
is ur output always be three item node or it will be more than that....
if its always three then u can right click on the target item node and use the duplicate option and create the three item node and map the Num1 num2 num3 to all the fields of target element.
occurance of item should be unbounded....
or use
Use standard function "useOneAsMany" http://help.sap.com/saphelp_nw04/helpdata/en/ef/df564b6aa24fc9ab0d685460747de5/content.htm
let me know this wat ur requirement.
chirag
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Try with "useoneasmany" function instead of splitby value
hope this will work.
Yuga
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
93 | |
10 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.