Skip to Content
0
Former Member
May 02, 2007 at 10:04 AM

Mapping source Payload into a single target field?

74 Views

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