quarta-feira, 27 de janeiro de 2021

How to Debug a Background SAP Workflow Method?

 Introduction

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.

Solution

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.

 

Conclusion

This can be used in SAP S/4HANA

 

Below is the Video Version

SAP Workflow Debug

 

 

Also check below

 

 

 

 Source: https://blogs.sap.com/2020/12/23/how-to-debug-a-background-sap-workflow-method/?update=publish

Nenhum comentário:

Postar um comentário