Skip to Content
avatar image
Former Member

Material XXXXXXXXXX not maintained by Purchasing

Dear Experts,

We have created a Z program which uses PO BAPI (BAPI_PO_CREATE1) where in it calls ME21N tcode.

I have a list of materials to create PO with the help of BAPI.

Now system is skipping some material and created the PO.

I have checked the materials which system skipped, and try to create the PO manually with ME21 tcode, system is showing the error "Material xxxxxx not maintained by Purchasing".

- Checked in MM03 purchasing view by giving the plant, it is giving the data with the message "No plant specific data exists".

- Checked in MARC & MARD table with the specific plant, it is showing the data.

My question is, what logic we have to give to the ABAPer so that system has to give the error that "material is not maitained by purchasing"? In which table program has to check the existance of the material?

Waiting for your valuabe reply.

Thanks & regards

Ramesh

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

7 Answers

  • Best Answer
    avatar image
    Former Member
    Feb 16, 2012 at 11:09 AM

    i am sure you know how to extend the material and your query is not how to do that or why this error.

    As i understand that if you create PO manually the system gives error material not extended by purchasing. Since you are using BAPI to create PO you want to know what logic to be given to ABAP consultant so that your report can also

    give message material not extended by purchasing.

    When you create PO by BAPI, BAPI will also return all standard error that you would have got if the PO is created

    manually. The program that you develop, in the output file on the screen you could show a small report with material

    number and PO against it, and for the material where in no PO created show the error message that BAPI returned, in this case

    it is bcoz material was not extended to purchasing.

    Regards

    Sangeeta

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2012 at 05:35 AM

    Hi,

    I have checked the materials which system skipped, and try to create the PO manually with ME21 tcode, system is showing the error "Material xxxxxx not maintained by Purchasing".
    
    - Checked in MM03 purchasing view by giving the plant, it is giving the data with the message "No plant specific data exists".

    In t-code MM01 give material and select purchasing view and give plant and save it

    then try again PO manually creation

    Regards

    Kailas Ugale

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2012 at 05:46 AM

    Hi Ramesh,

    It looks like the skipped materials is because in Material Master, the Purchasing View was not extended.

    You can confirm if this is the case via looking at MARA Table, field PSTAT with Value E. E represents Purchasing View. So do a quick check whether the skipped materials have E or not in this field. Note that each view has different letters representing them in this field. Some examples of how the value of this field would look like is: KCVDG, KEBGL, KELBSG.

    If indeed, the materials do not have E in the field value, you should then:

    1) Extend the materials to Purchasing View via MM01 individually or MM50 collectively

    2) Run your BAPI again for these materials.

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2012 at 07:20 AM

    "Material xxxxxx not maintained by Purchasing"

    2 Possibilities, 1st Purchasing view not maintained (Solution-Extend with MM50 for Purchasing) & 2nd In MRP2 of material master Procurement type field is maintained with 'E' (Solution-Change to X or F in MM02)

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2012 at 09:31 AM

    Hello,

    If the table MARC for the material is available for the Plant and Mard is available for the storage location of the plant, then it shouldnt show you such msg..any idea if there is any userexit to check on the customized table..?

    it is quite weird, anyway, just go to tcode: mm03, check the materil status under purchasing tab and basic data 1, to see any material status there.

    2. try to compare with a working material and see any setting is missing in the material master..

    Sorry, cant really share the idea for issue...good luck ar..

    Thanks and Regards

    CW

    Add comment
    10|10000 characters needed characters exceeded

  • avatar image
    Former Member
    Feb 16, 2012 at 09:48 AM

    Please use MM50 put material code execute and select the purchase view and maintained that .

    you can do also mm01 .

    regards

    Shiv

    Add comment
    10|10000 characters needed characters exceeded

  • Feb 16, 2012 at 10:50 AM

    Please maintain the purchasing view for the material and the plant combination for which procurement is being done.

    Go to MM01, Enter the Material and Select the view Purchasing. Enter the Plant number and maintain the purchasing data for the material.

    Regards,

    Niranjan

    Add comment
    10|10000 characters needed characters exceeded