Skip to Content
0
Former Member
Feb 12, 2007 at 09:40 PM

get a part of the string

89 Views

Hi SAP gurus

i have a string where i need to eliminate 'A.B.N' from the following string please advice

as i am new to xslt i am not sure how

xsl:value-of select="concat('A.B.N. ',$vABNNameValue)"/

this is the part of the xsl i am trying to change the above statement in .

:for-each select="/ORDERS02/IDOC/E1EDKA1" >

<xsl:if test="PARVW = 'LF' ">

<Name3>

<xsl:variable name= "vABNNameValue">

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

<xsl:for-each select="E1EDKA3" >

< xsl:if test="QUALP = 'ABN' ">

<xsl:if test="STDPN != ''">

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

</xsl:if>

</xsl:if>

</xsl:for-each>

</xsl:variable>

<xsl:choose>

<xsl:when test= "$vABNNameValue != ''">

< ! xsl:value-of select="concat('A.B.N. ',$vABNNameValue)"/ -!>

<xsl:value-of select="concat(' A.B.N. ',$vABNNameValue)"/>

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

</xsl:when >

<xsl:otherwise >

<!-- OVSD Call 324728 End -- >

< xsl:variable name="Name3Test">

<xsl:call-template name="Template_GetE1EDKA1Name3">

<xsl:with-param name= "TestValue">LF</xsl:with-param >

< /xsl:call-template>

< /xsl:variable>

< xsl:if test="$Name3Test != ''" >

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

</xsl:if >

<!-- OVSD Call 324728 Begin -- >

< /xsl:otherwise>

< /xsl:choose>

< /Name3>

< /xsl:if>

< /xsl:for-eac

please advice its so urgent i have a production issue

i know there is a function substring

thanks