Symptom
- The debugger does not stop at breakpoints in BAdI implementations for example SWF_WORKFLOW_CONDITION_DEF and SWF_WORKFLOW_CONDITION_EVAL, although the implementation is active.
- No error messages are displayed.
Environment
SAP S/4HANA Cloud Public Edition
Reproducing the Issue
- Set breakpoints in the above BAdI implementations and reproduce the issue.
- Observe that the debugger does not stop at the breakpoints.
Cause
- The wrong debugger user was used. Workflow processing runs in the backend under user SAP_WFRT, so breakpoints set for a different user are not reached.
Resolution
- Set external breakpoints in the BAdI implementations SWF_WORKFLOW_CONDITION_DEF and SWF_WORKFLOW_CONDITION_EVAL specifically for user SAP_WFRT.
- Reproduce the scenario by creating or changing a purchase requisition that meets the configured conditions.
- Debugger now stops at the breakpoints and proceed with analyzing the custom condition logic.
See Also
Keywords
flexible workflow, purchase requisition, PR workflow not starting, BAdI, SWF_WORKFLOW_CONDITION_DEF, SWF_WORKFLOW_CONDITION_EVAL, breakpoints not hit, SAP_WFRT, background user, workflow debug, condition evaluation, plant condition, document type condition, external breakpoint, s/4hana cloud , KBA , MM-FIO-PUR-REL-2CL , Fiori UI for Purchasing Approval (Public Cloud) , Problem
Product
SAP S/4HANA Cloud Public Edition all versions
SAP Knowledge Base Article - Public