cancel
Showing results for 
Search instead for 
Did you mean: 

Mapping source Payload into a single target field?

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

MichalKrawczyk
Active Contributor
0 Kudos

hi,

have a look at my blog:

XI: XML node into a string with graphical mapping?

/people/michal.krawczyk2/blog/2005/11/01/xi-xml-node-into-a-string-with-graphical-mapping

Regards,

michal

-


<a href="/people/michal.krawczyk2/blog/2005/06/28/xipi-faq-frequently-asked-questions"><b>XI / PI FAQ - Frequently Asked Questions</b></a>

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Even i am also referring the michals blog, so try to achieve with that blog

Regards

Chilla

Shabarish_Nair
Active Contributor
0 Kudos

try the solutions defined in this thread.

Seems a sample XSLT code is also provided which serves the purpose.

Ref: