on 2018 Jun 12 4:02 PM
Hello Experts,
I am actually new to SAPMEINT.
I am using SAPME 15.2.0.1 and SAPMII 15.2 SP0 Patch4
So, recently my client asked me to put a certain condition in Z_MATMAS05 XSLT for LotSize.
The condition is that if in Z_MATMAS05 IDOC, the value of E1MARCM/SFCPF = 'A001', then I have to put Lot Size = 7007.
I tried to do it in multiple ways but none of the below codes worked :
Code 1 :
<xsl:when test="../E1MARCM/SFCPF = 'A001'">
<sch:LotSize>7007</sch:LotSize>
<sch:LotSize><xsl:value-of select="LOT_SIZE"/></sch:LotSize>
</xsl:when>
<xsl:otherwise>
<sch:LotSize>1</sch:LotSize>
</xsl:otherwise>
Code 2 :
<xsl:if test = "../E1MARCM/SFCPF = 'A001'">
<sch:LotSize>7007</sch:LotSize>
</xsl:if>
<xsl:choose>
<xsl:when test="string(normalize-space(LOT_SIZE))">
<sch:LotSize><xsl:value-of select="LOT_SIZE"/></sch:LotSize>
</xsl:when>
<xsl:otherwise>
<sch:LotSize>1</sch:LotSize>
</xsl:otherwise>
</xsl:choose>
This below code worked for me. But, this only worked in the case when the MATERIAL was not present in SAP ME. Update still not working.
<xsl:choose>
<xsl:when test="SFCPF = 'A001'">
<sch:LotSize>7007</sch:LotSize>
</xsl:when>
<xsl:otherwise>
<sch:LotSize>1</sch:LotSize>
</xsl:otherwise>
</xsl:choose>
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
5 | |
2 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.