Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Special Characters - XSLT Mapping

Hi all,

I have out of a sales order situations, where my business people enter some wired stuff into texts.

The information will be viewable also in the source message properly:

The Source message is UTF-8:

<?xml version="1.0" encoding="UTF-8" ?>

In my XSLT I have configured, that this field should be encapsultated in CDATA section:

<xsl:output method="xml" omit-xml-declaration="yes" cdata-section-elements="proc3:P_INTCOMMENTLB-VARCHAR2-IN" indent="yes"/>

<!-- some other code -->

<xsl:variable name="tdid0002"><xsl:apply-templates select="E1EDKT1[TDID='0002']/E1EDKT2"/></xsl:variable>

<proc3:P_INTCOMMENTLB-VARCHAR2-IN><xsl:value-of select="substring($tdid0002,1,500)"/></proc3:P_INTCOMMENTLB-VARCHAR2-IN>

<!-- some other code -->

<xsl:template match="E1EDKT2">

  <xsl:if test="position() &gt; 1"><xsl:value-of select="'&#xD;'" /></xsl:if>  

  <xsl:value-of select="TDLINE"/>


<!-- some other code -->

If I look at the result message, it became invalid:

I want to send the information to the receiver using Web Service and their server proxy (not SAP) is refusing it.

Any ideas who to fix it?



Helpful Answer

Not what you were looking for? View more on this topic or Ask a question