SAP Knowledge Base Article - Public

3230926 - Workflow user 'SAP_WFRT' does not have authorization to execute queries.

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

  1. Open Manage Purchase order/requisition application.
  2. Create and release the document.
  3. 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