cancel
Showing results for 
Search instead for 
Did you mean: 

Advanced Mapping question.

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Check the following SAP Help link. It has a similar example.

http://help.sap.com/saphelp_nw04/helpdata/en/d9/cea942ad920c31e10000000a1550b0/frameset.htm

Thanks.

Answers (0)