Skip to Content
avatar image
Former Member

Leading zeros are there in Alphanumeric material number in APO


Hi Experts,

In APO for alphanumeric material number I have to enter nine leading zeros before material number otherwise it will show material does not exist in APO.

But ECC system automatically takes whether alphanumeric material is with leading zeros or not.

So what is the issue in APO?

Why APO system does not take automatically the alphanumeric material like ECC system?

Please help me out.

Thanks,

Ayaskant

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

3 Answers

  • Best Answer
    Dec 13, 2014 at 07:45 PM

    There is a conversion routine assigned to the product field in transaction /SAPAPO/RRP3.

    Conversion routine "CONVERSION_EXIT_PRODU_INPUT" is used.

    Check the below example, if i enter leading zeroes the conversion routine is converting into input format with the same number of leading zeroes.

    SAP has provided a BADI "/SAPAPO/PRODU_CONVEX" to overcome this.

    Go to SE18 and do the BADI implementation, inside the method "INPUT_POST_EXIT" do the below coding,

    SHIFT EV_MATNR  LEFT DELETING LEADING '0'.




    I tried and it worked for me.


    Regards,

    TP

    Add comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Thanga,

      As you have mentioned above the implementation of  BADI "/SAPAPO/PRODU_CONVEX" for transaction RRP3.

      Does this implementation also work for other transaction codes in APO ?

      Could you please suggest me a standrad implemention for all the transactions in APO?

      BR regards,

      Ayaskant

  • Dec 18, 2014 at 08:23 AM

    Hi, in which transaction in APO the conversion does not work (zeros are not considered correctly)?

    Add comment
    10|10000 characters needed characters exceeded

  • Dec 24, 2014 at 09:22 AM

    Hello Ayaskant,

    The fields MATNR, MATWA, PMATN, VPMAT and EXT_MATNR are stored in the APO field catalog with 40 characters and with leading zeros although lexicographic interpretation is set in the Customizing of the product master data table /SAPAPO/TMCNV.

    For a lexicographic interpretation, the external format of the product number should remain unchanged,

    Go to transaction SPRO -> APO -> Master Data -> Product -> Specify Output Format of Product Number -> Leading Zeros = No (/SAPAPO/OMSL).

    Best Regards,

    R.Brahmankar

    Add comment
    10|10000 characters needed characters exceeded

    • Hello Ayaskant,

      Lexicographical customizing should be activated and product name should be stored in the database without leading zeros /SAPAPO/MATKEY.The conversion between an internal and external display occurs with a conversion exit that is set via Table /SAPAPO/TMCNV.

      Please refer SAP consulting noteĀ  489822 - Changing non-lexicographic product number for more details.

      Best Regards,

      R.Brahmankar