cancel
Showing results for 
Search instead for 
Did you mean: 

Material XXXXXXXXXX not maintained by Purchasing

Former Member
0 Kudos

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

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

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

Former Member
0 Kudos

Hi Sangeeta & Nazrin,

Thanks for your replies. You are in correct understanding of my problem.

@ Nazrin,

I Checked in MARA table PSTAT field, where it has the value KVEDPLSB. It clearly shows the material extended to Purchasing.

Any other inputs?

@ Sangeeta,

I want to first check the material master availability in purchasing by program before calling BAPI to create PO. How can I go ahead?

@ Others

Thanks for all your inputs.

Regards

Ramesh

sjeevan
Active Contributor
0 Kudos

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)

Former Member
0 Kudos

Thanks a lot Jeevan,

It solved my problem.

Regards

Ramesh

Answers (6)

Answers (6)

former_member213836
Active Participant
0 Kudos

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

former_member1296478
Participant
0 Kudos

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

you can do also mm01 .

regards

Shiv

Former Member
0 Kudos

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

tejyadav
Active Contributor
0 Kudos

"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)

Former Member
0 Kudos

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.

kailas_ugale
Active Contributor
0 Kudos

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