cancel
Showing results for 
Search instead for 
Did you mean: 

workflow not executing in background WF-BATCH error

Former Member
0 Kudos

Hi ,

I'm really struck with workflow error when the task is processed in background mode ...

its saying WF-BATCH error.

i checked SWU3 everything is OK ...

but my workflow is working fine if the task is not executed in background mode....

What could be the possibility of WF-BATCH error while processing the task in backgound mode.?

Thanks in advance.

Thanks

-Suresh

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

You need to explain exactly what error you are getting and how you are getting it. The more details you provide, the better the answers will be. There could a lot of reasons why such errors happen and debugging WF is an art in itself.

Until you provide more details, here are a few ideas that might help you identify the problem:

- Did you run the actual method (of the BO or the class) behind the workflow task in background mode? Did it run correctly? You can write a simlpe program to call the method in background mode. It depends on your code but sometimes the behavior of function modules is different in background than in foreground especially if you are using a function module that calls a dialog screen or a BDC.

- Check ST22. Many times when the log shows the workflow is hanging, it is becaus of a short dump.

- Do some reseach on how you can debug in background mode and apply these techniques to debug your issue.

Hope this is helpful.

Former Member
0 Kudos

Hi Suresh,

Also go to SWU3 and check that the " MAINTAIN RUNTIME ENVIRONMENT " is customised along with all its child node.

Eddie_Morris
Product and Topic Expert
Product and Topic Expert
0 Kudos

Hi,

What error are you receiing exactly? Is it hanging or is there an error message in the technical log?

Please see note 1098805 section [2] for help with hanging work items.

Regards,

Eddie

Former Member
0 Kudos

HI Eddie .thanks for reply ..

in the task am using 'background processing' option .., in the workflow log am just getting WF-BATCH as error thats all

thanks

Former Member
0 Kudos

Hi,

Please check the user authorization of user WF-BATCH.

Please get touch with the Basis team regardign this.

Thanks and regards,

SNJY

Former Member
0 Kudos

Thanks for the reply!

But tthe workflow is executing OK when it is not run in background mode ... ..

User authorization for WF-BATCH ...how to check ??

thanks

Former Member
0 Kudos

Hi Suresh,

Please go to SU01 and enter WF-BATCH as user name and check the Profiles tab. It should have SAP_ALL profile added to it. If not please add it.

I hope this will solve your problem.

Regards

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

Also maintain "SAP_NEW" profile under profiles tab so as to ensure no operations are affected during upgrades.

Regards,

S.Suresh

Former Member
0 Kudos

HI ANIK,

Thanks for the reply!

SAP_ALL is already maitained for WF-BATCH user. but still my workflow is not working properly when run in background processing ..

IN my activity step am using the Task as background procesing ..and in that task am using a customized BO and customized method..

this workflow works properly when task is run in agent assignment mode rather than background processing mode...

Pls. let me know the alternatives.

thanks

-suresh

Former Member
0 Kudos

Hello Suresh,

Thanks for the reply!

even SAP_NEW is maintained ..but still the same issue.

thanks again

Former Member
0 Kudos

Hi Suresh,

Check the transaction SM58 for any RFC related error's.

Also, analyse your workflow log using Trannsaction SWUD.

Thanks,

Viji.

Former Member
0 Kudos

HI,

I have analysed the sm58,swud as well ...but still the WF-BATCH error...

thanks

Former Member
0 Kudos

the same issue again

thanks

suresh

suresh_subramanian2
Active Contributor
0 Kudos

Hello !

What is the error message that gets displayed ? Please share the complete error message.

Meanwhile, check in SM21 for system log and ST22 for any ABAP dumps.Also check, WF-BATCH user is configured as system user in SU01 and the password for WF-BATCH is synchronized with RFC destination for workflow.

Regards,

S.Suresh

Former Member
0 Kudos

HI Subramanian,

the workflow is hanging at the task "wf-batch' error ..thats all its showing in the workflow log.

I have checked SM21 no logs,,,,,,,,, ST22 as well no dumps..

WF-batch password synchronized with rfc destination workflow? could you pls be clear?

thanks