Skip to Content
avatar image
Former Member

xslt mapping

Hi Experts,

we have one variable receipt at item level which to exist more than once...when i did testing it is coming for 14 times but getting error at more than 14 times..

Below is the code for this..

<ActualReceipt>

<xsl:choose>

<xsl:when test="Qty &gt; $poLookup/EV_STK_INTRANSIT_QTY">

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

</xsl:when>

<xsl:otherwise>

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

</xsl:otherwise>

</xsl:choose>

</ActualReceipt>

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • avatar image
    Former Member
    Jul 06, 2011 at 04:36 AM

    can you confirm if the XSLT code is able to get the 15th (or other higher value) value....may not be an issu with the code but with the lookup that you are calling.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Jul 06, 2011 at 05:05 AM
    <xsl:when test="Qty &gt; $poLookup/EV_STK_INTRANSIT_QTY">

    Looking at your code you seem to have defined some variables and also performing a lookup (from some RFC)......in the above line you have defined a condition which should be satisfied....so can you check from the backend table if the value at 15th position or higher is able to satisfy the condition?

    You mentioned that some error is coming for position > 14 .....can you specify what is the error? Then somebody can help you out.

    Add comment
    10|10000 characters needed characters exceeded