cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow wf-batch user

JariYlitolonen
Explorer
0 Kudos

Hi all !

I have a workflow which has two steps that call bapi BAPI_GOODSMVT_CREATE. When I run the wf on background and an error happens during bapi call, step stays at 'In Process' state and wf is stuck. In sm58 I can see the error message, but I would like wf to return to step and goto into en error. If I run this BOR method interactively it works perfectly. SAP version is 4.6C ja wf user is wf-batch. I tried to change user of the step to an other user (dialog) but all background tasks are run by wf-batch. What should I do ?

Br

Jari

Accepted Solutions (1)

Accepted Solutions (1)

former_member186746
Active Contributor
0 Kudos

The workflow step calls a method of a business object, if in the method a short dump occurred, the workflow step then still thinks it is in process.

What you should do, is use the workflow log to find out what contents the container elements have.

Now you use that information to execute the business object method in foreground (transaction SWO1) you may have to instantiate the BO first (depends on the kind of method it is).

For more info search the workflow forum here on SDN.

Kind regards, Rob Dielemans

Answers (1)

Answers (1)

JariYlitolonen
Explorer
0 Kudos

I find solution to problem. I added lines

EXCEPTIONS

OTHERS = 1.

to BAPI call and now call comes back to task.

Jari