Skip to Content

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

xsl mapping - for each

HI,

my xsl mapping is working fine but the output is wrong.

I need the information from the E1EDK02/BELNR if the E1EDK02/QUALF="002".

Where is the mistake located ? The BELNR is allways the first one of all E1EDK02.

<xsl:for-each select="ORDERS05/IDOC/E1EDK02[QUALF='002']">

<!-- <xsl:for-each select="ORDERS05/IDOC/E1EDK02">-->

<xsl:value-of select="ORDERS05/IDOC/E1EDK02/BELNR"/>

</xsl:for-each>

Thx,

Gordon

Former Member
Former Member replied

Hi,

<xsl:for-each select="ORDERS05/IDOC/E1EDK02[QUALF='002']">

<!-- <xsl:for-each select="ORDERS05/IDOC/E1EDK02">-->

<b><xsl:value-of select="ORDERS05/IDOC/E1EDK02/BELNR"/></b> it is absolete path which will take first occurance always.

</xsl:for-each>

Use:<b><!-- <xsl:value-of select="BELNR">--></b>

it is not absolete path.

Regards,

AKshay.

    • Reward points if find useful.

<b>** Mark question answered if solved.</b>

Message was edited by:

Akshay Jamgaonkar

Message was edited by:

Akshay Jamgaonkar

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