SAP Note 536755 - BAPI_PO_CREATE1: Purchase order despite of error message

Component : BAPIs - Purchase order -

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

Summary :
SAP Note addresses an issue where using BAPI_PO_CREATE1 or BAPI_PO_CHANGE results in the creation of a purchase order, despite the presence of errors in the 'Return' table. This problem arises primarily when using CreateFromData1 to reference a purchase requisition linked to a non-existent WBS element within the PoAccount structure. The system erroneously creates a purchase order by transferring the account assignment from the referenced purchase requisition. The resolution requires implementing a specific correction applicable to your SAP release, with Note 456618 as a prerequisite up to Support Package SAPKH46C32.

Key words :
function module bapi_po_create1, return table 'return', account assignment object, support package sapkh46c32, purchase order reason, purchase order, purchase requisition, error message, terms createfromdata1, method createfromdata1

Related Notes :

552598BAPI_PO_CREATE1: KI292 in account assignment