cancel
Showing results for 
Search instead for 
Did you mean: 

Workflow Hanging at a background step

Former Member
0 Kudos

hi all,

I have developed a custom class and i am trying to use one of the methods of the same in the workflow.

My issue is the workflow is hanging at that particular step. I am using the method as the background step.

Can any one please let me know where i might be going wrong.

Thanks in advance,

Regards,

Saurabh Anand

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

hi all,

the issue was in the method which i was using, i have rectiifed the same and its working fine now.

Thanks for your valuable replies.

Regards,

Saurabh Anand

former_member193382
Active Contributor
0 Kudos

Hi,

Can you tell whether the workflow resulted in error or it has simply stopped without resulting in error. Check whether the workflow instance is shown in SWI2_DIAG/SWPR or SWPC. If yes try restarting or continuing the workflow.

Check whether you have set any break-point in the custom method.

Regards,

Raj

Former Member
0 Kudos

hi,

I have tried using SWUD and locating the problem but i am not able to find the issue. The workflow is not getting into error rather in the log it displays that the step is in process.

Regards,

Saurabh Anand

Former Member
0 Kudos

i hope you have looked into the ABAP dump analysis in SWUD.

if you are not able to locate the problem there then try executing and debugging your method manually passing the appropriate values to parameters from the WF log.

make sure that your method is getting executed without any error.

former_member193382
Active Contributor
0 Kudos

Hi Sourabh,

As i said check whether the workflow instance ID is shown in the crashed workflow log i.e; SWPC. If yes, then try continuing the workflow.

Check and revert.

Regards,

Raj

Former Member
0 Kudos

hi vikram/raj,

I have looked into the ABAP Dump as well, and there is no dump from the workflow, the workflow instance is not displayed in the instances of the crashed workflow.

I have tried to provide manual execution to the method and it is working fine.

The workflow is neither crashing nor throwing an exception, what i am able to see in the technical log is that the workflow status is in process and it is stuck at the particular bakground step.

I belive that there is some mistake that i am making while defining the task. Can you please let me know that whether we can use synchronous object methods in background task or not.

Thanks in advance,

Regards,

Saurabh Anand

former_member193382
Active Contributor
0 Kudos

Hi,

yes, you can use sync method as background step. Check whether you have defined the task as background. Also try to analyse the step history of this task in the workflow technical log and revert.

Regards,

Raj

former_member193382
Active Contributor
0 Kudos

Hi,

Go through this link.

[http://help.sap.com/saphelp_nw2004s/helpdata/en/88/8be338b46c4950e10000000a11405a/frameset.htm].

Always worth a try.

Clear the workflow buffer.

tcode:SWU_OBUF.

Regards,

Raj

Former Member
0 Kudos

the method might be throwing an exception which you can check in transaction SWUD.