Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

BAPI_PO_CREATE1 and poitem-ctrl_key

sinan_keklik
Associate
Associate
0 Kudos
507

Hi,

I want to create a PO and getting following error: "No QM info record exists for material xxx".

So when I change the MARC-SSQSS (Control Key for Quality Management in Procurement) to '0000' than I can create a PO. After that I change it back to the origin value.

When I fill the poitem-ctrl_key in the BAPI with '0000' and fill the corresponding poitemx field with X than I get following error:

"Control key 0000 cannot be used here"

Do I fill this field wrong or do I need to fill it in other way? I want to work without the workaround to change MARC-SSQSS and get it afterwards back.

Thank you and best regards,

Sinan Keklik

8 REPLIES 8

JL23
Active Contributor
0 Kudos
220

Can you explain why you want a different control key in a purchase order than specified in the material master?

0 Kudos
220

This is a special requirement of this project.

raymond_giuseppi
Active Contributor
0 Kudos
220

What happened when you call ME22N on your PO after reverting back MARC values, also did you actually try to create a PO via ME21N on this material ?

Actually if there is a control key for QM on the material, you MUST not be able to purchase this item without first creating the QM Inforecord, "this vendor is not allowed to sell you this item"  (There was an error in SAP but no longer since Note 421915 - year 2001)

-> Ask functional.

Regards,

Raymond

0 Kudos
220

Trying to create a PO with ME* gives the same feedback. If we change this value via the transaction it is possible to create the PO. We need to change this value to create a mass of POs via the BAPI.

0 Kudos
220

You should consider creating the QM inforecords before the PO.

A solution using a BAPI like BAPI_MATERIAL_SAVEDATA before and after wont be a good answer as you may not be able to post receipt or invoice on the PO later.

Regards,

Raymond

0 Kudos
220

We only need to change temporary the field of MARC-SSQSS. I thought it is the same like filling the poitem-ctrl_key field to have another behaviour than with the value in MARC.

0 Kudos
220

Did you actually try a receipt with your PO ?

Regads,

Raymond

JL23
Active Contributor
0 Kudos
220

there is not much that can be changed for the control key in the PO.

just look into the program MM06EFQM

   FORM QM_CHANGE_SSQSS