2014 Dec 05 9:34 AM
Hi everybody,
is it possible to set an external Breakpoint for the Debugging of Worksflows or any processes that are execute via the User WF-Batch?
If yes, how can I achieve that; what do I have to do?
I found know, that in ABAP-EDITOR -> Utilities -> Settings -> ABAP Editor -> Debugging
--> hier I can set a user.
But when I try to set WF-Batch, i get an error:
Debugging is only possible with a "Dialog" type user
Regards
Mario
2014 Dec 05 10:37 AM
Hi all,
to make it easier:
The User WF-BATCH runs an ABAP. It is not possible to change this.
How can I set a breakpoint, when user WF-Batch processes this ABAP.
Thx, Regards
Mario
2014 Dec 05 9:53 AM
Hi Mario,
You should check the dedicated Workflow forum for answers to your question.
Usually workflow debugging consists of first trying to isolate the executed code.
For that you use the workflow log to find out the content of the parameters. Then the workflow step and the task definition to see how this data is eventually passed on to the method (sometimes literals are passed to a task/method).
Then you instantiate the class/business object, fill in the importing parameters and you can debug it from there.
In rare cases this is not sufficient and you want to debug it as close as possible as it is in runtime.
For this case you have to temporarily change the user WF-BATCH to dialog, place your external breakpoint and then debug it. Take extreme caution when you have to do this on production. The sizing of a system user can be very differently from a dialog user and you can create bottle-necks this way.
So only use that technique as a last resort and preferrably only on quality/dev.
Kind regards, Rob Dielemans
2014 Dec 05 10:37 AM
Hi all,
to make it easier:
The User WF-BATCH runs an ABAP. It is not possible to change this.
How can I set a breakpoint, when user WF-Batch processes this ABAP.
Thx, Regards
Mario
2014 Dec 05 10:46 AM
You can only set a breakpoint if someone changes the user in SU01 to dialog.
Otherwise you cannot place a break point.
However! You don't need to set a breakpoint for wf-batch IF you know exactly what the circumstances were for executing that ABAP and if you know the means to execute that abap in the foreground.
Also take a look at the user parameters for wf-batch which might influence the abaps behaviour.
Kind regards, Rob Dielemans
2014 Dec 08 6:00 AM
Hi Rob,
unfortunatelly you did not take into consideration that some WF steps insert, update or delete the masterdata.
So it is not so easy to repeat steps in dialog. I first have to fix the masterdata.
Many thaks for your help.
Regards Mario