Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Remote Debugging PROCESS DOCUMENT (or Workflow)

Former Member
0 Kudos
444

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Kudos
268

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

4 REPLIES 4
Read only

former_member186746
Active Contributor
0 Kudos
268

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

Read only

Former Member
0 Kudos
269

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

Read only

0 Kudos
268

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

Read only

0 Kudos
268

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