on 02-16-2012 5:25 AM
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
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
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)
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Please use MM50 put material code execute and select the purchase view and maintained that .
you can do also mm01 .
regards
Shiv
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
"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)
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
85 | |
7 | |
6 | |
4 | |
3 | |
3 | |
3 | |
3 | |
3 | |
2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.