‎2011 Dec 07 10:30 PM
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
‎2011 Dec 08 5:12 AM
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.
‎2011 Dec 08 6:23 AM
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.