Backgroud task of a workflow set to status "ready"

Hi all, We have a worflow working since some years ago and now suddenly one problem has started to ocurr...
sometimes, one of the backgroud steps of this workflow is not processed in backgroud by WF-BATCH as expected but it remain in status "READY"....this is not intended and what we are expecting is that this task is processed in background without any user input inmediately after the previous task....
Until today, this task has worked without problems but now we got this task not processed but waiting in status "ready"...this only occurs sometimes, not with all instances of this workflow but only sometimes in a random way....
I can´t see anything wrong in the template...only thing I see is that this background task is executed right after a "dialog task" where user need to aprove or reject the document in workflow. this "dialog step" use the standard task "TS00008267" (generic decission task) as base and this standard task has "latest end" setted (I don´t know if this can be the problem or always has been in this way with this "latest end" active...)
any tips???? someone with same problems????
Thanks in advance....

hi Rob, first at all, thanks for your fast reply, much appreciated mate....
surfing this forum I just found this post () , I think, is same problem, related to RSWERRE program jobs....
I´ve seen that all of those background workitems in status "ready" that we expected to be processed automatically are from same day, and in that day we suffered a problem related to jobs system so I think that is the key of my problem....no wrong workitems in status "ready" others days than that one when we suffered that problem with jobs systems so pretty sure this is my case...
anyway, thanks a lot for your tips...if I found that my problem continues I will be sure of check what you are pointing me...
Thanks.
Miguel.

