cancel
Showing results for 
Search instead for 
Did you mean: 

Debug Workflow Task

former_member258584
Participant
0 Kudos

Hi All,

The first time i am working on workflow, and i have some requirement for which i need to debug but i dont know how to debug workflow task.

E.g  I have an requirement in which, when the user Release the PR through ME54N tcode, a mail gets trigger through one of its Task whose object type is 'BUS2105'.

Under this business object i using the method named as 'ZMMAPPSENDEMAIL' .

Under this Method, there is an Customized function module named as ZMM_APP_SEND_EMAIL' which gets appear when i double click on it.

now what i want is, when i release the PR through ME54N, i want this function module to get trigger.

Please help me with step by step explanation , how could i achieve this.

Thanks in advance.

Regards,

Deepak kansal.

View Entire Topic
FouadSadik
Employee
Employee
0 Kudos

Hello Deepak Kansal,


You can follow the instructions in NOTE 1782731 to debug the standard workflows. Same steps work for Z workflows.

Within the method CL_SWF_RUN_WIM_EXECUTION_MGR->START_EXECUTION_IN_BACKGROUND.

If the debugger stops at a breakpoint set one statement before, you have to

change the RFC destination from WORKFLOW_LOCAL_<client> to NONE.

Additionally, you have to prevent the execution of this tRFC. You can do this,

for example, in the old debugger using the last tab page "Settings", and the

checkbox to block sending in background task.   In the new debugger, the

respective checkbox is available in the settings menu under the option to change

the debugger profile or settings.  You can then use transaction SM58 to debug

the locked tRFC, and this leads you to the method source code.

This will enable you to debug background LUW processes and investigate any issues even with the standard code.

Regards,

Fouad.

former_member189779
Active Contributor
0 Kudos

Hi Fouad,

I followed all steps mentioned by you. I could see TRFC in SM58 and I tried debug LUW but it does not stop at method source code. I checked also that user executing it no more WF-batch but my own user id which I think is correct.

Am I missing something?