Temporary errors automatically deletes the work item.

Hi,
I have a background workflow task which calls a ABAP class & method. The method raises the temporary exception, cx_bo_action_cancelled when an error occurs. However, when the workflow catches this exception, the corresponding work item (belonging to this task) is marked "logically deleted" and the workflow completes without error. May I know what is wrong, how do I trap this temporary error/exception and not let the workflow completes with the errornous workitem automatically deleted ? Thank you.
Regards
Kir Chern

Hi
I think because you are capturing the error has exception so its logically deleting. In the task were you are using this method activate other branch ie another outcome. So when ever this error occurs you divert the path in other branch of the task and build your logic.
Regards
vijay

Similar Messages

  • How to secure the users from deleting the work items

    Hi all,
    I have a question like this.........whether we could secure the users from deleting the work items by someone in the Project and also assigning a specific user to allow them to delete the idoc. 
    Please help me on this as this is critical.........
    Thanks in advance
    Chakri

    One of t he possible way is, ask the basis team to create users as Service Users and you can determine whether the login user is whether a service or dialog user  by using the a bapi BAPI_USER_GET_DETAIL under the exporting parameter logondata with field USRTYP where if the logged in user is Service user then this field will be populated as S if the user is a dialog user then it will be populated as A.
    Now in more efficient way of fixing this is get the list of users for whom you donot want to give the authorization of deleting workitems and assign the appropriate role for all the listed users...
    for roles and authorizations i hope the basis team is the right team to consult....

  • Workflow loop, return the work item to the inbox, instead of automatically executing the work item

    Hello all,
    Within a workflow I have a loop. Inside that a foreground step is executed. Then a condition step is executed to decide if the workflow should continue, stop, or return the work item to the inbox.
    This new workflow was modeled after an existing workflow that is doing just that. Unfortunately, this new workflow is not returning the work item to the inbox. Instead, it just keeps displaying the screen that is called by the function module that is called by the business object method that is executed when the foreground task runs.
    I've included a Word document with further detail in a number of screen prints. Hopefully this is something that will experience workflow developer may have seen before and know how to correct.
    Unfortunately I have done very little workflow development and don't have a clue what might be causing this problem.
    Any help would be greatly appreciated.
    Bruce
    I could not attach a Word file, so I added 3 jpg files.  I would have added another 3, but it seems that posts are limited to 3 files.

    Hi Bruce,
    As per your design, If you are approving or returning, the workflow loops back to the step "Approver - stat key approve".
    Suppose you are one of the approver for this step ""Approver - stat key approve" and if you click on approve or return, then it will try to create a new workitem for "Approver - stat key approve" step.
    As you are one of the approver again, the window opens immediately instead of reaching the inbox of all other approvers.
    Include a dummy activity step in the "approve & return" condition outcome.
    Active the workflow & refresh the buffer SWU_OBUF.
    After this, when you click on return it will not open the same screen again. Instead it will be reaching all the approvers' SAP inbox.
    Thanks,
    Karthikeyan

  • Error: You are not a receiver of the work item in Leave Request Deletion

    Hi All,
    We are using customized leave request workflow which is the copy of standard leave request workflow.
    All tasks are assigned as general tasks and assigned in SWFVISU.
    But the employees are unable to delete the leave request with Sent status.
    Scenario:
    Employee applies leave.
    Now when the employee tries to delete / cancel the leave request before approval (Status is SENT), the employee is getting the error
    "You are not a receiver of the work item".
    This issue is happening for only the leaves which are in "SENT" status and though the employee is able to delete the "REJECTED" leave requests. The employee is also able to change / modify the leave requests without an issue.
    We are on EHP 7 with SP level 22 and running this on Portal 740.
    I have gone through the threads related to this issue but did not get any success.
    Please let me know if I am missing something that can resolve the issue .
    Regards,
    Anurag

    Hi Sid,
    As I mentioned above, we are on EHP 7 with SP 22 and hence the above note 1066288 does not apply in our case.
    Moreover, we're using WDA based application and the above note seems to be the one for XSS based on WDJ.
    Regards,
    Anurag

  • Error: "The workflow could not delete the list item"

    Have set up 2 lists:  Events and EventsArchive.  They have all the same fields.  I have created a workflow in SPD using an impersonation step (I have Full control of the site/site collection).  Workflow is essentially this:
        If Curent Item:Expired 
    equals
    Yes
           Copy item in Current Item to
    EventsArchive
           then Delete item in
    Current Item.
    The item is copying over to the EventsArchive list just fine, but the "delete" part is not happening.  Instead, I get the following error:
    The workflow could not delete the list item. Make sure the list exists and the user has permissions to delete items in the list.
    The list obviously exists (or I wouldn't be able to copy an item from it), and I have as much permissions as anyone can have, so I'm not sure where else to turn with this. 
    Thanks in advance for your help!

    Hi,
    To test the issue, I create a simple workflow without using Impersonation step:
    It works.
    Could you please create new lists to avoid custom settings and test the issue again?
    Similar thread:
    https://social.msdn.microsoft.com/Forums/office/en-US/3fa94026-4487-4e4c-a5b4-12a79d6ee6a2/workflow-delete-item-not-working?forum=sharepointcustomizationprevious
    Regards,  
    Rebecca Tu
    TechNet Community Support
    Please remember to mark the replies as answers if they help, and unmark the answers if they provide no help. If you have feedback for TechNet Support, contact
    [email protected]

  • Please Help me with the Work Item agent to agent forwarding error

    hi folks ,
    This is the error I am getting when I am trying to forward the work item from agent to agent.
    "Work item 000000017188: Method SAP_WAPI_FORWARD_WORKITEM not allowed for type F "
    Please Help in this regards. its Urgent.
    thanks in advance for your help
    Krishna Chaitanya

    The F type Workitem cannot be forwarded because it represents Workflow (Also Subworkflow) workitem Id.
    You have to find out with workitem which has status W(Dialog Work Item; Represents a Single-Step Task) from SWWWIHEAD table and status should be in process and the TOP_WI_ID should be the value that you are trying to forward.
    Thanks
    Arghadip

  • Error in the Work item

    Dear All,
                 I am getting the manager is trying to see the work item. he is getting this error.
    "Message number cannot be read from workflow container". What may be the problem for this. how to resolve this issue.
    Message number cannot be read from workflow container
    com.sap.pcuigp.xssfpm.java.FPMRuntimeException: Message number cannot be read from workflow container.
         at com.sap.pcuigp.xssfpm.java.MessageManager.raiseException(MessageManager.java:111)
         at com.sap.pcui_gp.isr.isrprocessevent.FcISRProcessEvent.raiseWorkflowExceptions(FcISRProcessEvent.java:2064)
         at com.sap.pcui_gp.isr.isrprocessevent.FcISRProcessEvent.callRFCIsrApprovalPreparation(FcISRProcessEvent.java:938)
         at com.sap.pcui_gp.isr.isrprocessevent.FcISRProcessEvent.prepareApprovalWorkflow(FcISRProcessEvent.java:395)
         at com.sap.pcui_gp.isr.isrprocessevent.wdp.InternalFcISRProcessEvent.prepareApprovalWorkflow(InternalFcISRProcessEvent.java:1238)
         at com.sap.pcui_gp.isr.isrprocessevent.FcISRProcessEventInterface.prepareApprovalWorkflow(FcISRProcessEventInterface.java:197)
         at com.sap.pcui_gp.isr.isrprocessevent.wdp.InternalFcISRProcessEventInterface.prepareApprovalWorkflow(InternalFcISRProcessEventInterface.java:433)
         at com.sap.pcui_gp.isr.isrprocessevent.wdp.InternalFcISRProcessEventInterface$External.prepareApprovalWorkflow(InternalFcISRProcessEventInterface.java:601)
         at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInit.getWorkflowIdAndSetData(VcISRInit.java:277)
         at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInit.onBeforeOutput(VcISRInit.java:217)
         at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInit.onBeforeOutput(InternalVcISRInit.java:181)
         at com.sap.pcui_gp.isr.isrprocessevent.init.VcISRInitInterface.onBeforeOutput(VcISRInitInterface.java:139)
         at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface.onBeforeOutput(InternalVcISRInitInterface.java:136)
         at com.sap.pcui_gp.isr.isrprocessevent.init.wdp.InternalVcISRInitInterface$External.onBeforeOutput(InternalVcISRInitInterface.java:212)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.callOnBeforeOutput(FPMComponent.java:603)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doProcessEvent(FPMComponent.java:569)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.doEventLoop(FPMComponent.java:438)
         at com.sap.pcuigp.xssfpm.wd.FPMComponent.wdDoInit(FPMComponent.java:196)
         at com.sap.pcuigp.xssfpm.wd.wdp.InternalFPMComponent.wdDoInit(InternalFPMComponent.java:110)
         at com.sap.tc.webdynpro.progmodel.generation.DelegatingComponent.doInit(DelegatingComponent.java:108)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.initController(Controller.java:215)
         at com.sap.tc.webdynpro.progmodel.controller.Controller.init(Controller.java:200)
         at com.sap.tc.webdynpro.clientserver.cal.ClientComponent.init(ClientComponent.java:430)
         at com.sap.tc.webdynpro.clientserver.cal.ClientApplication.init(ClientApplication.java:362)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.initApplication(ApplicationSession.java:748)
         at com.sap.tc.webdynpro.clientserver.session.ApplicationSession.doProcessing(ApplicationSession.java:283)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessingPortal(ClientSession.java:733)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doApplicationProcessing(ClientSession.java:668)
         at com.sap.tc.webdynpro.clientserver.session.ClientSession.doProcessing(ClientSession.java:250)
         at com.sap.tc.webdynpro.clientserver.session.RequestManager.doProcessing(RequestManager.java:149)
         at com.sap.tc.webdynpro.clientserver.session.core.ApplicationHandle.doProcessing(ApplicationHandle.java:73)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.sendDataAndProcessActionInternal(AbstractApplicationProxy.java:860)
         at com.sap.tc.webdynpro.portal.pb.impl.AbstractApplicationProxy.create(AbstractApplicationProxy.java:220)
         at com.sap.portal.pb.PageBuilder.updateApplications(PageBuilder.java:1246)
         at com.sap.portal.pb.PageBuilder.createPage(PageBuilder.java:354)
    Thanks
    Ram

    This seems to be a portal issue. Please check in the Portal related forum.
    Thanks
    Arghadip

  • Error: You are not a receiver of the work item in Leave Request Approval

    Hi all,
    I have copied the standard leave request workflow and done the customization as per my requirement.
    Agent assignment for all the tasks are General Tasks.
    We are facing below error when we are trying to approve the leave request from MSS UWL.
    "You are not a receiver of the work item.".
    This started happening after implementing the note 1501377 which is for clearing the approved leave request
    workitems from UWL .
    i have gone through the threads related to this issue and tried given solution but no success  .
    Please let me know if anything else is missing since its happening after implementing the note.
    Thanks,
    Santosh

    Able to resolve the issue :-).
    i was using Fork since my workflow is a two level process.
    so the workflow was travelling to both branches one was in ready state another was in waiting state(48hours deadline)
    having different agents.
    i debugged the 1501377 note code when leave is approved it is looking  at last workitem  of the request which is waiting state workitem in my case and I was trying to approve the leave from user who is in ready state. then it throws the error.
    So i have changed the design of workflow. i have done below things for two level process.
    i will have requested end for approval task with outcome in that branch i kept second level approver. My questions
    1) i am planning to do write below code to post the entries into infotypes after approval by managers. is it ok or any suggestions?
       CALL METHOD cl_pt_arq_processor=>post
          EXPORTING
            im_request =
          RECEIVING
            ret_value  = retrun
    2) how to complete the WF if the 1st manager misses the deadline and WF goes to second manager?
    Please let me know.
    Thanks,
    Santosh

  • You are not a receiver of the work item in ESS Leave

    Hi,
    We are using standard ESS leave application in our portal, where employee can raise leave and his manager can approve/reject his leave. But I want in case manager rejects the leave, the rejected leave should not come into MSS UWL of employee, we will send a mail to employee and he can again login to ESS leave application and where he will see the rejected leave and he can re apply/change/delete  the rejected leave. We do not want rejected leave to come in UWL of employee as a work item.
    As of now when manager rejects the leave rejected leave of an employee , it is coming in UWL of the employee which we do not want, so what we did, we went to standard leave work flow template WS12300111, in that we double clicked on Task (TS12300116, Process Request by Employee) and in that  we clicked on agent assignment icon and than we clicked on attribute and we selected General forwarding not allowed radio button, by default general task radio button was selected.
    After selecting General forwarding not allowed radio button, even when manager rejects employee leave, rejected leave is not coming in UWL of employee which we want exactly, but another error is coming when employee goes to ESS leave application again and change or delete this rejected leave he is getting the error You are not a receiver of the work item .
    But if we select general task radio button in agent assignment in work flow , than eveything is working fine but employee is getting rejected leave in his UWL, that we do not want  at all, so why after selecting different radio button this error is coming ?
    Why employee is getting this error, why employee can not reapply/change his rejected leave. Is this portal error OR workflow error OR HR configuration error and  what is the solution for this..

    If you need this option then you need to change the WF Task.
    General Forwarding Not Allowed
    This indicator enables you to determine that work items for this task can only be forwarded to users who are agents for the task.
    If this indicator is not set, a work item for this task can be forwarded to all users.
    The best way to take care of User
    Forwaring authorization is the Task Classification (PFTC -> Additional
    Data -> Classification). Classify tasks with General Forwarding Not
    allowed, will give you the oppotunity to let the user allow to forward
    items JUST to the Possible Agents Assigned to the task
    (Additional Data -> Agent Assingment -> Maintain)...
    Clear that everything depends on How you have developed your workflows
    definitions. In that cases  the best think to do is
    create Different Tasks definition (TSxxxxxx) and let they start
    depending on Company Code (That can be driven via Conditions steps in
    the workjflow definition, for example). This will allow you to define
    Just the responsible Agents per each task, depending on the Companny
    Code. This definitively Resolve the Forwarding frelated Question.

  • How to delete the downloading items in itunes?

    how to delete the downloading items in itunes?

    Unfortunately, this doesn't work. If you let them download and delete them, they just download again at some point in the future. I've been trying to figure this one out myself, but so far, every time I remove something, it comes back "later".
    Steve

  • 500 internal server erro while opening the work item

    Hi
    In my report manager 's UWL to approve the expense of his employee while clicking on the workitem he is facing the error
    5oo internal server error .Failed to process request .Please contact your system administrator.
    Root cause :
    The initial exception that caused the request to fail, was:
       com.sap.tc.webdynpro.services.exceptions.WDRuntimeException: pdfSource of InteractiveForm UI element should be populated with pdf binary content in USE_PDF mode
    Could any one help me out to solve this issue.
    Note: This is not the first time the report manager approving earlier whenever he clicked on  the work item he is able to find the dispaly of the form .But for the last two days this is not displaying any form instead it is showing the error. This is happening to every user.
    When i tested in development server it is working fine now.
    When i asked the basis gusy if they made any modifications according to them they have not done nay modificaions.
    Thanks in advance.

    Hi
    where do we chek whether ADS is configured proeprly or not .If it is visual admin can u please let us know what to check because when i asked our basis team they said it is working fine .
    I woul like to cross verify it . Can u please let me know the path .
    Thank you very  much

  • Warning messages "You are not a receiver of the work item"...

    Hi Experts,
    We are facing an issue in which couple of users are getting warning messages "You are not a receiver of the work item" in there Portal Inbox. But they are not getting any warning message while accessing the same from R/3 inbox. We tried replicating the issue but it is working fine for us. Is it related to workitems which are of any particular type??? Kindly suggest.....
    Just to add some more thing we have gone through the Forum : UWL workitem error: you are not a receiver of the work item and also the OSS notes: 1133821, but we do not get any appropriate solution.
    Please suggest.
    Appreciate your quick response.
    Thanks,
    Harish
    Edited by: harish vyas on May 3, 2010 1:24 PM

    Hi Enrique,
    Yes users are using SSO.
    As suggested I have checked in transaction SU53 and there is no error message for the user i.e. we are getting success message as  "The last authorization check was successful".
    Please suggest what can I try.
    Also adding to this, Warning message which users are getting is not a show stopper i.e. they are able to process workitems successfully.
    Thanks,
    Harish

  • The work item not coming in SAP inbox ....

    Hi experts,
    I am doing PR realese workflow.It is moved to quality server from development. In quality it is activated and showing no error.When a PR is created  mail is send to approver and the workflow is waiting for his approval. But the work item is not available in his SAP inbox. Even he is getting the remainder mails.But the work item is not available in his business workplace(SBWP).I cross checked user ids of approvers. But still its not working ....the mails are sent to approvers external mail ID.....
    Is there any configurations to make for making the SBWP active ?????
    Pls anyone give me a solution for  this problem...
    Thanks & regards,
    Jayaraj

    Hello,
    The best solution would be to take your mouse, move your cusror to the top part of your screen, and click on the "Before you ask (here are many workflow answers)" thread. If you've tried everything that is proposed there then please reply to this thread explaing what you have tried.
    Cheers,
    P.

  • Error while deleting contract line item

    Hi All,
    In ME32K when I try to delete the line item of the contract it goes to runtime error. Pls help me why I get that error.
    It has 3 PO`s created in 2010.

    Error analysis
    A RAISE statement in the program "CL_HANDLE_MANAGER_MM==========CP" raised the
    exception
    condition "FAILURE".
    Since the exception was not intercepted by a superior program
    in the hierarchy, processing was terminated.
    Short description of exception condition:
    For detailed documentation of the exception condition, use
    Transaction SE37 (Function Library). You can take the called
    function module from the display of active calls.
    How to correct the error
    You may able to find an interim solution to the problem
    in the SAP note system. If you have access to the note system yourself,
    use the following search criteria:
    "RAISE_EXCEPTION" C
    "CL_HANDLE_MANAGER_MM==========CP" or "CL_HANDLE_MANAGER_MM==========CM005"
    "GET"

  • Validation Error when updating Feature work item to completed state?

    We are on the latest version of TFS 2013 and have customized process templates based off of the Scrum template.
    We have a custom workflow for the Feature work item type. I get an error when trying to update the state to custom done state of "Prod Deployment Successful". The error I receive is below:
    TF237165: Team Foundation could not update the work item because of a validation error on the server etc etc.
    I have TFS Admin rights as well as project and project collection Admin rights.
    Custom States:
    Planned
    Canceled
    On Hold
    In Progress
    Ready For QA
    QA Deployment Failed
    QA Deployment Successful
    Ready For Stage
    Stage Deployment Failed
    Stage Deployment Successful
    Ready For Prod
    Prod Deployment Failed
    Prod Deployment Successful
    Custom Workflow:
    "  "  TO    Planned
    Planned  TO  Canceled
    Planned  TO  On Hold
    Planned   TO  In Progress
    In Progress TO   On Hold
    In Progress TO   Ready For QA
    On Hold  TO  In Progress
    Ready For QA  TO  QA Deployment Failed
    Ready For QA  TO  QA Deployment Successful
    QA Deployment Failed  TO  Ready For QA
    QA Deployment Failed TO   In Progress
    QA Deployment Successful TO   Ready For Stage
    QA Deployment Successful  TO  Ready For Prod
    Ready For Stage TO   Stage Deployment Failed
    Ready For Stage  TO  Stage Deployment Successful
    Stage Deployment Failed TO   Ready For Stage
    Stage Deployment Failed TO   In Progress
    Stage Deployment Successful  TO  Ready For Prod
    Ready For Prod  TO  Prod Deployment Failed
    Ready For Prod  TO  Prod Deployment Successful
    Prod Deployment Failed  TO  Ready For Prod
    Prod Deployment Failed  TO  In Progress
    I have also updated the Process Configuration file to map the states to the meta states so I can show the custom states on the Feature board. The section in the process configuration file that relates to Feature is below:
    <States>
            <State type="Proposed" value="Planned" />
            <State type="InProgress" value="Canceled" />
            <State type="InProgress" value="On Hold" />
            <State type="InProgress" value="In Progress" />
            <State type="InProgress" value="Ready For QA" />
            <State type="InProgress" value="QA Deployment Failed" />
            <State type="InProgress" value="QA Deployment Successful" />
            <State type="InProgress" value="Ready For Stage" />
            <State type="InProgress" value="Stage Deployment Failed" />
            <State type="InProgress" value="Stage Deployment Successful" />
            <State type="InProgress" value="Ready For Prod" />
            <State type="InProgress" value="Prod Deployment Failed" />
            <State type="Complete" value="Prod Deployment Successful" />
          </States>
    The error ONLY happens when I try to update a Feature state to "Prod Deployment Successful". I have looked at other posts and searched the internet and have found no help for my exact issue in TFS 2013. For some
    reason, I can't update the state from "Ready For Prod" to "Prod Deployment Successful".  Does anyone have any ideas of what could be wrong or causing my issue?
    Thanks in advance!

    I finally figured out my issue and fixed it.
    I had to update a reference name in the WIT xml file to Common.BusinessValue instead of Closed.

Maybe you are looking for

  • Issues while opening a report..

    Hi Gurus, When I execute a query in BEx 3.x, I am not even taken to the variable screen...I get the haour glass['wait' symbol] for about 10 minutes and then eventually get the error message 'Unable to fuilfill requests for 16777216 bytes of memory'.

  • What wireless card do I put in my HP PAVILION DV6748US ENTERTAINMENT NOTEBOOK PC? Have 2 options.

    I need to replace the wireless card in my notebook but I don't know which to choose. There's the Broadcom 4311AG Wireless LAN 802.11a/b/g mini PCI adapter card(Bevo) - 54Mbps data rate, 2.4GHz operating frequency range -  For Rest of World (ROW) or t

  • Java Classes & web.xml

    Is it possible for a Java Class to read or extract a parameter stored in web.xml file?

  • Locked/protected gallery albums viewed on Touch's Safari

    I have a number of albums published on my MobileMe gallery. Some of these are protected. When I try to view them on my Touch, it prompts me to login with the name/password. I type that in and press "login". The login screen flashes off for about 1/2

  • IPhone refuses to sync

    All of a sudden, when I sync with iTunes, my phone will just display that it is charging, not syncing, and I can use the phone freely. On iTunes, it gets up to the backup stage but just stops in the beginning of it. If you cancel the backup, it goes