cancel
Showing results for 
Search instead for 
Did you mean: 

Using CDATA in Mapping

Former Member
0 Kudos

Hi,

I have an IDOC -> PI -> File scenario. Some of the data from the IDOC needs to be enclosed in CDATA tag before sending to File system. This is a client requirement and we cannot change it.

Input to PI:

<IDOC>

<Segment>jkdbvqpwuvgbbv</Segment>

</IDOC>

Output of PI:

<Details>
<Value><![CDATA[jkdbvqpwuvgbbv
]]>

I tried using Concat function in Message Mapping but the < and > tags (of CDATA) get converted to lt and gt characters if I check the source view of mapping test. This should not happen. The tags should come properly without getting converted to any other characters.

Any suggestion on above requirement?

Thank you,

Pankaj.

Accepted Solutions (0)

Answers (1)

Answers (1)

stefan_grube
Active Contributor
0 Kudos

> Any suggestion on above requirement?

CDATA is not supported by the graphical mapping tool.

Use XSLT or Java mapping or convice the client to change the requirements, as the CDATA absolutely make no sense, when the content comes from an XML element, which means there are no markups inside.

Former Member
0 Kudos

Hi,

Use XSLT or Java mapping

Ok. I will try with XSLT and check.

convice the client to change the requirements

Already had a discussion on this. The client is not ready to change the requirement.

Thank you,

Pankaj.