cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

BAPI_ACC_DOCUMENT_POST does not update ACDOCA when PO is added

AuroraLLR
Explorer
0 Kudos
745

Hello everyone,

I’m working with a custom Z development that performs mass posting of accounting documents from Excel files using the BAPI BAPI_ACC_DOCUMENT_POST. Recently, an enhancement was added to include a Purchase Order (PO) in the vendor line item through a BAdI. The issue is that when posting documents that contain the PO number in that line, the document is created but not saved in table ACDOCA, nor is it visible in the Universal Journal. It is only recorded in the classic tables (such as BKPF/BSEG), which prevents it from being cleared later, as the system doesn’t recognize it as a valid document in the Universal Ledger. Interestingly, documents that do not include a PO are posted correctly and appear in ACDOCA without any issues. Has anyone experienced a similar case? Do you know of any SAP Note or configuration that should be checked to ensure that the BAPI posts correctly when a PO is included? The enhancement used to add the PO and item is Extension 2. Any help or experience is greatly appreciated. Thank you in advance!

Accepted Solutions (0)

Answers (0)