How to Debug a Background SAP Workflow Method?
Every SAP Customer that uses SAP ERP always use the SAP Workflow Capability. One issue every ABAPER who wants to know about SAP Workflow has is how to DEBUG a SAP Workflow Method. We always try to debug using the Business Object Method or the ABAP Class after emulating what the SAP Workflow is passing in the SAP Workflow Container. With this blog we do not have to do all those Painful steps.
First Pick one Workflow Method that is executed in Background and pick the Respective Method that is getting called and put the External Debug Point as mentioned below.
Now go To Transaction Code SE84
Go to Utilities->Settings
For SAP S/4HANA put the User id as SAP_WFRT and for SAP ECC provide WF-BATCH
Now go to the Workflow Log and Execute a step that will trigger the Background method
After executing the Dialog Task the Debugger stops Wala.
This can be used in SAP S/4HANA
Below is the Video Version
Also check below
Great post. Thanks!
Although Workflow isn't used by every customer nowadays, your post is extremely useful.