Similar Messages

  • Workflow problem with status Ready

    HI,
    I have a problem with the workflow not getting completed.
    The workflow is for the employee attendace 20000081 .
    After the manager of the employee accepts the leave application posted by employee , The workflow is in the following state: -
    ID  000000340552 Work item type    Background step      
    Work Item text  Find Employee .
    Status <b>Ready</b>  
    Now the question is there any background job which needs to be scheduled for changing the all the workitem with status 'Ready' to be executed .
    since once I execute this step manually then the workflow again goes  in the ready status with the next step and the next step in this case is 'Create attendance/absence' This stpe of the workflow is in again status 'Ready'.
    Please let me know if some know about this problem. 
    Thanks in advance .
    Ankur

    Hi ,
    Thanks for the prompt reply.
    I have tried the auto customizing and I am geeting the following log generated :
    Auto-Customizing: General tasks                                         
             E WZ:119  Instances for task TS60001307 already exist          
    Task TS60001307     not classified as general task                      
             E WZ:119  Instances for task TS70008037 already exist          
    Task TS70008037     not classified as general task                      
             E WZ:119  Instances for task TS70008125 already exist          
    Task TS70008125     not classified as general task                      
    And  while checking  the customizing setting in SWU3 the folling entires exists but as I understand the seeting is proper, please have alook below:                                                                               
    An active plan version exists                                                  
         Workflow administrator maintained                                              
         RFC destination: User locked                                                   
         Generic decision task classified completely                                    
         Tasks for document generation fully classified                                 
         T77* tables all available                                                      
         Monitoring job for missed deadlines is scheduled                               
         Monitoring job for work items with errors is scheduled                         
         Sending to objects and HR objects activated                                    
         Entries missing in PD control tables                                           
         Default Domain for Internet Mail Maintained                                                                               
    Workflow development environment                                                    
         Customizing incomplete                                                                               
    Prefix numbers for standard object types maintained                            
         An active plan version exists                                                  
         T77* tables all available                                                      
         Number range defined for customer tasks                                        
         Entries missing in PD control tables                                                                               
    Please let me know if this is not proper .
    Thanks and Regards,
    Ankur

  • How to set Changed_by field with User ID not by Workflow ID, when Status Update from Workflow

    Hi Frds,
    I am updating the Order Status from Workflow. So the Status update (or Order Changed) is save with Workflow ID. I need to insert UserID instead of workflow ID. Please help me out of this.
    Thanks
    Imran

    Hi Imran
    With the very few details available on your process, the workflow design and the "Order", all I can suggest is that:
    1) In your workflow definition, go to the step which sends the user decision, in the binding FROM the TASK TO the Workflow, set _ACTUAL_AGENT to a workflow container element , say DECISION_AGENT (of type SWHACTOR)
    2) Assuming that the next step in APPROVAL branch is setting of the status, go the task ID of that Step -> make it a dialog step (remove the Background Processing check) -> set it's agent assignment to general task
    3) Back in the workflow, set that STATUS SETTING step to Advance With Dialog under the details tab
    4) In the control tab of the same step, in the agents section, set agent as EXPRESSION and the value as &DECISION_AGENT&
    When a user approves the decision item, his ID will be stored in DECISION_AGENT
    The status set will execute immediately (because of "Advance with Dialog")  in the same session of approving as the user who approved is the same running this step now
    The status will be set by the ID of the Approver
    The above is hypothetical considering
    1) You do not have dynamic parallel processing
    2) Status setting happens immediately after the approval; as a first step in the approval branch
    3) The Decision Task does not has "Confirm End of Processing" checked.
    Regards,
    Modak

  • T&E Task TS20000130 (Set trip status to approved) - pernr locked errors

    We are using a delivered task (TS20000130 - Set trip status to approved) in our T&E approval workflow.  Since moving this to production, weu2019ve experienced intermittent cases where the workflow step completes with an error because the pernr is locked.  Does anyone know what causes the pernr to be locked?  Based on when this is happening, it appears that it may be being caused by payroll being locked.  Also, Iu2019ve noticed that it executes the step multiple times prior to returning the error.  Does anyone know if itu2019s possible to increase the number of times the step is executed before returning an error?  Is there a way to change the time period between executions of the step?

    Hello All,
    It might be due to auto locking settings which will lock the user if he/she does not log into SAP for some considerable period of time. At least this is the case at my client.  Re-check the Profile Mapping settings and see the difference after unlocking.
    Let me know if anyone has more on this or disagrees with my comment.
    Rgds
    CONMJI

  • Bapi to set user status of a task

    Hi,
    I am looking for a bapi or method to set the user status of a task.
    We have created a status profile for user status and need to set the user status of the task in the dpr_attributes badi based on some conditions.
    I tried bapi BAPI_BUS2175_SET_STATUS but it either says status profile not found or if i assign the status profile to the task it says status profile already active but never changes the user status.
    I checked method SET_DATA_EXT of class CL_DPR_TASK_O but it does not have user status field for modifying whereas GET_DATA_EXT method has the user status but it wouldn't help to change the user status.
    If anyone has any idea on this it will be extremely helpful.
    Regards,
    Simmi

    Hello!
    Please try the following code, it works for us (let's say the status profile is already active, otherwise you have to add the corresponding export parameter):
    DATA:  BUS           TYPE BAPI_TS_BUSINESS_TRANSACTION,
                RETURN    TYPE STANDARD TABLE OF BAPIRET2,
                  BUS-BUSINESS_TRANSACTION = 'SET_USER_STATUS'.
                  BUS-USER_STATUS = your_user_status.
                  CALL FUNCTION 'BAPI_BUS2175_SET_STATUS'
                    EXPORTING
                      TASK_GUID               = task_guid
                      IS_BUSINESS_TRANSACTION = BUS
                    TABLES
                      RETURN                  = RETURN.
    If still not working, you can have a look to the following SAP Note: 954975
    Matthias

  • Func Mod to Set the Status manually to Workflow

    Hi pple,
    We had a requirement to set the status of the Workflow to <b>COMPLETED</b> status.
    Is there any related function module to do the same?
    Regards,
    <i><b>Raja Sekhar</b></i>

    Hi Raja,
    You can try for FM: SWW_WI_STATUS_CHANGE_NEW.
    here is sample call for this FM:
    call function 'SWW_WI_STATUS_CHANGE_NEW'
          exporting
            status    = 'COMPLETED'
            wi_id     = i_wi_header-wi_id
            do_commit = 'X'
            act_user  = sy-uname.
    Hope this helps.
    Regds,
    Akshay Bhagwat
    Note:Pls. mark helpful answers

  • Retracting task in process workflow

    Hi experts,
    I'm currently working on how to retracting task in specific workflow.The situation is like this:
    User A initiates form then assign it to user B  (task B). User B completes (task B) then assigns to user C (task C).
    In case user B forgets some details, he wants to retract the form from user C so that he can edit form and resubmit it.
    What i can think of is to create a separate process and use a custom component to reset the status of this process.
    From what i observe, before and after completing task B, there are changes in tb_task, tb_job_instance and tb_branch_instance (if you think there can be changes in other tables, please let me know, thank you).
    I have tried to delete task C in tb_task, set task B's status from COMPLETE (100)to RUNNING(3)  and it's complete time to null. User B can see the task but after complete, it never appear in user C's task.
    I realized that after task B is completed, its associated job in tb_job_instance is deleted and task C and its job are created.
    Is there anyway I can create a job in tb_job_instance to link with current process, so that after user B complete the task, the form is routed to user C.
    Any comment will be much appreciated,
    Thank you,
    Tuan Anh

    Hi Jasmin,
    Now i'm trying to build a custom component to invoke the Retract route. Currently the task is assigned to user A.
    but i don't have the password of user A. When I use Administrator account to invoke taskmanager.completeTask(204,"Retract"), I have this error:
    com.adobe.idp.taskmanager.dsc.client.task.TaskPermissionException:
    User: 43296024-F721-D137-5FDF-D01FF8A70682 is not assigned task: 204.  The task cannot be completed
    Is there any way I can complete the task without knowing A's password ?
    Regards,
    Tuan Anh

  • BAPI_BUS2173_SET_STATUS should be able to set user status profile.

    Hi,
    I need use a workflow to setup user status profile for PHASE and TASK, but I found that the unique easy way to setup the user status profile for PHASE or TASK is manual operation.  I have created a user status profile of the BUS2173 and BUS2175. I can't use BAPI_BUS2173_SET_STATUS function to setup user status profile, but it can be used to setup a user status after the user status profiel has been setup by manuay.
    Why?
    Best regards,
    Arrow Yang.

    Hi,
    Try calling BAPI_BUS2173_SET_STATUS first time for setting the status profile by passing the status profile in iv_status_profile parameter and the phase guid but not passing the user status to the bapi.
    Now after this again call the same bapi, this time just passing the user status and phase guid and not passing anything in the status profile.
    We have used this bapi to set the status profile.
    Regards,
    Simmi

  • How to use Start Task Group for Workflow Interface

    Hi all,
    anyone who can tell me how to use the Interface IFWFTSKGRP (Start Task Group for Workflow Interface)?
    As far as I understood the documentation it can be used to restrict the selection of workflows that can be started in the Generic Object Services. But the question is how to implement it.
    Best regards,
    Carsten
    Edited by: Carsten Drewes on Jun 10, 2009 10:30 AM

    Hi, Carsten,
    (probably it's a bit too late to post an answer after 3 years , but I'll post it in case someone else needs it)
    You should implement GetTaskGroup method.
    The code should return id of the task group (otype TG, mantained in PFTC) that holds the list of workflow definitions.
    Here is a sample implementation. It's taken from FORMABSENC business object. It belongs to SAP demo workflow "Notification of Absence". I suppose it should be present in most systems and you can see it in action.
    begin_method gettaskgroup changing container.
    DATA: taskgroup LIKE rhobjects-object.
    *- set task group
    taskgroup = 'TG70000023'.
      *- set result
    swc_set_element container result taskgroup.
    end_method.

  • BAPI to set user status for PS

    Hi,
    I need to set the status as approved "E0002" from BAPI ( from workflow) for Project definition (BUS2001)
    I got BAPI " BAPI_BUS2001_SET_STATUS" and gave import parameter for  project definition but i couldnt able to give value for  set_user_status as it takes only 4 char but my status(JEST) is 5 char (E0002).
    Please help me how to use this bapi and what are all other bapi's i need to call to work correct.
    Ashu

    Use this FM I_CHANGE_STATUS for changing status.
    CALL FUNCTION 'I_CHANGE_STATUS'
    EXPORTING
    OBJNR = v_objnr
    ESTAT_INACTIVE = 'I0001'
    ESTAT_ACTIVE = 'I0002'

  • Reprocess - Workflow in process status

    Hi All,
    I am working with Workflow support,
    I don't know How to reprocess Workflow with the status is IN process.
    I know TC SWPR is a reprocess with error status.
    Thanks & regards
    Subramani.

    Hello Tom,
    I've had quite a similar problem with the terminating event in a dialog while the workitem is locked.
    I came across the same SAPNote 831443, but it doesn't seem to tell the whole story there. As I found out, the status change (from "in work" to "complete") is just skipped over, while the workflow continues with processing, leaving a last workitem "in work" hanging out to dry when the whole process has already finished.
    Basically the problem is, or was, that a popup dialog was shown to the user after the processed the transaction, which held the lock open. I have found no logs, saying that there was a problem with a locked workitem, anyhow.
    At last I have found out, that basically there shouldn't be much coding between the <b>COMMIT WORK</b> statement and the coding that just ends the method with <b>END METHOD</b>. This kind of procedure does definitly apply to the newer Versions, as I didn't have any problems like this before. Mayhaps and only a guess is, that the unlock-operation was previously registered with a perform like PERFORM unlock_workitem ON COMMIT. or something similar. This defenitly has changed under the new releases.
    In your specific case I would recommend to register the event processing in the update task and end the workitem's method as soon, as possible. For example:
    CALL FUNCTION 'SWE_EVENT_CREATE' IN UPDATE TASK   ...
    If this still does not help, you could further disjoin the transaction processing from the event creation by adding
    STARTING NEW TASK
    IN BACKGROUND MODE
    or whatever the correct syntax was here. This will schedule another tRFC on the database commit, which then is defenitly be picked up by another work process of the application server, just right -- hopefully -- after the object's method has completed.
    If you're feeling good with this answers, or it least it gave you new ideas to look upon, please assign points as appropriate.
    Best wishes,
    Florin

  • Show workflow visualization on status page" not available

    Hi, i'm trying to publish my sharepoint designer workflow to SharePoint, but it wont give me the option to select "show workflow visualization on status page", its just greyed out. If i use the beta version of SharePoint Designer (on a different server),
    it works fine, but it wont let me select it in RTM version. Has anybody else seen this problem? If so did you manage to figure something out?
    Thanks!
    Treasa

    Clayton,
    We are deploying a new SharePoint 2010 Enterprise solution. I wanted to verify with you..in order to use the workflow visualization feature we need to have a copy of Visio 2010 Premium?
    Thanks, Trey
    What call is being made on Form Load, and is it not being called when the form is initially opened?  I ask this, because you say the error only pops up when opening an existing form (not new forms).  Also, is that Form Load web service call using
    custom code?SharePoint Architect || Microsoft MVP ||
    My Blog
    Planet Technologies ||
    SharePoint Task Force

  • Set required status for all subtypes first error

    Hello,
    While implementing OSS note 1744002 for Application Control Workflow i had the following error.
    In fact, i added a new attribute for BOR bus2201.
    When i wanted to change the status to implemented, i got the following error 'Set required status for all subtypes first'.
    Thanks,
    Meriem.

    Hi Meriem,
    Any new attribute should be added to the newly created custom SubType of the Object type BUS2201, but not Object BUS2201 itself.
    Revert the BOR BUS2201 to its original state and add the new attribute to your z<subtype>. You will no more get the error.
    Regards,
    Kiran

  • Activity milestone function workflow set up

    Hi Experts
    Please let me know how to set up workflow for activity milestone.
    I would like to trigger a mail before certain days ahead of planned completion date.
    Please share if any document detailing this requirement.
    thanks and regards
    ramSiva 

    Hi,
    I am not sure but I think you can create a new user status. Set this status on 5 days or as your desire before planned completion date and based on this status, a workflow mail will trigger. Discuss it with your WF consultant.
    Also go thru the below link:
    http://scn.sap.com/thread/1492335
    http://help.sap.com/saphelp_470/helpdata/en/4c/227de546e611d189470000e829fbbd/content.htm
    Regards
    Shishir

  • Workflows on User Status

    Hi All,
    Can anyone help me on the the UserStatus concept
      I am having the requirement like this....
      When Workorder is not approved the approver sets the status to NPP(Not Approved) This should send a workflow to the System Owner. The System Owner is maintained in the Reference Object ( Equipment or Functional Location )
        Can anyone guide me in this......
    Thanks in Advance,
       Ram

    Hi,
    I would suggest you to go through the documentation on help.sap.com where you have very detailed explanation on how to work with workflows. That is for you to get into speed with the concepts of everything.
    Back to your specific question:
    Step 1: Add an attribute to the business object which holds the System owner. You might have to read the right tables and fill this up.
    Step 2: Enhance your Business object to accomodate the new events. You will have to create a subtype and then add the events and delegate the subtype to the supertype. For more information refer this:
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c5/e4adb2453d11d189430000e829fbbd/frameset.htm
    Step 3: Just go through the customizing to find the configured user status for the work order. I guess this is already done by your functional consultant. So take his/her help to find the right Status object type and maintain the entries in transaction BSVW under user status and have your business object's events there.
    Step 4: Define your workflow.
    Hope this helps,
    Sudhi

Maybe you are looking for