Hi
I have a straight forward scenario: XML file to IDOC. (XI 3.0 , SP17).
But here is the challenge:
In addition to map selected fields from source message to target message, I need to map the entire payload into a singel target field.
Eg.
Source:
<msg>
<id>654321</id>
<name>Tom</name>
<age>33</age>
</msg>
Target:
<IDOC>
<ID>654321</ID>
<NAME>Tom</NAME>
<PAYLOAD><![CDATA[<msg><id>654321</id><name>Tom</name><age>33</age></msg>]]></PAYLOAD>
</IDOC>
I believe the source XML should be enclosed in <!CDATA[ ]]> to be treated as text in the PAYLOAD tag.
Any suggestions on how to achieve this?
Br,
Elling