Skip to Content
author's profile photo Former Member
Former Member

CIF - Mismatch between max material code length in R/3 and APO

Hi All,

The max material code length in R/3 is 18 while in APO it is 40. My material code is numeric and has leading zeroes. While running a BAPI, I am getting an error because the length of material code is different in R/3 and APO. I need to CIF the material code from R/3 to APO. The table MATMAP is not getting the proper material code from R/3 after CIFing. How can we overcome the problem?

Thanks in advance

Ehsan Ahmed

Add a comment
10|10000 characters needed characters exceeded

Related questions

2 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 07:51 AM

    Ehsan,

    In the /SAPAPO/MATMAP table, you have 2 fields. EXT_MATNR which is expected to be exactly same as R/3 data e.g. 18 chars: 000000000000000001.

    In the field matnr, if you have material number numeric you will get a 40 chars string as 0000000000000000000000000000000000000001.

    There shall not be any issue unless you have coded any CIF user exits for material/product transfer.

    rgds,

    SB.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jan 08, 2008 at 07:56 AM

    I assume you are making your own Interface Development into SCM-APO and not using the Standard SCM-APO PlugIn called from SAP R/3.

    Yes in APO the Material Number is 40 Characters. If you are calling a BAPI directly in APO ... you must convert the Numeric Material Code in R/3 to 40 Characters by filling with Leading Zeroes before they come into table /sapapo/matkey. Text Material Codes should not be a Problem. The other APO Tables only use the Material GUID that is generated for the material in table /sapapo/matkey to reference the material.

    Regards,

    Ambrish Mathur

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.