SAP Note 1461418 - Exception condition "FAILURE" raised in BAPI_PO_CHANGE

Component : BAPIs - Purchase order -

Solution : https://service.sap.com/sap/support/notes/1461418 (SAP Service marketplace login required)

Summary :
When executing BAPI_PO_CHANGE to modify the account assignment category for an item in SAP, including existing account assignment data via POACCOUNT parameter causes an issue where the program raises an exception (RAISE_EXCEPTION). Relevant modules and classes such as CL_PO_ACCOUNTING_HANDLE_MM are involved. The error arises due to a programmatic flaw, and the provided fix includes a program correction to address the termination issue effectively. The relevant BAPI and additional data structures impacted include BUS2012, E1BPMEPOACCOUNT, and E2BPMEPOACCOUNT001 among others.

Key words :
prerequisites program error solution programm correction, existing account assignment data, program termination raise_exception, account assignment category, cl_po_accounting_handle_mm====cpcl_po_accounting_handle_mm====cm004, parameter poaccount, terms bus2012, poitem-acctasscatpoaccount, mepo_doc_accounting_get reason, calling bapi_po_change

Related Notes :

1466731ME21N/ME22N-Dump when account assignment category is deleted
1455040error ME 083 when creating PO via BAPI_PO_CREATE1