Skip to Content

Resolution for Workflow Execution Interupted

All of those who have been developing workflows must have experience the problem workflow is hanging or remains in process state even after it is completed. I can not explain you in my last project we had face this issue and it took us so many days to understand what the reason was and how we resolve it. I would like explain it step by step the approach we followed.  It was basically a parking workflow whose purpose was to post the document once it is approved. This functionality was tested successfully in Development, Quality and UAT but in production all of sudden the workflow is not able to post anything all the workflow remain in process when they were suppose to be completed and posted. This is how we started looking into the issue.

  1. SWPC is the transaction where we can see all hanged workflows. It shows all the workflows which are in process status and can be restarted from here.
  2. First idea was to continue the workflow again as sometime because of ongoing basis activities execution can get interrupted. Tried it but was not able to succeed.
  3. So next thing to look was for some dumps in ST22. Sometimes because of RFC authorizations the workflow hangs but surprisingly there was no dump. So have to move on next step of research.
  4. Next step was to look into SM21 log after continuing the workflow. So here we found something strange. Some authorization issue for WF-BATCH user to execute the program. We got excited and asked our security team to provide the authorization for the same. It took 2 days to get the authorization and we were like pretty sure that it will work now. Surprisingly the issue still did not get resolved even after the authorization.
  5. Next approach was to look into SMQ1 to look if something is struck in the Queue or something but surprising it seems ok. Then we googled it and found some hit and trick sort of solution which was, as we have created a subtype for our business object some people suggested to regenerate it. We tried but end result was the same.
  6. Then the place where our last hope was to check the TRFC log in SM58 which WF-BATCH uses. We found one surprisingly red entry as soon as we continued the workflow a connection closed error was issued there. We tried it 3-4 times and it was happening. We were somewhat confident now that it’s related to Workflow basic configuration.
  7. To resolve the issue we again perform the workflow customizing and to our amazement it posted.

 That was the party day for us because after days of R&D the issue was ultimately resolved. The idea to write this was to share with you the various possibilities’ for workflows which hang. I have taken my first step by sharing what i learnt in last few weeks and i hope it will help someone out there. Please feel free to add your comments or enhance this blog. 


“When knowledge gets divided it automatically gets multiplied.” 

You must be Logged on to comment or reply to a post.
    • Hi,

      Thanks for the reply.No we did not make any change un workflow admin related customizingonly the WF-BATCH user was re-created and the RFC was mainatained again.


  • Hi Nabheet,
    Great info – perhaps you could submit this as an E-Learning?  Also, I wonder what it was in the Workflow Customizing that was re-set, and allowed the WF to process. 
    PS:  SWUD would have taken you to most of these places in short order (although of course, proper RCA requires time, as does getting the appropriate authorizations)
    • Thanks a lot`Mam.Infact i have just started blogging also..want to be ac active member.In workflow customizing actually the Batch user was created with customized roles not SAP ALL and secondly with Trfc not configured properly that was why it was done again.Surpirisingly in SWUD also everything looked fine but connection closed issue got resolved.

      I see that you have 15+ years of experience in workflow it will be good if you can share some of your great adeventures with us.


  • Your Blog is very useful.

    But for any authorization issue you can blindly rely upon tcode ST01.

    Here you can trace any missing authorizations with field values which are missing for that object in PFCG for that user.

    This might be useful for many, so shared this info which is fast and efficient.


    Guru Dutt

  • Hi Nabheet,

    If workflow is not completed but posting is happened, then what might be the issue.

    When we check the log of the particular WF item it has Workitem executed or sometimes it has Interrupted.