on 2014 Aug 01 10:30 AM
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.
Request clarification before answering.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
53 | |
6 | |
6 | |
5 | |
5 | |
5 | |
3 | |
3 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.