cancel
Showing results for 
Search instead for 
Did you mean: 

How do I change Actual Qty (ACT_MENGE) on a PO service line using BAPI?

nikbereziuk
Explorer
0 Kudos

Hey Community,

Can anyone suggest how to change Actual Qty (ACT_MENGE) of a PO service line using BAPI_PO_CHANGE? It seems that this value can be changed if I just modify Quantity on a PO service line through transaction ME22N, but when I'm doing the same using BAPI_PO_CHANGE (by changing Quantity and Net Value fields in tables poservices and posrvaccessvalues), it changes only the Quantity on the service line, but not the Actual Quantity (ACT_MENGE) in table ESLL. Although it doesn't cause problems when i work with a Purchase Order, it does prevent me from modifying the Purchase Requisition via BAPI_PR_CHANGE - if I try to change the Quantity of the service line on the PR item, I get error "Quantity must correspond to at least the already entered quantity &", where & is the ACT_MENGE.

So, how do I change ACT_MENGE via BAPI_PO_CHANGE, or, if it is possible, how do I bypass this check when modifying a PR via BAPI_PR_CHANGE?

Thanks in advance.

Mykyta

Accepted Solutions (0)

Answers (1)

Answers (1)

BalaAP
Active Contributor
0 Kudos

Hi,

You can suppress any error message in IMG MM->Purchasing ->Environment Data ->Define attributes of System messages:

and selecting "System Messages", and adding "New Entries" . Input the Appl.A as "SE" and Message No.320 and choose the category "No Message" - blank, so that system will not display this message.

But you should logically analyze, why this message is coming in your BAPI program and you should ensure that, you are not creating any data inconsistency in PO/PR tables (which may cause any problem in future). This setting would suppress altogether in SAP irrespective of BAPI program or any other transaction.

You can also check this SAP - Note 630097 - BAPI_PO_CHANGE: Processing several service items and check the program RMBESTK3

regards,

Bala