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

Similar Messages

  • How to set status for work items

    Hello Friend's,
    As per my client current  scenario  every work item will be sent to 3 useru2019s .If any one  of the  user click on work item  it will automatically call a  Ztransaction  for further action. Here if the user has viewed  the item and  back to sap inbox by clicking the back push button(in Ztransaction)  without any modification or taking the any action(SAVE)  then the rest of other user (2 users ) work items  are disappearing from  other user SAP inbox.
    But my client required that  whenever  the user click on back button it should be READY status to  all  the users  and it should not disappear  from other user SAP inbox.    
    Please provide me any advice to the above requirement.

    Hello Ranga,
    that requirement is solved here: Automatic put back workitem after execution
    But as it's quite an old one, it's hard to find here by the Forum's search option.
    A more advance way could also make use of the work item exits.
    Best wishes,
    Florin

  • Error handling for work item

    Dear All,
         When I trigger my workflow from SWUE,the workflow containers must be populated with agent name.But it is populated only with 'US'.Please suggest.
         On the other hand, when I trigger my workflow from ME21N,the workflow goes into error.The error statement is "Exception occurred - Error handling for work item 000000954797".What is the problem?
        Please suggest the solution for which I will be grateful.
    Thanks and regards,
    S.Suresh

    Dear ,
    I use bus2012 as BOR and event as created.
    When I create purchase order from ME21N,bus2012 is not triggering.Instead FREBUS2012 gets triggered which is a subtype of bus2012.
    At SWETYPV,event linkage is activated only for BUS2012 and there is no entry at SWETYPV for FREBUS2012.
    Though I configured the workflow with start events:BUS2012->created,why FREBUS2012 should trigger my workflow which is not seen in SWETYPV?How to override it?Please suggest.
    There is no start conditions for my workflow.Whenever purchase order is created,this workflow should trigger.
    So,the parameters passed between even to workflow are 
    &_EVT_OBJECT&    ->        &BUS2012&
    &_EVT_CREATOR&   ->     & WFINITIATOR&
    Thanks and regards,
    S.Suresh

  • How to deactivate *Schedule Background Job for Work Items with Errors* SWU3

    Hello Guys,
    Can any one tell me how do I DEACTIVATE Schedule Background Job for Work Items with Errors in sap workflow SWU3.
    Currently it is green which I don't want. I want to stop this service.
    Regards
    NK

    Hello,
    You could also just stop the job in tx SM37.
    But why would you want to do this? As a test?
    regards
    Rick Bakker
    hanabi technology

  • Repeats for work items with temporary errors for background WI

    Hi!
    I have a task that generates a temporary error method in order to activate the Repeats for work items with temporary errors. It currently has 5 repeats at intervals of 2 min. After running above the WI-status is 'Error'. When Restart by SWPR runs only once and sends the message 'Work item set to error following 05 failed attempts'.
    Please can tell me any way that when run again relaunch fixed repetitions.
    I welcome your comments.
    Thanks.
    Regards,
    Raisme Wilhelm

    Hi Raisme,
    Please show me since it is the design of the workflow. It is probable that you are inside a repetitive sequence that send several work items.
    Best Regards
    Victor Enzo
    Edited by: Victor Enzo Montenegro on Feb 23, 2011 3:34 PM

  • Master Table for Work Items from BSP Application

    hello guys,
    just want to ask if there is a master table for work items (and other details) from BSP application?

    Hi,
          Ya its true but i want to connect my customized application to UWL in Enterprise Portal and there after approval i want my workitems to be punched in R/3 system.Is there any source code available,so that my application directly contact UWL in sap enterprise Portal as a link or workitems where user should have an option to approve or reject.
    If u have any idea plz let me know.
    Thanks in Advance
    Regards
    Santosh Saraf

  • UWL - direct URL needed for work items

    We have NetWeaver Portal EP7 and use the UWL for work items from the ECC6 backend system. The work items appear as expected and users can process them correctly.
    I now have a requirement for a direct portal URL for each work item that appears in the UWL so that it can be accessed directly instead of via the UWL. However, I'm struggling in my attempts to find or construct such a URL.
    I would appreciate any help to resolve this.
    Trevor

    Hi,
    Why do you need this URL? If you want the recipient to be able to display a work item from within an e-mail, this can help you : [Executing or Displaying Work Items from Within a Message|http://help.sap.com/saphelp_nw70/helpdata/en/c7/009f405660f418e10000000a1550b0/frameset.htm].
    Regards,
    Pierre

  • Show detailed screen for "WORK ITEMS"

    Hi
    We have configured POWL for showing Leave / Travel request. The requirement is ... we have to show detailed screen of respective item which are displaying under "Work Items", it's a combination of Leave / Travel etc.
    How do I show complete detail screen of selected item which are displaying under "Work Items "???
    Thanks

    Powl has multiples queries ie leave request and Timesheet you can all filter to see all tasks in one screen ALl the queries in the initial screen comes form POWL_COCKPIT

  • UWL: enabling the web GUI for html for work items

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

    Hi,
        We have configured UWL in portal. All the backend work items are appearing in the UWL iView in portal.
    But when we click on some of the work items SAP GUI opens instead of web GUI for html.
    Does any one have information what needs to be configured in UWL configuration xml file so as to enable the web GUI for html for rest of the work items?
    Regards
    Sk

  • Error in WEB IC FOR WORK ITEM "Choose an assignment reason"

    We are getting an error in WEB IC where user is trying to resubmit the work item by giving the resubmission date, re submission reason , Status, and sub status
    but when users are trying to save  it they are getting an error i.e. "Choose an assignment reason" and they are not able to complete the process
    I know there is config for maintaining "Define Reasons for Assignment of Work Items" in SPRO under work items, but this config is not applicable since we are not assigning work item to a new unit and/or a new collection specialist, or removing any assignment.  we are just re submitting the work items
    Any help on this will be highly appreciated.

    Hi,
    Just a thought - on a couple of my previous projects we had some custom CRM Fron-end validation between Work Item Sub Status and either re-assignment reason and/or Closing result code.
    Perhaps check with your Development support team to ensure no such cross-validation exists upon saving.
    Regards,
    Ivor Martin

  • Alignment of body for work item via SWNCONFIG

    Hi All,
    As per my present client scenario, every work item will be sent to UWL and external mail also. It means, user wants to execute the work item from external mail (Gmail or outlook)through SWNCONFIG transaction. Here my issue is as follows.
    I am getting the below issue when work item goes to external mail.
    Body sequence is out of alignment as you can see it in Red color below(You can observe the placement of the symbol u2018:u2019 is out of alignment).
    Actual Output Required:
    Item #                         : &MATNR&
    Description                    : &WA_MARA.MAKTX&
    Item type                      : &WA_MARA.ITEMTYPE&
    Project ID                     : &WA_MARA.LPID&
    Product Group                  : &WA_MARA.PRODUCTGRP&
    Purchase / Manufacture value   : &WA_MARA.PUR_MAN_VALUE&
    PDM Status                     : &WA_MARA.PDMSTATUS&
    Life Cycle Status              : &WA_MARA.LCSTATUS&
    Task sent by                   : &WA_MARA.ZUSER&
    Actual Output Obtained At Present:
    Item # : 1111
    Description : PDM Data
    Item type : PHysical Item
    Project ID : Local Project ID
    Product Group : Product Group
    Purchase / Manufacture value : P
    PDM Status : PDM Status
    Life Cycle Status : Life cycle
    Task sent by :
    Please let me know the solution for this asap.I would really appreciate you for your help in this.
    Thanks in advance..

    Hi!
    You can try playing around with mail formats in SWNCONFIG, provided work item text is formatted using tabs, however I do not think that will help. You should format task description using SAPscript formatting symbols - SWN_SELSEN should convert it to correct output format.
    Or you can create work item description in HTML - that should keep formatting everywhere. Use tab "Work item display" in your WF step, there is a demo f-n module SWL0_PREVIEW_DEMO_HTML that can be used as example.
    WBR -
    Pauls

  • Table for Work Item

    Hi Experts,
    I am searching for tables that would give me work items that are un processed. Then find the responsible person who has to take action on that un processed work item.
    Thanks in advance.

    If I understood you correctly toposmotrite table REPOSRC
    but generally one most likely not be enough so that the search here 
    D010S    
    DD03L    
    FUPARAREF
    D010T    
    D020SINF 
    D021S    
    D022S    
    D023S    
    DD05S    
    D010INC  
    DD08L    
    DD08T    
    D010SINF 
    DD12L    
    DD12T    
    DD16S    
    DD17S    
    DD20T    
    DD21S    
    DD23L    
    DD23T    
    DD24S    
    DD25T    
    DD29T    
    D010TAB  
    D010TINF 
    D020S    
    D020T    
    D021T    
    D301T    
    D345T    
    D347T    
    DBDIFF   
    DBMAPS   
    DD01L    
    DD01T    
    DD02L    
    DD02T    
    DD03T    
    DD04L    
    DD04T    
    DD06L    
    DD06T    
    DD07L    
    DD07T    
    DD09L    
    DD20L    
    DD25L    
    DD26S    
    DD27S    
    DD28S    
    DD29L    
    DD30L    
    DD30T    
    DD31S    
    DD32S    
    DD33S    
    DD35L    
    DD36S    
    DD40L    
    DD40T    
    DD42S    
    DDTYPES  
    DDTYPET  
    DDXTF    
    DDXTT    
    DF03L    
    DF03T    
    DF04L    
    DF04T    
    DF06L    
    DF06T    
    DF07L    
    DF07T    
    DF08L    
    DF08T    
    DF10L    
    DF10T    
    DF11L    
    DF11T    
    DF12L    
    DF12T    
    DF13L    
    DF13T    
    DF14L    
    DF14T    
    DF15L    
    DF15T    
    DF16L    
    DF16T    
    DF30S    
    DF34S    
    DF40D    
    DF41S    
    DF42S    
    DF43S    
    DIAPAR   
    DM02L    
    DM02S    
    DM02T    
    DM03S    
    DM25L    
    DM26L    
    DM40L    
    DM40T    
    DM41S    
    DM42S    
    DM42T    
    DM43T    
    DM45L    
    DM45T    
    DM46S    
    DOKHL    
    DOKIL    
    DSYST    
    ENLFDIR  
    EUDB     
    EUGUITEXT
    EUOBJ    
    EUOBJEDIT
    EUOBJT   
    FUNCT    
    IADB2    
    IADB6    
    IAINF    
    IAMSS    
    IAORA    
    IASYB    
    IGDB2    
    IGORA    
    LDBA     
    LDBB     
    LDBD     
    LDBH     
    LDBN     
    LDBNT    
    LDBQUAN  
    LDBT     
    MACID    
    MACOB    
    MCUSREXITS
    NOTRA    
    RODIR    
    RSMPTEXTS
    SEOCLASS 
    SEOCLASSDF
    SEOCLASSEX
    SEOCLASSTX
    SEOCOMPO 
    SEOCOMPODF
    SEOCOMPOEX
    SEOCOMPOTX
    SEOFRIENDS
    SEOIMPLREL
    SEOMAPATT
    SEOMAPCLS
    SEOMETAREL
    SEOREDEF 
    SEOSUBCO 
    SEOSUBCODF
    SEOSUBCOTX
    SEOTYPEPLS
    T100     
    T100A    
    T100O    
    T100T    
    T100U    
    T100X    
    T512CLU  
    TCDCOUPLES
    TDCT     
    TERCL    
    TERCL2   
    TERCL3   
    TERM     
    TERM2    
    TERM3    
    TERM4    
    TERM6    
    TERM7    
    TFDIR    
    TFM18X   
    TFTIT    
    TGDB2    
    TGINF    
    TGORA    
    TITLE    
    TLDB     
    TLDBT    
    TLIBG    
    TLIBT    
    TMDIR    
    TPARA    
    TPARAT   
    TRBAT    
    TRDIRT   
    TRESC    
    TRMSG    
    TSDB6    
    TSINF    
    TSORA    
    TSPDD    
    TSTC     
    TSTCA    
    TSTCC    
    TSTCP    
    TSTCT    
    TSTC_SM  
    TSTC_SRT 
    TTREE    
    TTREEI   
    TTREEN   
    TTREEP   
    TTREET   
    TTREE_APPL
    TTREE_FLNK
    USOBT    
    WBACTIONS
    WBACTIONST
    WBEXTTYPES
    WBOBJTYPES
    WBOBJTYPT
    WBREGISTRY
    WBTOOLTYPE
    DOKCLU
    Edited by: DAV_999 on Oct 15, 2009 1:25 PM
    Edited by: DAV_999 on Oct 15, 2009 1:26 PM
    Edited by: DAV_999 on Oct 15, 2009 1:27 PM

  • SAP workflow logs for work item forwarding.

    Hi All,
    I just forwarded the workitem today to around 25 users. But I dont know where does this reflect in the logs. My workflow is waiting for approval in managers inbox.
    And the workflow logs says ready state. And no where that I can see the list of 30 users that I have forwarded it to !
    Thanks,
    AC.

    Hi,
    I just forwarded the workitem today to around 25 users. But I dont know where does this reflect in the logs. My workflow is waiting for approval in managers inbox.
    You can only forward the dialog workitem. Now go to workflow log. Clicks on agent button you will find the current agent to whom the workitme is belongs. After forwarding refresh your managers SBWP, workitem will not be there.
    Thanks and regards,
    SNJY

  • Change in Work item Text for Approval Workflow WS14000133

    Hi,
    I need to change the work item text for Shopping Cart Approval Workflow WS14000133.
    I have created an Attribute in Business Object BUS2121 and called the same attribute in work item text.
    In PFTC -> Redefine Work item text - > and i have defined the work item text as well called the attribute from the container.
    what  the problem over here is - when I am passing the attribute in the work item text in the task, I am unable to see the work item text with the Dynamic Attribute but I am able to see the work item alone (not with the Dynamic attribut)
    But when i debug the workflow from SWI1 then i can see the dynamic attribute in the Container of the workflow but nt in the approver's inbox in portal..
    Can you please tell me - that why is this a strange behaviour that i can see the Dynamic attributed created initially in the workflow container of the Business Object but nt in the Approvers inbox either in Backend nor in the front end...
    Thanks,

    Hi,
    Maybe this SAP note/KBA will help :
    1470761 - How to change the text of the SRM approval links in inbox or UWL
    Kind regards,
    Siobhan

  • Delete work items

    Hi All,
    I need to delete/archive work item from SAP Inbox for a particular task upto a specific date only.
    How can I do this.
    Regards,
    Neerja

    Hi,
    Delete in test system using RSWWWIDE and RSWWHIDE reports.
    Reports RSWWWIDE and RSWWHIDE are intended for internal use only. The work items are deleted from the database without further query or an authorization check. They can be started from the workflow development environment using the administration menu.
    In a production system, you must archive the work items before you delete them (transaction SARA), with the object 'WORKITEM'.
    Regards,
    Lim...

Maybe you are looking for