Skip to Content

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

XSLT Map query If statement with 2 conditions.

Hi,

File to Idoc:

-


If $headNode/Field10 = 'LF'

and $headNode/Field11 = '1555'

then I need create addional segment of E1EDK14 with below values.

E1EDK14-QUALF = '011' and

E1EDK14-ORGID = '122'.

Here is the code which I written and it is working correctly when i tested in Altova. But it is not working once I imported into XI.

-


<xsl:if test="$headNode/Field10 = 'LF' and $headNode/Field11 = '1555'">

<xsl:call-template name="printE1EDK14-LF">

<xsl:with-param name="QUALF" select="'011'"/>

<xsl:with-param name="ORGID" select="'122'"/>

</xsl:call-template>

</xsl:if>

<xsl:template name="printE1EDK14-LF">

<xsl:param name="QUALF"/>

<xsl:param name="ORGID"/>

<E1EDK14 SEGMENT="1">

<QUALF>

<xsl:value-of select="$QUALF"/>

</QUALF>

<ORGID>

<xsl:value-of select="$ORGID"/>

</ORGID>

</E1EDK14>

</xsl:template>

Kindly suggest me is there anything i need to do.

Thanks

Deepthi

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