on 08-02-2007 6:40 PM
All,
we have 2 input messages, that need to be mapped into the output message.
<source1>
<response><id>1</id><cat>prodid</cat><value>PRD01</value></response>
<response><id>1</id><cat>name</cat><value>Name01</value></response>
<response><id>1</id><cat>price</cat><value>20.00</value></response>
<response><id>2</id><cat>prodid</cat><value>PRD02</value></response>
<response><id>2</id><cat>name</cat><value>Name02</value></response>
<response><id>2</id><cat>price</cat><value>30.00</value></response>
</source1>
<source2>
<product><id>1</id><prodid></prodid><isbn>isbn1</isbn><name></name><price></price></product>
<product><id>1</id><<prodid></prodid><isbn>isbn2</isbn><name></name><price></price></product>
</source2>
The target is exactly similar to source2 message. But the values of the nodes <prodid>, <name>, <price> needs to be populated from source1 message by matching the <id> and node name.
<target>
<product><prodid>PRD01</prodid><isbn>isbn1</isbn><name>Name01</name><price>20.00</price></product>
<product><prodid>PRD02</prodid><isbn>isbn2</isbn><name>Name02</name><price>30.00</price></product>
</target>
How can we do this using Advanced UDF?
Thanks
Check the following SAP Help link. It has a similar example.
http://help.sap.com/saphelp_nw04/helpdata/en/d9/cea942ad920c31e10000000a1550b0/frameset.htm
Thanks.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
24 | |
12 | |
9 | |
7 | |
6 | |
5 | |
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.