Symptom
The periodic accrual job (Post Periodic Accruals for Purchase Orders) generates accrual postings for purchase orders that are not approved and show Draft status in the UI.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Create a Purchase Order and save as Hold status.
- Ensure the purchase order document type and item category are configured as accrual-relevant.
- Run the periodic job Post Periodic Accruals for Purchase Orders.
- Observe that accrual postings are generated for the purchase order despite not being approved.
Cause
By design, Purchase Orders that are On Hold and Purchase Orders that are approved are in scope for accrual conversion and posting by default.
Resolution
If needed, it is possible to adjust the selection criteria of the Accrual Engine by implementing Custom Logic for the Accrual-related BAdI like POAC_PO_SELECTION_FROM_DB and adding a filter condition for Draft Status (EKKO-PROCSTAT = 02).
For a sample implementation, please check the Sample Code in the Code Editor within the Custom Logic app.
See Also
Refer to:
Keywords
purchase order accrual, draft purchase order, on hold purchase order, periodic accruals, accrual engine, approval status, release status, ekko-procstat, active status 02, poac_po_selection_from_db, custom logic, exclude draft, manage purchase orders, public cloud, s/4hana cloud , KBA , FI-GL-GL-POA-2CL , Purchase Order Accruals (Public Cloud) , Problem
SAP Knowledge Base Article - Public