cancel
Showing results for 
Search instead for 
Did you mean: 

Background step in workflow remains in process: Workflow gets stuck up

Former Member
0 Kudos

Hi Gurus,

I have custom workflow for organization management. The workflow takes information from e-forms(notifications) and updates the infotypes.

The step which updates infotypes is run as background step.However in some cases the workflow gets stuck up in this step.

This happens irregularly (once or twice in a month).

On processing these workflow instances using SWPC , nothing happens and the workflow remains stuck up in the same step.

Also checked for dumps but nothing available under WF-BATCH.There is no regular pattern for occurance of these instances.

Can you please suggest what can be the possible cause of them getting stuck up in the background task.

Regards,

Rohit

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Check ST22 shortdumps again. Look not only for WF-BATCH but also look for the intitator or the last processor's ID. Sometimes they would be the assigned the user to execute the step ecven if it's a background task.

Also, I would suggest looking through the code of the method that is being executed carefully. Make sure there are no 'EXIT' or LEAVE' statements. This could also 'sometimes' cause the background process not to return correctly. In addition, check that you are not executing an ever lasting loop.

If you have access in PRODUCTION, try to execute the method in debug mode to see where the program is inappropriately stopping (t-code SWO1).

Derrick

Banks & Company, LLC

Former Member
0 Kudos

Hi Gurus,

I executed the stuck up instances in foreground using workflow admin rights. It showed some data inconsistencies however the workflow got completed.

Need some time to confirm whether it could be a data issue.

narin_nandivada3
Active Contributor
0 Kudos

Hi Rohit,

Debug by making it to Foreground process and specifying the breakpoints in the logic.

Good luck

Narin

bpawanchand
Active Contributor
0 Kudos

I think the WF-BACTH user id locked as you are saying that the background workitems are not getting executed by wf-bacth, check SWU3 settings for background and make sure you unlock the user WF-BATCH

goto -


> SU01 -


> enter user name as WF-BATCH -


> and click on the icon LOCK/ UNLOCK. if it is locked then the user will get unlocked.

Former Member
0 Kudos

It is not date issue.

There are couple of SAP notes on this issue....please chcek them and see if you can get some info about this problem.

I also faced this issue....and tried hard to find possible resaons but never came to any proper conclusion.I then redesigned my workflow which worked in my favour.

former_member185167
Active Contributor
0 Kudos

Hello,

Check for locks and shortdumps as well.

regards

Rick Bakker

Hanabi Technology

martin_nooteboom
Active Contributor
0 Kudos

Hi Rohit,

Check the code of your background method, especially with the same input as the one for the tasks which get stuck. It sounds like the problem is there.

Regards,

Martin