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

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

Similar Messages

  • Workflow gets stuck at a step

    Hi Gurus,
    I have a scenario where an employee submits his trip expenses and a workflow gets triggered thenafter. The workflow should then send an email to his supervior for a review. The supervisor has no actions to perform here and he will only receive an email.
    But the workflow gets stuck at that particular step meant for the email generation and the supervisor is not getting any emails(found from SWI1).
    The step has a method used where an FM is called and 2 parameters(Emp ID & Trip No) are passed to it.
    But due to some reason the fields are not poupulated with data.
    There are no binding errors.
    In fact we are using the object-key- parameters so that the data should be captured.
    The FM while testing is generating emails as viewed from SCOT.
    I have no idea of what more to check in this case.
    Please help me. Its too urgent.
    Regards,
    Binay.

    What product are you using? Remember this forum is for Business Objects products, not SAP as such...
    Ludek

  • When trying to install Firefox Beta the install process keeps getting stuck on "housecleaning". Help.

    It will not progress beyond 85-90%

    Some supported phones are not displaying Firefox in the Market for some reason. We're still investigating this. You can check if your phone is supported here:
    https://wiki.mozilla.org/Mobile/Platforms/Android
    and then download the app directly from here:
    http://ftp.mozilla.org/pub/mozilla.org/mobile/releases/4.0b3/android-r7/multi/
    (Note: If your phone is from AT&T, you will have to search for instructions on "sideloading" the APK file, since AT&T disables the option to install from non-Market sources.)

  • Workflow stopped at background step

    Hi Experts,
    I have a background step in my workflow , when iam testing this workflow from SWUS the workflow is getting stopped at this background step the workflow is not going forward to next step. the workflow log shows ' task started in background'
    moreover i did't find any errors in the log for the same.and i checked SM37 there the relevent job is finished. please advice what canbe the problem?
    Thanks & Regards,
    Sarath.

    HI Sarath ,
    Just change yuor task from BAckgroung to foreground. Insert a break point in the code of the function module used in the task and execute your workflow. 
    Coz you cant debug a background task , you will never come to know wht is happening inside .
    By debugging get the problem in the code , rectify it and change the task again to the background  .
    Hope this will help.

  • Background step is 'in process' status in PRD system

    Hello All,
    I have a background step which uses function modules 'create_text' and 'SD_WF_ORDER_REJECT' to update the documents.
    This step is in 'in process 'state' for 2 days in prd system. I checked st22 & swu2.
    There is not errors found.
    How do i reprocess this background step in live system.
    In dev system it's working fine.
    Wat could be the reason? Any inputs will be appreciated.
    Thanks...

    OK.  Next step is to work out why.
    1)  Does the issue happen with all workitems, or just the one.
    2)  If just one, look at the container of the workitem and compare the data to what the process actually requires.  Also check if there is a possibility of the document object being locked due to some outside (of workflow) process.
    3)  If all, Try running the method in SWO1 in debug to ascertain what it is which makes the PRD system different to that in which you developed the workflow.  REMEMBER TO EXIT THE PROCESS BEFORE UPDATE as it is a production system.
    If neither helps, please post any messages from the detailed log for both the workflow F item and the background item, along with an extract of the method code where the issue occurs and we will see what else could be the cause.
    Regards
    Gareth

  • Background method in workflow hangs

    Hi All,
    I have a background method in workflow which calles a report. Actually the report calles smartforms and I am storing OTF data on application server. I am not displaying the print preview. I am just stroring the OTF data on application server.
    When I explicitely execute the report from SE38 in background (using F9) file is getting generated on application server. But when I call this report from method of a workflow, method execution remains in process. And file is not generated.
    I have used the RETURN statement while calling it from workflow method. What could be the reason for this??
    Thandks in advance,
    Neha Yeralkar.

    Hi,
    Calling transaction and Submit programs are usually reserved for dialog methods, where essentially all the workflow needs to do is take the agent to the transaction or program where the user can complete the business activity. For background methods usually call function modules or BAPIs are used where the business activity is performed automatically without any user involvement. Moreover it will help you in handling exceptions returned from Function modules. Also define the method exception explicitly based on the exceptions of FM, inorder to track it down if it occurs.
    Regards, Saud

  • Error in first step of workflow

    Hello,
    There is an error in the execution of the first task (decision) of our wf: "Impossible to execute object ZBUS2081 method POPUPRESPONSABLE".
    Before this happened, we made a change in a table called TWFDB (I have a couple of posts about it, it relates to transaction OAWD), in order to launch the workflow. And it seemed to work, because at least the wf was started.
    I would like to know, first, if the source of the problem has to do with this table, and second, what changes should be made to it. The only field we changed was TWFDB-TASK, where we wrote the wf template (WS9000016). By the way, what is the purpose of field TWFDSB-TASK2?
    Here is the register that was modified:
    MANDT        400       
    NCITYPE      ZFIIINVOIC
    PRCTP                  
    OBJECT       BUS2081   
    METHOD       CREATE    
    PARAMETER              
    ACTIVE       X         
    TASK         WS90000016
    TASK2        TS00007869
    Only TASK was modified. The rest of the fields were left unchanged.
    Can somebody provide any hint? I would appreciate it,
    Thank you,
    Ivson

    Make sure you have the following steps in order in your process chain.
    1.Start Process Variant.
    2.Delete Indexes step.
    3.Load data.
    4.Create Indexes.
    5.Roll up (if required)
    6.Compression(if required)
    7.Completion job.
    8.PSA deletion(if required)
    I process chain should allways start with a start Process variant step.
    Thanks,
    Uma Srinivasa Rao

  • Auto execution of Syndicate Step in Workflow

    Hello Experts,
    Is there a way to auto execute the Syndicate step in Workflow?
    Workflow is as follows:
    Start ---> Branch ---> Process Success ---> Assignments ---> Syndicate ---> Notify ---> Stop
    In this case, workflow is launched immediately, validations and assignments are successful. Control is passed back to the user and we have to manually select Next Step option by right clicking the workflow.
    After Syndication, Stop is again a manual process.
    Please let me know if there is a way to automate the workflow for Success branch.
    Thanks in advance.
    Vinay

    Hi Vinay,
    Start ---> Branch ---> Process Success ---> Assignments ---> Syndicate ---> Notify ---> Stop
    As per your Workflow stated above:
    - The workflow will automatically trigger if the triggger action is either Record Import or Records Add.For Manual you will have to trigger the workflow manually.
    - For this you will have to set the workflow as Active and Auto Launch as Immediate.
    - Out of the above mentioned steps the Start, Branch,Assignments,Notify and Stop will not require human intervention  to move the task to the next step.
    - Once your workflow is triggered based on the validation is the branch step the records will move to the Process user else default.
    - The process user will have to complete his task and on clicking Next step it will run the Assignments automatically.
    - On reaching the syndicate step the selected records will get syndicated provided the MDSS settings are correct and the Assignments have passed else it will come back to the previous step on failing the assignments
    - The  Notify step will run automatically .You will have to only click Stop for ending the workflow.
    Hope It Helped
    Thanks & Regards
    Simona Pinto

  • Syndication step in workflow

    Hi,
    I am using MDM 5.5 SP06.
    I incorporated syndication step in my Workflow. while processing the syndication step in workflow, its taking toomuch of time for processing. The next step is grayed out.
    How to overcome from this issue.
    while syndicating the 1 record from syndicator(manually) hardly tooks 1 minute.
    while syndicating the 1 record in workflow taking toomuch( 30 minutes) of time.
    Could you please suggest me any settings if I am missing. I want to process syndication step in workflow with less time.
    Thank you,
    Kiran.G

    Hi Deepak,
    no luck with that either.
    Here is the the workflow log:
    4764 2008/08/18 11:38:36.828   Syndicating to port #1 (translations_out), agency is #1  
    4764 2008/08/18 11:38:36.890   Syndication manager has successfully connected to a port.  
    4764 2008/08/18 11:38:36.890   Syndication manager has executed syndication query. 0/0 records found  
    4764 2008/08/18 11:38:37.171   Syndication manager has exported the data to a temp location.  
    4764 2008/08/18 11:38:37.171   Temp files gathered in memory before sending over to MDM Server.  
    4764 2008/08/18 11:38:37.187   Syndication manager has sent the exported data to permanent location at MDM Server.  
    4764 2008/08/18 11:38:37.187   Temp files removed.  
    4764 2008/08/18 11:38:37.187   Export succeeded.
    This workflow actually contains one record. Nothing is being syndicated and the step gets stuck.
    This is the log from an older version of the repository (no workflow changes) with the same record:
    4764 2008/08/18 12:07:13.171   Syndicating to port #1 (translations_out), agency is #1  
    4764 2008/08/18 12:07:13.234   Syndication manager has successfully connected to a port.  
    4764 2008/08/18 12:07:13.234   Syndication manager has executed syndication query. 1/0 records found  
    4764 2008/08/18 12:07:13.531   100% done - Writing
    Exported: 1Suppressed: 0Total: 1  
    4764 2008/08/18 12:07:13.546   Syndication manager has exported the data to a temp location.  
    4764 2008/08/18 12:07:13.546   Temp files gathered in memory before sending over to MDM Server.  
    4764 2008/08/18 12:07:13.562   Syndication manager has sent the exported data to permanent location at MDM Server.  
    4764 2008/08/18 12:07:13.562   Temp files removed.  
    4764 2008/08/18 12:07:13.562   Export succeeded.
    Here I can send the workflow to the next step.
    It looks like MDSS cannot find the records for whatever reason.
    Christian
    Solved: In the syndication map a filter was set. All records that did not fit into the filter preset, were simply not syndicated. Thanks to everyone for support.
    Edited by: Christian Heuer on Aug 18, 2008 2:38 PM

  • Using send email step in workflow

    Hi Experts,
    I have a question regarding the send email step in workflow.
    We have the Receipient Type as Organizational Object and Expression as &WF_INITIATOR&.
    I want to know if the mail will be sent to the SAP email ID (i.e) in SBWP or will be it be sent to the Outlook email ID.
    We want to send it to the Outlook email ID of the User. Can you guide us as to how we can do the same.
    In some cases, we want to send the notification to both the employee and his manager. Can this be managed through the SEND EMAIL step in the workflow or do we have to explicitly create a method and use a std FM that sends the email to the concerned.
    Request your help on the same.
    Cheers,
    Belinda Clarke

    >We are getting the pernr of the employee. We can retrieve his email address for the same. So do we need to pass this to a workflow container and then use that workflow container value in the space provided for the email address.
    Yes. It is really up to you how you will develop everything. I personally like to get all the data into the workflow container, because it might be handy later in the life. Let's say that you go on with your custom email sending step and add there the code the get the data that you need in the email. It will work perfectly. But let's say that after six months the HR administrators want to get emails with a bit different content from this same workflow. Now you will need do another custom step. But if you had already all the data in the container you can simply add another standard email step and formulate the text with the editor and add the variables from the workflow container. Easy and simple.
    So, my advice is that for example add just add some background step to get all the possible data regarding the employees & leave request & managers or whatever. Now you have everything in the container and you can use them in the email(s) - and you can use them in other places too - for example in the work item texts, etc.
    Regards,
    Karri

  • One step approval workflow in SRM 7.0 BRF

    Hi,
    Please le tme know how to configure the one step approval workflow for Shopping cart in.SAP SRM 7.0
    We ant to know where we can specify the approva limit lik if sc value is greater than 50 it should go for one level of approval else no approval required.
    We are using process controlle workflows.
    Thanks,
    Venky
    Edited by: SAP SRM123 on Jul 14, 2011 12:18 PM

    I was get some trouble when implement one step approval from HQ in my company.
    It's a logical when some one just implement one step approval it is not make a hugh impact for controlling and sometimes end-user was change their own approval step make negative impact for workflow. Not logical but they make it logical but system still make sure it work.

  • Regarding runtime error ehile execution of Mail step in workflow

    Hi all when i execute mail step in workflow i am getting following error-
    SQL error in the database when accesing a table.
    How to correct the error
       Database error text........: "SQL system error. MSGID= Job=038082/DEV05/WP02"
       Internal call code.........: "[RSQL/INSR/ARFCSDATA ]"
       Please check the entries in the system log (Transaction SM21).
       If the error occures in a non-modified SAP program, you may be able to
       find an interim solution in an SAP Note.
       If you have access to SAP Notes, carry out a search with the following
       keywords:
       "DBIF_RSQL_SQL_ERROR" "CX_SY_OPEN_SQL_DB"
       "SAPLARFC" or "LARFCU03"
       "END_TRANSACTION_NONE_LOCAL_UPD"
       If you cannot solve the problem yourself and want to send an error
       notification to SAP, include the following information:
       1. The description of the current problem (short dump)
          To save the description, choose "System->List->Save->Local File
       (Unconverted)".
       2. Corresponding system log
          Display the system log by calling transaction SM21.
          Restrict the time interval to 10 minutes before and five minutes
       after the short dump. Then choose "System->List->Save->Local File
       (Unconverted)".
       3. If the problem occurs in a problem of your own or a modified SAP
       program: The source code of the program
          In the editor, choose "Utilities->More
    Please guide.
    Thanks.

    Hi Sanjay,
    Firstly are you using Send mail Activity or are u calling Fm SO_DOCUMENT_SEND_API1.
    Well  I suppose u are calling the FM, in that case just check the data that you are fetching before calling this FM. This error is related to sql query so check your select statements used before sending mail.
    Hope this helps.

  • Calling Transaction through User Decision step in workflow

    Hi all,
    Pls help me calling a transaction through User Decision step in workflow. I have attached two buttons to my User decision and the one of the outcomes to a task where I am calling the transaction through a method of BOR. But the problem is I am unable to see the transaction when I press the button on my User Decision at test run.
    Can you ppl let me know how can I achieve this?
    Pls reply ASAP...
    Thanks
    Sangharsh

    Hello Sangharsh ,
    Please Check the paramater of of the method which you define.
    e.g. I define CALL_TCODE_CJ03 method
          which have the parameters FLAG,ProjectDefinition,WBSElement2,User
          with export, import checkbox.            
    Pass the paratmeres in programs
    e.g.
    BEGIN_METHOD CALL_TCODE_CJ03 CHANGING CONTAINER.                      
    DATA:                                                          
          FLAG(1),                                                        
          PROJECTDEFINITION TYPE PROJ-PSPID,                              
          WBSELEMENT2 TYPE PRPS-POSID,                                    
          USER TYPE USR21-BNAME.                                                                               
    SWC_GET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_GET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_GET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.                
      SWC_GET_ELEMENT CONTAINER 'User' USER.                                                                               
    GET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      GET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                                                                               
    SET PARAMETER ID 'PSP' FIELD PROJECTDEFINITION.                       
      SET PARAMETER ID 'PRO' FIELD WBSELEMENT2.                             
      CALL TRANSACTION 'CJ03' AND SKIP FIRST SCREEN.                                                                               
    SWC_SET_ELEMENT CONTAINER 'FLAG' FLAG.                              
      SWC_SET_ELEMENT CONTAINER 'ProjectDefinition' PROJECTDEFINITION.    
      SWC_SET_ELEMENT CONTAINER 'WBSElement2' WBSELEMENT2.    SWC_SET_ELEMENT CONTAINER 'User' USER. 
    END_METHOD.
    I hope it will help you.
    ***Assigning points is the way to say thanks in SDN.***
    Minaxi Shah

  • Mail step in workflow is in infinite loop.

    Dear All,
           I have created a workflow with deadline monitoring feature.In the workflow created,I have defined a mail step in a loop with loop condition priority = 8 and three minute for deadline.When the workflow gets triggered , the mail step is in infinite loop and as a result the recipient is receiving the mail every three minutes once.
          Now I want to stop the workflow from infinite loop.Please provide me the solution for which I will be grateful.
    Thanks and regards,
    Pari

    Maybe you should check the thread you created unde the user Vijay Kumar [here.|need to kill the dead line menotoring;
    Regards,
    Martin
    Edited by: Martin Nooteboom on Jul 7, 2008 3:43 PM
    I see Mike also noticed and locked the other thread. Thanks Mike.

  • Shopping cart's One step approval workflow activation

    Hi Gurus,
    Please reply me for, how to create a shopping cart with One step approval workflow activation?
    regards,
    George.

    Hi George,
    The creation of the SC stays the same. Only the event linkage and the start conditions determine which workflow will be started.
    Regards,
    Martin

Maybe you are looking for

  • How Do I Get Portable?

    Sorry, this is long and involved, but here's my story:  I'm using PSE4 (yes, 4!) on an old desktop PC running Win XP.  I know I'm on borrowed time, so I need to make some changes (soon!).  I'm fairly comfortable and competent with Windows and PSE (at

  • Integration b/w uccx7.0 and oracle 10g

    hi, currently i am doing integration b/w uccx7.0 and oracle 10g. i have installed the oracle client 10g . and i added the DSN in ODBC and also the test connection is succesful.. but when i mention the DSN in app admin page (Subsytem> Database). it is

  • Smart Playlists Not Syncing Correct CONTENT on iPhone 3G

    Hi, I apologize about the length of this description, but I believe all or most of it may be relevant. I have been having trouble synchronizing ANY of my smart playlists. I first noticed it in the playlists I had created which entailed "Most Recently

  • How to get the path of the web-archive on the local filesystem?? [Apache]

    Hello all, Im running a webapplication on a tomcat server. I need to find out the path of the web-archive on the local filesystem to access several files. How can I do that with out having an instance of HttpRequest or whatever??

  • Advantages of using oracle

    Hello guyz... I never even tried to use oracle in my projects.. but I am curious what are the advantages of using Oracle compared with the other database....