Skip to Content
author's profile photo Former Member
Former Member

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

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

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Aug 11, 2009 at 02:00 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 11, 2009 at 04:17 PM

    Hello,

    Check for locks and shortdumps as well.

    regards

    Rick Bakker

    Hanabi Technology

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 11, 2009 at 04:33 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      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.

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.