Application Development and Automation 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: 
Read only

Errors BAPI_PO_ CHANGE

Former Member
0 Likes
482

Hello Experts,

I am trying to add materials in PO using BAPI BAPI_PO_CHANGE.

There are three material items in the PO and each material has one tied empties (BOM material). Tied empties would be exlpode when changing the PO by using BAPI BAPI_PO_CHANGE.

After executing the program, two boms were exploded for first two materials. For the last material bom material is not exploding.

Getting below errors,

- E BAP003 Instance 45XXXXXX (PO) of object type PurchaseOrder could not be changed.

- Purchase order item still contains faulty account assignments.

Any help / suggestions where to search for cause would be appreciated.

Br,

Malla

2 REPLIES 2
Read only

former_member222709
Contributor
0 Likes
422

Hi Malla,

The error message signifies that the error is related to account assignment.

You need to ensure the changes are working manually. i.e. Are you able to change the PO manually via T. Code ME22N.

If yes, then, use 'BAPI_PO_GETDETAIL' and pass relevant data mapped to BAPI_PO_CHANGE.

Hope this helps. If still facing any issues, please post your code.

Regards,

Pranav.

Read only

madhu_vadlamani
Active Contributor
0 Likes
422

Hi Malla

Have you seen this message Purchase order item still contains faulty account assignments.Please shown this to functional people.Check the same manually in transaction.

Regards,

Madhu.