cancel
Showing results for 
Search instead for 
Did you mean: 

Customize Z_MATMAS05 in SAPMEINT

former_member453678
Participant
0 Kudos
309

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>
former_member453678
Participant
0 Kudos

salvatore.castrojeremy.good : Can you please provide some help with this?

Accepted Solutions (1)

Accepted Solutions (1)

former_member453678
Participant
0 Kudos

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>

Answers (0)