WORKS ITEM 565556 LOCKED BY USER (ENQUEUE)

Hi
Im having a problem with workflow,
message appearing as follows, i dont know which user it is?
WORKS ITEM 565556 LOCKED BY USER (ENQUEUE)

Hi,
Check in SM04 Trxn code whisch user has locked/using.
Reg,
Ashok

Similar Messages

  • How to retain the work item in inbox of user if user press the icon cancel?

    HI,
    we  are using a text editor in approval section of workflow where the user needs to enter the reason for apporval or rejection.
    the requirement is how to retain the work item in inbox of user if user press the icon cancel? there are two icons in editor,one is ok(tick marg) and cancel(cross mark).
    so when user dont enter any text in the editor and press on cancel icon,then approval/rejection should not authorize and work item will remain in the user's inbox .unless and untill he enters the text.
    i have tried   LEAVE TO TRANSACTION 'SBWP'.leave program etc but nothing is working.
    please guide me.
    thanks
    prsahu

    Hi,
    Go with Sangvir Singh suggestion.
    It also looks neater from a Business Process Modeling perspective. You continue the process flow only when a change has occurred.
    Kind regards, Rob Dielemans

  • Accessing Work Items assigned to other users from end user page

    Hello Experts,
    We are using Sun IDM 6.0 SP1 at our client place. Most of the applications integrated with IDM are manually provisioned, in the sense, once after all the necessary approvals are received the request will be assigned to a group of provisioners, they will manually connect to the requested application and create the account in native system. There are more than 100 such provisioners in the organization.
    Current design is to assign a work item to all the provisioners (like Multi approval) and once a provisioner assigns the request to himself then the corresponding work item will be taken out from other provisioners approval queue. These provisioners login to end user page of Sun IDM to access their approval queue as only the end user page is SSO enabled.
    Because of the large number of requests in the system (more than 50k) and each request having 100 work items, the number of work items in the system is huge and thus the performance of the system is very poor so we are working to change the design to bring down the number of work items in the system.
    Customer is not convinced to have a dedicated person who can get all these work items in his queue and assign it to the appropriate provisioner, they are looking to have a solution something similar to the current one in which all the provisioner can see all the requests in the system and they can pick from it and assign to them.
    So we are thinking to create a generic id in the system and assign all the work items to that id, and make changes to the “end user work items list” file so that all the provisioner can see the work items that are assigned to them as well as that generic id.
    But for some reason I’m not getting the work items assigned to other users in the end users page. I have tried assigning all the capabilities to logged in user and tried some code changes in “end user work item list” page.
    Please share if you have any sample code which can list the work items assigned to other users in end user page. Also please let me know if there is any better alternate to this problem.

    Hi,
    There is a option to find and get other user's workitems. Please check the attestation and remediation tab. Use the form portion from attestation page and add it in the Work item list form. This will enable to the user to search for another user's workiteams and assign it to him/her manually. (The user needs to be assigned proper admin rights)
    To get all the workitems, in the system, you will need to query the repository for all the workitems.... but not sure it will be a good idea in your case as the volume is very high.
    Hope it helps
    Regards
    Arjun

  • Item already locked by user error

    Hi, I am getting the problem item already locked by User error when i try to edit a user idm 6.0 So, any solution for this?

    The basic reason for this error is the object you are trying to access is already locked by another user (helpdesk/ proxy user or admin).
    Generally you can check the lock status who has the active lock on the object from the lh console also.
    http://identitycontrol.blogspot.com

  • Work item for an only user

    Hi guys,
    my problem is this:I have a wf structure for invoices blocked----->at a certain point I enter a simple condition:if account assign category of PO is Q I have two  'containers' which set Organization unit,Rule number tasks for Purchasing group and then he send mail nodes which send  an e-mail to different Purchasers and the inbox of these Purchasers are obviously filled...if account category is P I have decided that it is noot important the Purch Group and so I have entered only a 'send e-mail' node which sens an e-mail to an user and no other.When the flow closes itself I have entered an activity node which display the invoices blocked(task TS90000030).
    Now the problem is that even when the flow follows the way to send a simple e-mail to a fixed user all the other users(those associated to a PO account category Q and in Organizational Structure)receive in their inbox the communication of invoice blocked with PO account assign category P which instead it should gone only in inbox of fixed user..This fixed user is not in organizational structure but I should want that in inbox the other users obviously don't find the work items not for them..
    Thanks in advance for attention
    Bye
    Massimiliano

    Hi.
    Why are you using two ways of geting the users ? Organization unit and Rule number tasks for Purchasing group ?
    Why don't you use only to one kind ? OR HR or only by MM ?
    Is your WF a standard one ?
    But in your design it is getting always ALL users independently of your scenario. Why don't you divide it in two different work items. Put a condition before and folow a way when it's type Org. unit and another way to Rule ?
    Why don't you use release strategy configuration to get users by release code configuration like in PO/PR WF's ? ASk to your MM functional to configure in SPRO, strategies type 9 (EXIT). In this EXIT, you find users by role (basis role by release code) ?
    best regards.
    Glauco

  • Administrator Check work item displayed to all users.

    Dear All,
    Following Workitem which is created from Leave workflow is appearing commonly to all users.
    there approx. 200 Workitems as HR Administrator: Check Request Data with R/3 Data
    As SAP suggested , we have removed the binding in Administrator Check Task. wast that  the problem ?
    When I check the table SWWUSERWI, all these workitems are not there.
    From where system picking up these administrator Check workitems and what will be the solution ?
    Thanks in advance.
    Regards,
    Kamal Rawal

    Hi Surjit,
    SAP is suggesting to apply the Note - 779075.
    Note says-
    The application "LeaveRequestAdmin" is not released. Use transaction
    SWFVISU to delete the following entry:
    TS12300104 WebDynpro Java
    APPLICATION LeaveRequestAdmin
    PACKAGE sap.com/ess~lea
    You must then register the work items again. For more information about
    registering work items, see the UWL documentation.
    Rule binding for 60100010   HRA dmin is removed. But Terminate if RUle Resolution wiout result is ticked.
    How to Register the workitem again ?
    Regards,
    Kamal  Rawal
    Edited by: Kamal Rawal on May 11, 2009 6:33 PM

  • Browse Work items assigned to a user.

    Hi experts,
    is there any table or somewhere where i can get the relation between a workitem and a user when it is assigned to him?  I am looking for a list of workitems assigned to a user that have not been yet processed or something like this.
    Than-you very much,
    Artur.
    Edited by: Artur Rodriguez Coma on Jan 26, 2010 12:37 PM

    Hello Artur,
    you should find those in the
    Table: SWWUSERWI
    Depending on your requirements, you could also use the
    Function module: SAP_WAPI_CREATE_WORKLIST
    which offers a bite more filtering options, takes substitution into account and will probably cope with assignments through the organizational model better.
    However, for a quick-view or so, you can be well with that table already.
    Best wishes,
    Florin

  • Enqueue for work item n deleted by called application

    Hi All
    We upgraded from 4.6C till ECC6.0 and from then we receive occasionaly messages in SM21: Enqueue for work item 000001198539 deleted by called application.
    This results in problems when 2 dialog task are executes after each other. Somethimes the second taks is not executed. I find in the log the following errors:
    - Temporary error in result processing of work item 000001199739
    - Error when loading component: Work item 000001198388 locked
    - Work item 000001198388 locked by user WF-BATCH (enqueue error)
    This is the head of the WF that's locked..
    We implemented all relevant OSS notes regarding the message, but still we receive those messages (notes 1040693 - 1050793 etc) We are on support package SAPKB70012.
    I have checked the code in our custom WF and in some background task we use a DEQUEUE_ALL. Can this be the problem? The WF worked perfectly in 4.6C.
      CALL FUNCTION 'ENQUEUE_EFBKPF'
       EXPORTING
    *   MODE_BKPF            = 'E'
    *   MANDT                = SY-MANDT
         bukrs                = i_bukrs
         belnr                = i_belnr
         gjahr                = i_gjahr
    *   X_BUKRS              = ' '
    *   X_BELNR              = ' '
    *   X_GJAHR              = ' '
    *   _SCOPE               = '2'
         _wait                = 'X'
    *   _COLLECT             = ' '
       EXCEPTIONS
         foreign_lock         = 1
         system_failure       = 2
         OTHERS               = 3
      IF sy-subrc <> 0.
        RAISE locked.
      ENDIF.
      UPDATE vbsegk SET zlspr = i_zlspr
                    WHERE ausbk = i_bukrs
                      AND belnr = i_belnr
                      AND gjahr = i_gjahr.
    *                and ( zlspr = 'A' or zlspr = 'Y' ) .
      COMMIT WORK AND WAIT.
      CALL FUNCTION 'DEQUEUE_ALL'
           EXPORTING
                _synchron = 'X'.
    Any help appriciated
    Kristof

    The entries we have solved by removing the DEQUEUE_ALL function in a method.
    Still we receive somethimes errors in the workflow log
    Temporary error in result processing of work item <n>
    Message no. SWP030
    Error when loading component: Work item <n> locked
    Message no. SWP034
    Work item <n> locked by user WF-BATCH (enqueue error)
    Message no. WL605

  • Terminating Event to Event Queue due to Work Item Lock

    I have a dialog workflow task based on an asynchronous method defined with a terminating event.  When the user executes the work item, the method generates the terminating event (via a V2 change document) but the work item is enqueued (locked) by the same user (locked when they execute the work item from SBWP) and therefore the terminating event goes into error and is placed in the event queue.  The background job which processes the event queue does not redeliver the event so it stays in the event queue and the work item fails to complete.  Other than dequeing the work item lock myself with a function call how do I get around this catch 22?

    Hello Martin,
    Actually, the locking happens whether I have the task as asynchronous or synchronous.  The problem is the timing. If the user does not release the lock (by backing out of the dialog which is executed) prior to the terminating event attempting to enqueue and complete the work item then the event goes into error and is inserted into the event queue (and lingers there indefinitely, almost). Another issue with the asynchronous approach is that even if the user backs out of the dialog before the event actually attempts to complete the work item they will still see the work item in the inbox unless they click the refresh button when they get back to the inbox. 
    I have changed the task to synchronous but here is my scenario and another question.
    The process being workflowed is the approval of service entrysheets (similar to an invoice if you are not familiar with External Services).  In our process, there are a large number of documents being created and requiring approval by particular approvers.  It is a normal scenario for an approver to have, lets say 25 documents in his inbox awaiting approval. It was not practical for him to have to navigate back and forth between his inbox and the approval task screen.  Therefore, I give the users the option of (when executing a work item) having all the documents in his in-box (for this particular task) be presented in an approval list screen.  They can then do a mass approval of the 25 documents with 1 click and 1 navigation.  This list screen is also available to be executed outside workflow via a tcode.  So, when the user executes the mass approval (either from the inbox or outside workflow) the work items are terminated via the terminating event assigned to the approval task.
    A couple of issues remaining:
    1) Given my example of 25 work items (user executes 1 work item from in-box
    and I displayed all 25) being approved, when the user returns to the in-box, the 24
    items remain in his inbox until he clicks the refresh button since these were not actually "executed" from the workflow engines point of view.  However, these were terminated successfully because they were not "locked".
    <b>Question:</b> Is there a way (user exit?) to trigger the inbox refresh automatically.
    2) Now, the issue with the actual work item which the user executes from the inbox.  As I mentioned, the work item is locked as soon as the user executes it and is not released until they back out of the dialog or logoff.  So, here is what happens:  If the terminating event is sent before the lock is released the event is sent to the event queue.  If they then back out back to the in-box, its OK since I put some code in the SWO1 object type program (rememeber, its now synchronous) which will determine if they did the approval/rejection and the work item will complete and the event in the event queue will be deleted the next time the Event Queue Background job runs (it deletes any events for work items already in COMPLETED status). However, lets say they simply log off rather than backing up to the in-box or they don't do anything and are eventually logged off by timeout. In this case the code in the object type program to determine if the approval/rejection was done does not get executed (control does not return to the object type program) and the work item remains in "STARTED" status and remains in the users inbox and the event is in the event queue. So, now we have a work item that should be completed still sitting in the users in-box and the terminating event in the event queue. So the next time the user goes to their inbox the work item is still there.  The interesting thing is that though this may be confusing to the user, if they then attempt to execute the work item, they will get a message: "Work item currently being completed by event" (Message SWF_RUN 644) and the event sitting in the event queue gets redelivered and completes the work item.  To alleviate this problem I was thinking of adding a call to SAP_WAPI_WORKITEM_COMPLETE in the approval list screen after they do the approval but I'm guessing it wont work since it probably will try to enqueue the work item and it will still be locked. 
    Hopefully you haven't nodded off reading this rambling note...
    Thank you,
    Bob

  • Workflow is in process due to locking of work item

    Hi,
    I checked for one invoice document, workflow is in process. I saw it is stuck in one send mail step and analyse the workflow log, it is showing work item is locked against execution. I tried to execute the work item using SWIA, still it is not going to completed status still it is in ready status.
    Can anybody tell me how to complete this work item so that workflow will be completed?
    Best Regards,
    Padhy

    Hi,
    It's resolved.
    Thanks

  • Retain work item in user's inbox

    HI ,
    I have a DMS approval workflow in which we have a requirement for text dialog box/editor to enter the approver's comment.
    which is working fine but if i click on cancel or dont enter any values in the body of the dialog box/editor.in that case the work item is vanishing from user's inbox.
    it should remain in user's inbox unless and until u provide a proper comment in the editor.could you please guide me?
    Regards
    prsahu

    Hi prsahu,
    In the Task, there is a option called 'Confirm End Processing'. When the approver's close the work item, one pop up will come and ask the user to complete the work item.
    Try to make use of it.
    Thanks,
    Viji.

  • How to forward a work item from user inbox

    Hello,
    We are trying to find a way to remove work items from a users inbox. the workitem has not been opened
    and also it is possible that the work item is in more than 1 users inbox.
    we want to remove the work item from only the 1 user and leave the work item in the other user's inbox.
    Regards
    Gaurav Maini

    Hi ,
    U can see the workitem of the user by the table SWWUSERWI giving user id.
    select the workitem id.
    Go to the transcation SWIA.
    Forward the workitem to your inbox.
    This will not appear in user inbox anymore
    Regards
    Pranab

  • API to get Work Item and Attached Information

    Dearl all,
    Is there any API to get the work items assigned to specific users and their attached information during runtime?
    Thanks, Jerome

    HI Jerome,
    This code will help you: API FM is " 'SO_NEW_DOCUMENT_ATT_SEND_API1'
    DATA : w_name TYPE sos04-l_adr_name.
    SELECT-OPTIONS :
    Recipient address
      s_name FOR w_name DEFAULT sy-uname NO INTERVALS.
    START-OF-SELECTION.
    E-mail Abap report
      PERFORM f_send_mail.
    Form f_send_mail
    FORM f_send_mail.
    Data Declaration
      DATA:
        l_datum(10),
        ls_docdata    TYPE sodocchgi1,
        lt_objpack    TYPE TABLE OF sopcklsti1 WITH HEADER LINE,
        lt_objhead    TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_objtxt     TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_objbin     TYPE TABLE OF solisti1   WITH HEADER LINE,
        lt_reclist    TYPE TABLE OF somlreci1  WITH HEADER LINE,
        lt_listobject TYPE TABLE OF abaplist   WITH HEADER LINE,
        l_tab_lines TYPE i,
        l_att_type  LIKE soodk-objtp.
      WRITE sy-datum TO l_datum.
    List of Users According to Logon Date and Password Change
    NOTE: Create ALI/OTF Document in Spool
        MESSAGE ID 'ZWF' TYPE 'I' NUMBER '001'.
      SUBMIT ZMM_MIR_RPT_FOR_WORKFLOW VIA SELECTION-SCREEN WITH valid = 'X'
                      WITH notvalid = space
                      WITH unlocked = 'X'
                      WITH locked = space
                 EXPORTING LIST TO MEMORY AND RETURN.
                 IF sy-subrc = 0.
      ENDIF.
    MESSAGE ID 'ZWF' TYPE 'I' NUMBER '000'.
    Read list from memory into table
      CALL FUNCTION 'LIST_FROM_MEMORY'
        TABLES
          listobject = lt_listobject
        EXCEPTIONS
          not_found  = 1
          OTHERS     = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'LIST_FROM_MEMORY'.
      ENDIF.
    IF sy-subrc = 0.
      CALL FUNCTION 'WRITE_LIST'
        TABLES
          listobject = lt_listobject.
    ENDIF.
    IF sy-subrc = 0.
    endif.
    Because listobject is of size RAW(1000)
    and objbin is of size CHAR(255) we make this table copy
      CALL FUNCTION 'TABLE_COMPRESS'
        TABLES
          in             = lt_listobject
          out            = lt_objbin
        EXCEPTIONS
          compress_error = 1
          OTHERS         = 2.
      IF sy-subrc <> 0.
      Error in function module &1
        MESSAGE ID '61' TYPE 'E' NUMBER '731'
           WITH 'TABLE_COMPRESS'.
      ENDIF.
    NOTE: Creation of attachment is finished yet.
    For your report, the attachment should be placed into table
    objtxt for plain text or
    objbin for binary content.
    Now create the message and send the document.
    Create Message Body
    Title and Description
      ls_docdata-obj_name = 'Outstanding MIR'.
      CONCATENATE 'Outstanding MI-Report sent by' sy-uname l_datum                                     "#EC *
            INTO ls_docdata-obj_descr SEPARATED BY space.
    Main Text
      lt_objtxt = 'Outstanding MIR Report' &
                  'List of Outstanding Goods Receipts under inspection 103 movement'.                       "#EC *
      APPEND lt_objtxt.
    Write Packing List (Main)
      DESCRIBE TABLE lt_objtxt LINES l_tab_lines.
      READ TABLE lt_objtxt INDEX l_tab_lines.
      ls_docdata-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objtxt ).
      lt_objpack-transf_bin = 1. " If u want to CLEAR inbox evrytime
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = l_tab_lines.
      lt_objpack-doc_type = 'RAW'.
      APPEND lt_objpack.
    Create Message Attachment
    Write Packing List (Attachment)
      l_att_type = 'ALI'.
      DESCRIBE TABLE lt_objbin LINES l_tab_lines.
      READ TABLE lt_objbin INDEX l_tab_lines.
      lt_objpack-doc_size = ( l_tab_lines - 1 ) * 255 + STRLEN( lt_objbin ).
      lt_objpack-transf_bin = 'X'.
      lt_objpack-head_start = 1.
      lt_objpack-head_num = 0.
      lt_objpack-body_start = 1.
      lt_objpack-body_num = l_tab_lines.
      lt_objpack-doc_type = l_att_type.
      lt_objpack-obj_name = 'ATTACHMENT'.
      lt_objpack-obj_descr = 'Outstanding MIR'.                   "#EC *
      APPEND lt_objpack.
    Create receiver list
      LOOP AT s_name.
        lt_reclist-receiver = s_name-low.
        lt_reclist-rec_type = 'B'.
        APPEND lt_reclist.
      ENDLOOP.
    Send Message
      CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'
        EXPORTING
          document_data              = ls_docdata
          put_in_outbox              = ''
        TABLES
          packing_list               = lt_objpack
          object_header              = lt_objhead
          contents_bin               = lt_objbin
          contents_txt               = lt_objtxt
          receivers                  = lt_reclist
        EXCEPTIONS
          too_many_receivers         = 1
          document_not_sent          = 2
          document_type_not_exist    = 3
          operation_no_authorization = 4
          parameter_error            = 5
          x_error                    = 6
          enqueue_error              = 7
          OTHERS                     = 8.
      IF sy-subrc = 0.
      Document sent
        MESSAGE ID 'ZWF' TYPE 'S' NUMBER '002'.
      ELSE.
      Document <&> could not be sent
        MESSAGE ID 'SO' TYPE 'S' NUMBER '023'
           WITH ls_docdata-obj_name.
      ENDIF.
    ENDFORM.
    Thanks and Regards,
    Prabhakar Dharmala

  • How to stop workitem complete or how to keep work item in inbox based on conditions even if it completed

    Hi,
    my requirement is to call webdyn pro screen from workflow..
    i am calling webdynpro screen by using FM :CALL_BROWSER from workflow.
    when webdyn pro screen is called user will enter some values . if user closed webdyn pro screen with out entering any values we need show this workitem in his inbox. so that user can again open it and enter values in the webdyn pro screen.
    Please help how to stop work item complete based on conditions.
    Thanks,
    phani

    Hi,
    As per my understanding, this is not a proper approach toy call web dynpro using FM CALL_BROWSER. is the web dynpro screen being called when user clicks on the work item from portal UWL OR from SAP SBWP ?
    if you are calling web dynpro screen from portal UWL when user clicks on work item link, better you achieve it using SWFVISU tcode. in SWFVISU tcode you can maintain which web dynpro. application to call when particualr work item task come in user's inbox. in your web dynpro code, then you can write your buisiness logic when user clicks for example SUBMIT/SAVE button. on action submit/save button you can use FM SAP_WAPI_WORKITEM_COMPLETE to complete the worktiem once the user clicks on final submit/save button. in this way the workitem will get removed from user inbox only upon clicking on submit/save button.
    You can refer below link for web dynpro for workitem:
    http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/70648e99-4cc1-2c10-879d-9c61003c69d6?QuickLink=index&…

  • Transaltion in work item title not working consistently

    Hi,
    I am seeing a strange behaviour in SAP business workfplace with respect to the work item title (subject line) translation........................
    - Some prelimenary info : All work item translations for title (subject) and work item body are completly maintained
    - System : SAP ECC 6.0
    Problem being faced
    1. Workflow is trigerred by an user with English login and this generates a work item to the another users
    2. The work item receipent logs in in different langiage say german...................he then starts SBPW to check this work item
    3. The title of the work item appears in english while the same title which appears in the work item body also is shown in German (User log on language)..................
    4. The user displays (not execute) the work item........................The work item title is shown in in German.
    5. The user returns to the inbox and then the work item title changes to German language.........................
    Has any one encountered this problem.......................I looked for SAP notes but could not find any note suitable for this..........................
    I assume it is more a SBWP bug but want to gather some experience from this group
    Thanks
    Kiran

    Hi,
    This may happen due to the problem in language translation. Please maintain the language translation properly then test it agian.
    Pleae check the table HRS1206 where OTYPE = 'TS' and OBJID= 99000031 ( task number ) whether the multiple language translation is maintained or not. If not thenyou need to maintain through transaction SE63.
    Please visit below link for more details.
    http://wiki.sdn.sap.com/wiki/display/ABAP/TranslatingTaskDescriptionusingSE63
    Thanks and regards,
    SNJY

Maybe you are looking for