Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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

Former Member
replied

Go to table MSTA enter material number and status as E in SE16N and after executing if you see plant field blank (normally one line is blank and one has plant number, you can test it with other "good" materials) you need to extend it to the purchasing through MM50 for maintenance status E and plant combination (you can try MM01 also)

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question