Skip to Content
0
Jun 12, 2018 at 03:02 PM

Customize Z_MATMAS05 in SAPMEINT

187 Views Last edit Jun 12, 2018 at 03:10 PM 2 rev

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>