Symptom
- "SELECT" query fails during run time in the custom implementation.
- Custom BADI not working during actual execution.
- SAP_WFRT authorization error.
Environment
SAP S/4HANA Cloud
Reproducing the Issue
- Open Manage Purchase order/requisition application.
- Create and release the document.
- Monitor the custom BADI execution.
Cause
SAP_WFRT missing the authorization.
Resolution
SQL query should have the addition "WITH PRIVILEGED ACCESS" to surpass the authorization levels for the workflow user.
See Also
Quick Reference.
Keywords
SAP_WFRT, S4_PC, custom, BADI, sy-subrc, logic, authorization, PRIVILEGED, ACCESS, not , working , KBA , MM-FIO-PUR-PO-WFL , Purchase Order Workflow , Problem
Product
SAP S/4HANA Cloud Public Edition all versions ; SAP S/4HANA Cloud all versions