on 2025 Apr 16 2:25 AM
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!
Request clarification before answering.
| User | Count |
|---|---|
| 8 | |
| 7 | |
| 7 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 1 | |
| 1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.