cancel
Showing results for 
Search instead for 
Did you mean: 

ME: Presence of leading zeros is inconsistent over IDOC

Former Member
0 Kudos

Dear All,

My customer has implemented MES version NW 7.3 SP 8, PCO 2.2, MII

I have the same problem decribed in the oss note 1799009 "Presence of leading zeros is inconsistent over IDOC thus SAP MEINT cannot handle allinbound IDOC consistently"

Pratically the master data idoc tranfer from SAP R3 to ME the same material number (start with 10 digit arrive in XML with 10 digits. When I send the production order in ME, system trasform the number adding 8 zero + the number. This behaviour generates an error. System doesn't recognize the number and goes in error.

Searching on internet I've found a trhead that described the way to implement a "substitution" in orde to trasform the material number from

18 digits to 10 digits (imported from SAP to ME). But we aren't able to understand why doesn't work

I've attached a document with the entire example

Could you suggest me a solution

Thank's in advance

Luca

Accepted Solutions (0)

Answers (2)

Answers (2)

0 Kudos

Hi Luca,

It seems to be described in SAP Note 1799009.

Regards,

Alex.

HariCS23
Contributor
0 Kudos

Hi Luca, Best way we found for these kind of transformation is to take care in Request XSLT transformation.

Let me know if you need code snippets for this i can provide.

I have implemented these and working perfectly in production.

Thanks

Hari

Former Member
0 Kudos

Hi Hari,

If you can send me the code should be great.

Thank you very much in advance

Luca

HariCS23
Contributor
0 Kudos

Hi Luca, Below code is to format number to 10 digit number. You can tailor this below xslt template to your needs.

<xsl:template name="addItem">

        <xsl:param name="item" />

        <xsl:variable name="itemString" select="normalize-space($item)"/>

        <xsl:variable name="itemNumber" select="string(number($itemString))"/>

        <xsl:choose>

            <xsl:when test="$itemNumber='NaN'">

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

            </xsl:when>

            <xsl:otherwise>

                <xsl:value-of select="format-number($itemNumber, '0000000000')"/>

             </xsl:otherwise>

        </xsl:choose>

    </xsl:template>

Thanks

Hari