Workitem Locked

Dear all,
We're having ESS/MSS leave request approval.
One of our manager when he's trying to approve leave request the system prompt with message "workitem is locked". I check the workflow log and there's no error.
There's "Work item reserved" in the execution column and also many "Execution started" in the same column.
For your information, in our portal inbox, we don't have and "Reserve" and "Replace" button.
Any body can give me a clue how to make this workitem executable?

Hi Maorriyan,
What RELEASE are you on?  It makes a difference.
From SWIA you should be able to use replace manually provided the work item is a dialog work item and not in error, completed or cancelled. 
If its not a dialog work item you need to check your selection criteria - remember you want the work item the user is trying to complete, not the parent workflow instance.
If it is in error, completed or cancelled, then you need to look a bit harder at what and where the problem is.
There are a number of notes.  I'd advise checking for notes on the leave scenario itself using the standard workflow definition id as your keyword.
Regard,
Jocelyn

Similar Messages

  • Workitem Lock  problem in workflow for leave request

    Hi Experts,
    I am facing the strange problem in the workflow of the leave request.
    We have implemented the two  level approval for workflow. For the first level approval we have created custom WebDynpro  application where approver approves the request and selects 2nd approver for the workflow. Here we are calling method initiate_state_transition of class/interface if_pt_req_request to change the status of workflow from sent to approved in custom WebDynpro  application .
    For the second level approval we are using standard approval application.
    When 1st approver approves the request, workflow moves to next task, but this task gives error "Work item 000000605682 locked by user SD21690 (enqueue error)".
    I am not getting why this is happening?
    Could you please help me.
    Thanks
    Sameer

    Hi
    As you have developed a custom application for first level approver where the status of record is being changed from sent to approved.
    please check what is the workitem number that is initiated. If its 605682 and the first approver is SD21690 then please make sure you release that workitem in your webdynpro application.
    You must have customized the workflow to add the first approver step. Where you would be mentioning the name of the custom application in SWFVISU against your custom task.
    The problem is with the workflow so please check the workflow. Your first approer is not releasing the workitem post approval and that is the reason for lock.
    Vivek - this lock is not enque lock its a workitem lock.
    Please revert with further questions if required.
    thank you
    barin

  • Workitem lock error did not correct automatically

    Hi Everyone,
    We have observerd that we have a number of workitems which go into error after following 3 messages
    1. Warning: Temporary error in result processing of work item
    2. Warning: Error when loading component: Work item locked
    3. Error      :A system error has occurred in lock management
    But all the workitems under such error are automatically resumed after a duration of 20-30 minutes.
    However recently we are having some wotkitems under this error message which have not restarted automatically
    Could you please advise what is the background process that automatically re-starts such erroneous workitems and why some of the workitems are not getting re-started
    The only option for these workitems is to complete them manually.

    Please check this note : 854495
    This may be useful for you.

  • Workitem locked by a user

    Hello gurus
    I have a doubt because in the WF i'm using in a certain task sometimes when I try to complete the task an error msg appears saying "Workitem XXXX is locked by user WF_BATCH". A condition in the WF is immediately after this task, so the info went to the wrong direction every time this happens. Any ideas?
    Regards IA.
    Armando Miranda

    Hello
    Nope, nothing is being executed in parallel in that WF. Usually this happens when this user receives some requests in his UWL and try to solve them. The first one gives no problems but after that every task is locked.
    We are writing to the container every time the user made a decision in the screen. In this case the user have 3 choices: "X". "Y" and "Z" with the values "0", "1" and "2". when the user choose "X" then a BAPI for writing a specific value in the container is executed and writes the "0" value, then the BAPI for WI completion and then the decision step takes the info and get everything in the "right" direction. But since the WI is locked, the value in the container is null, so the error comes.
    Regards

  • Background Workitem locked

    Hello my friends:
    I have a problem with a background workitem. It has been locked since 2 months by WF-BATCH user. I have executed the method from SWO1 using the same object key and it is working fine. Also I tryed from SWI1 with the option Edit -> Workitem -> Execute background workitem, but the system sends this message: WO(538) "Function cannot be executed on work item...".
    I look for this workitem in SM12 and SM04 but it doesn't appear there. System doesn't recognize locks by WF-BATCH user.
    This happens in Production.
    Do you know something else to do?
    Thanks!

    hi,
    it would not lock if it's authorization issue. instead it will complete and desired result will not be achived.
    Is it happening with every instance of background activity? Possibly yes a dialog activity might be involved.
    Try completing it manually from SWIA. also check for SM58 (enter WF-batch for user in selection screen) and complete the LUW manually.
    alwo try SAP_WAPI_Workflow_resume or resume_workflow. pass the instance id of workflow (not workitem)
    regards,
    Imran

  • Lock object problem on custom table

    Hi all.
    I am having a bit of an issue with a lock object on a home made table. We're using the UWL and a custom IView to display an extended invoice. No problem releasing the workitem lock, just the table entry lock.
    I can see the lock in SM12. Tried dequeue/dequeue all RFCs from backend, no luck.
    The lock is set from a custom RFC. This RFC succesfully releases the lock when used in SAPGUI, and we have an RFC enabled wrapper around it. However, once used in the portal, the locks aren't released. My suspicion is that it has to do with sessions and I can't see a way to control that since dynpro uses a connection pool IIRC.
    Anyone have any ideas on how to solve this?

    Small correction if you are not aware. Do not create your custom tables in APPS schema? Custom tables are supposed to created in custom schema such as XXPO and a synonym created for the table in APPS schema.
    When creating an EO, you do not need to provide the schema name. You would need to enter only the table name.
    Hope this helps.

  • Issue with a workflow step- BO used: BUS7051

    Hi All,
    We have a requirement where we are adding a step in a workflow as we want  PCR(Process change request) form to get dispalyed to a user's inbox(SAP Business workplace, Workflow inbox) and then proceed with the usual flow of the workflow.
    To dispaly the same we are using the method "display" of standard BO BUS7051.
    When i am testing the workflow thro' R/3, the user gets the workitem in his SAP Business workplace Inbox, he is able to view the form properly and then its moving onto the next step.
    But when i am testing the same thro' Portal, the workitem comes to the user's Workflow Inbox,form is getting displayed properly for the first time but again when the user opens the form he is getting the msg " workitem locked by user...enqueue error".
    Can any one plz help me out in resolving the same.
    Regards,
    Richa Sinha

    Hello,
    Should not have any issues as method display calls Tcode IQS23 and hence lock entry issues should not arise.
    Vish

  • Lock the workitem

    Hi,
    couyld any one help me on this
    our scenario.
    We have developed a WORKFLOW and we are initiating it form our WEBDYNPRO ABAP application.
    we have integrated our TASK and WEBDYNPRO ABAP APPLICATION name in SWFVISU transaction.
    We are getting the workitems to portal UWL also.
    we are sending the workitems to the two users at a time
    namely 1) USERA
    2) USERB
    Our issues
    1) The user 'USERA' is accessing the woritem from his portal UWL it is working fine.
    2) But at the same time the USERB also accesing the same workitem
    How can we lock the workitem to the other users if some one is being accesing the particular workitem.
    Thank You,
    Swetha Chevuru

    Hi,
    Please use the following FM to lock/unlock the workitems.
    DEQUEUE_E_WORKITEM
    ENQUEUE_E_WORKITEM
    Sample code :
    CALL FUNCTION 'ENQUEUE_E_WORKITEM'
    EXPORTING
    *   MODE_SWWWIHEAD       = 'E'
    *   CLIENT               = SY-MANDT
        WI_ID                = '000000068635'
    *   X_WI_ID              = ' '
    *   _SCOPE               = '2'
    *   _WAIT                = ' '
    *   _COLLECT             = ' '
    EXCEPTIONS
       FOREIGN_LOCK         = 1
       SYSTEM_FAILURE       = 2
       OTHERS               = 3.
    Result : workitem will be locked to process by another user and you can find and entry in SM12.
    Thanks and regards,
    SNJY

  • Workitem unlocked but still locked

    Hello Gurus ,
    I have  this strange situation. I have a PR whose service entry sheet's workflow overview says that the workitem is unbloked by the system. But still the workitem was found in lock state. As the user is not able to release the SES.
    Please if you could explain this situation to me  that would be a gr8 help.
    Thanking you in advence!!!

    Hello
    do you have any entries in the table BBP_WFLOCK?
    Regards,
    Daniel

  • How to get the 'Locked By' agent of a workitem - Urgent !!!

    Hi,
    I have a requirement where I need to identify the agent who 'LOCKED' a specific workitem. Let me explain the scenario..
    I have a task which is delivered to multiple agents and any one of them can execute the witem first and there by locking that particular workitem. The workitem is given the status 'InProcess' and should disappear from the inbox of other agents. I have a deadline monitoring 'Latest End' on this particular task with a modeled deadline. This modeled deadline should use a SendMail step to send an e-mail only to that particular agent who has put this workitem in 'Inprocess' status. How can we do this..i.e identify this agent who locked this workitem. I have seen that the cont. elem WIActual_agent is filled with only when the task is completed(in our case its still INPROCESS and missed its deadline).
    I looked into the table SWWWIHEAD(Witem header table) but it doesn't have a field that can give 'Locked by' ...
    Pl..let me know how to do this asap...
    Thanks in advance...
    venu

    Hi Kjetil,
    How quick you are, and your memory serves you well.  You search by workitem id where NO_SEL is not equal to 'X'.
    Congrats
    Gareth

  • An error occurred in lock management when attempting to set a lock on table

    Hi All,
    I am getting the error 'An error occurred in lock management when attempting to set a lock on table SWWWIHEAD.'
    Sometimes the workitem is not created by the Workflow due to above error & this happens rarely but keeps coming.
    cany anyone guide or help me how to correct this problem.Is it happening due to my custom code making locks on the above table?
    Thanks in advance.
    Pls do reply

    I think you should not use any code to lock the table SWWWIHEAD.  Please let us know why you are writing code to put lock on this table.
    Thanks
    Arghadip

  • User Decision - locking an object

    Hello,
    I'm using User decision step to send workitem to approver for travel request approval. If the travel request is already locked then user should get standard error when clicked on Approve/Reject buttons and the workitem should remain in the approver's inbox for approval. Please advice me in this.
    Thanks in Advance.
    Siva Sankar.

    Hi
    Please elaborate on your requirement as to why such a behaviour is required.
    Also by locking do you mean that the trip has status locked or it is the concept of locking you are talking about.
    Thanks and Regadrs
    Aman
    Edited by: AmanGupta on Apr 13, 2010 1:42 PM

  • Program RSWWCOND - Locking entries

    Dear All,
    I am getting some problem with Program RSWWCOND. The execution of this program results in error 'Lock table overflow', due to which no user is able to login to the sap system.
    I need to know what is the purpose/funtion of this program.Does it have something to do with workitems & why i am getting this error.
    when the error occured we had around 10,000 workitems in our sap system.
    The solution is to implement the sap note to increase table size to accomodate all the workitems,but i need to know the exact cause why it happens.
    Please do help.
    Thanks.

    This report is used to Evaluate the condition in SAP Workflow step.
    Check this link
    Lock table overflows - what does it notify
    Thanks
    Arghadip

  • Task: TripStatAppr lock and unlock

    All expert:
    in the TS20000130, why the work item text is:
    PersNr. &_WI_OBJECT_ID.EMPLOYEENUMBER& is locked. Please unlock.
    is it the employee really lock? how to unlock it?
    The description like this:
    Personnel number &_WI_OBJECT_ID.EMPLOYEENUMBER&
    (&_WI_OBJECT_ID.EMPLOYEE.NAME&) is locked. The trip status can
    therefore not be set to "approved" for this employee.
    The message reveals which user is
    The message reveals which user is
    locking the personnel number. After unlocking the personnel
    number, execute the workitem.
    Thanks in advance!

    Sometimes due to ENQUEUE error the Trip remains locked by WF-BATCH. I think if you now execute the workitem it will work.
    Thanks
    Arghadip

  • Lock entries for table SWWWIHEAD in SM12 Urgent

    HI
    From last few days, In SM12 there are lock entries coming for workitems of table SWWWIHEAD even though workitem is completed successfully. Time of lock entry shows it is time when approver started taking action on it.
    Please let me know is there any impact of this on system and how it is happening and what we should do with these lock entries.
    Appreciate your help.
    Regards,
    Shiv.

    Dear,
    Actually we faced an issue related to this like the approver took action on it. after that the item got locked. the basis is telling there could be the RFC session from SAP Portal inbox which is not closed somehow. may be session is exited without properly logging out. in this case the item was still in his inbox and when the approver tries to open it, the error message says workitem is locked bye the same user id. The basis is telling the lock will be removed after the default stipulated time (in my case, its 8 Hrs ! ).
    hope this helps.
    with regards,
    Sudhahar R.

Maybe you are looking for