Work item deletion

Hi Team,
when ever a PO orPR is created, based on the release strategy  appropriate person will get the work item, then they have to execute the work item from their SAP inbox , then it will go to next release person ,
But they are releasing from transaction ME29n or ME54n directly, in this case they want to disappear the work item from their SAP inbox. How it is possible, can you please guide me? Ex. if 1st person releases PO/PR from ME29N or ME54N without executing work item from SAP Inbox, it has to disappear from their inbox and the remaining process as do as i developed in my workflow. Can you please help me.
I observed the function module SAP_WAPI_FORWARD_WORKITEM, but how can we pass the work item id to the above F.M based the PO or PR number or other possibilities.
Please guide me
Regards,
Surya.

Hello,
You can use a parallel step and wait activity in that step with the Release event and you need to pass the PO or PR number as respectively with Workitem completion option.
By, this if a PO or PR gets released by any option the workitem will be completed and will disappear from the user's inbox.
Thnx,
Sudhir.

Similar Messages

  • Work Item not getting logically deleted

    Hi All,
    We have created a custom workflow for PR approval at Item Level. I have RELEASE STEP CREATED as triggering event.
    I have used a FORK with 5 branches with 4 wait events and min cond as 1. The inherited business object ZBUS2009 has been created with events CHANGE, DELETED. The business object has been delegated to Original Business object BUS2009.
    To trigger the events like DELETED and CHANGED, I have used POSTED METHOD of ME_REQ_POSTED BADI.
    When a PR Item is created the agents are determined successfully and work item is placed in his SAP Inbox. Later the PR Item has been deleted and saved the BADI Implementation is triggered and I can see the log in SWEL for DELETED event with success icon.
    However when i go back to PR Item which i have deleted and see the workflow log the work item is still in the approver's inbox. but the graphic log shows that the DELETED branch of the fork is completed. I tried all options like Buffer synch, background job, queue admin etc with no success.
    I did the same workflow at one of my previous clients and it is working perfectly for last 2yrs.
    Can any one guide me on what could have gone wrong or what i am missing?
    Thank you all in advance for help...
    Regards,
    Lakshmi Narayana

    Hi Arghadip,
    Thanks for your quick response.
    The fork is having 5 parallel branchs and 1 necessary branch and is INDEED HAS NO EXTRA CONDITIONS.
    Also as i mentioned the graphical log shows that the completion of BRANCH Beneth DELETED but the work item is still in approver's inbox. 
    Please let me know if I am missing something....
    Rgds,
    Lakshmi

  • Work Item Not getting Deleted

    Hi
    We have a starge issue.
    We use the table SWWUSERWI to see all the work items in the user's inbox.
    If we delete the work item in this table it will remove the same from user's inbox.
    We have a problem now. Even after we deleted all the work items the SRM "Approval" link and the "Inbox" still contains Workitems( more than 200 ).
    Is there anyother table or tCode to find the work items in user's inbox'
    Thanks
    Siva.

    HI experts!!
    The issue is solved!!!
    The another user who is not with the company currenlty had maintained the user who had problem as substitue!!!.. we had to remove the substitute to solve the problem.
    Thanks
    Siva.

  • How to delete work items

    Hi,
    I'm using XI 3.0 and am trying to delete some Work Items that are sitting in Error status.
    I've tried following OSS note 807906 but cannot see the menu items mentioned (specifically the Edit=>Change option) - can someone explain more clearly how to delete them?
    Thx
    Here is summary of OSS Note:
    "First make sure that the process is actually 'irretrieveably lost', that is, that it has not simply encountered a temporary error (for example, the failure of synchronous sending and so on).
    If you are certain that the process is no longer required, call the log of the affected process (using the process selection (SWF_XI_SWI1)) or the SXMB_MONI, ... and display the work item of the process (Workflows).
    Go to the technical work-item display (if this is not displayed by default) and then select Edit => Change there.
    Under 'Services for Administration', select the 'Logical Deletion' function.
    This function is used to set the process to the 'Logically Deleted' status and to delete all outstanding correlations. The process has then reached its final status and can also be archived"

    brian
    are u luking into deleting error messages. If yes then,
    SXMB_ADM --> Schedule/Delete Jobs
    Delete Messages SXMB_MONI

  • Delete credit memo work item created in VA01 when the user change value

    Hi,
    In T.code VA01 Credit memo request is creating, this document will automatically create  work item.  Based on Net value in credit memo request, the work item should go for 5 levels of approval. After 1st person is approved, the workflow initiator realized that the net value in created Credit Memo request is wrong; he is going to VA02 and correcting the net value. Again we have to create new work item for this and delete the already created work item. Client has clearly mentioned when ever there is change in 5 critical fields in VA02 then only create fresh work item otherwise no need to create SECOND TIME work item. Net value is one of the critical field in the list.
    How to track already created credit memo request and how to delete the previously created work item. What is the feasibility of this requirement and how to handle this situation?
    Regards
    Vijay

    Hi,
    Just put a Fork and put 1 out of 2 outcomes and in the first alternative, you put your witem that goes to user B. In the 2nd alternative, put a Wait for event "CHANGED". And after this, put a process control step with "Set workitems to Obsolete" or "Cancel workflow" etc., depending on your requirement.
    Pl note that this will only take out old witems, but you need to send a new witem for which you need to trigger another instance of the workflow as well. pl put CHANGED event also as one of the triggering events and use condition editor to restrict the fields that triggers the workflow.
    Also, look into the IMG config of the following path. This might be a fitting solution.
    In SPRO, go to Financial Accounting (New)---> Financial Accounting Global settings(New) -
    >Tools --->Workflow ---> Workflow for Document Parking -->Reset Release Approvals(Customers).
    Here, you can list down the fields, the workflow should restart. But, then you need to give the workflow details etc., in the relevant config settings.
    We have used this in restarting workflows for General Ledger(GL) documents' workflow when some important fields are changed.
    For this config settings, look into the following help link.
    http://help.sap.com/erp2005_ehp_02/helpdata/en/01/a9cdd8455711d182b40000e829fbfe/frameset.htm
    Hope this helps.
    venu

  • SWWL - delete work item - approval preview log??

    Hi all,
    SRM 5.0 ECS.
    We have implemented custom  n step approval wf for shopping cart .The shopping cart has PO and invoice created and the header status for shopping cart is approved.However now the workflow has restarted for the cart and I need to delete the work items from the approvers inbox.
    If i delete the work items from SWWL transaction,will the shopping cart status still be "APPROVED"???
    Is SWWL the best way to delete the work items??What will the approval preview for the shopping cart show after I delete the work item?

    Once, Workfiow item is approved, Workitem disappears from inbox right..
    Why do you use SWWL transaction to delete the workitems..
    Can you elaborate the issue..Please.
    Thanks,
    Balaji.T

  • Delete Work Item from PO Releaser's Inbox during Workflow

    Hi All
    How can I delete the previous Work Item that was created in the PO Releaser's Inbox if a PO was changed which re-triggered the PO Release workflow but this time to a different PO Releaser.
    The workflow is working correctly, i.e. creating the new release item in the new releaser'd Inbox but not deleting the old Work Item for the previous releaser.
    Any idea on how I can accomplish this?
    Kind Regards
    Utian Goliath

    PLease refer the below stuff................create a task and put the code inside the method.This task should be fisrt step in your workflow.
    User sets doc to Complete from FBV2 , Complete event triggered and workflow triggered.
    Workitem goes to approver .
    Now , the user immediately changes doc from FBV2 , sets it to Complete again and workflow triggered
    workitem goes to the same approver for the same document.
    SAP_WAPI_WORKITEM_TO_OBJECT - Worklist table will giv all parent id's for the object key concatenation of
    com code , doc no and fiscal year.
    SWP_WORKFLOW_INSTANCE_DELETE - Pass the parent id and will delete the entire instance but not
    parent workitem id.
    SAP_WAPI_WORKITEM_DELETE - Pass parent id everything will be deleted .( Check_final_state = blank ).
    No trace found in SWI14 and SWI2_FREQ.
    To remove the previous workitem , create a method in the begining of the workflow , use F.M.
    SAP_WAPI_WORKITEM_TO_OBJECT to get the workflow id's and then
    SWP_WORKFLOW_INSTANCE_DELETE or SAP_WAPI_WORKITEM_DELETE to delete the previous instance.
    data : lt_worklist type table of SWR_WIHDR,
           lw_worklist type SWR_WIHDR,
           lv_objkey type SWOTOBJID-OBJKEY,
           lv_return type sy-subrc,
           lv_id type SWP_HEADER-WF_ID.
    concatenate object-key-sourcecompanycode object-key-documentn
    object-key-fiscalyear into lv_objkey.
    CALL FUNCTION 'SAP_WAPI_WORKITEMS_TO_OBJECT'
    EXPORTING
      OBJECT_POR                     =
       OBJTYPE                        = 'FIPP'
       OBJKEY                          = lv_objkey
      TOP_LEVEL_ITEMS                = 'X'
      SELECTION_STATUS_VARIANT       = 0001
      TIME                           =
      TEXT                           = 'X'
      OUTPUT_ONLY_TOP_LEVEL          = ' '
      LANGUAGE                       = SY-LANGU
      DETERMINE_TASK_FILTER          = 'X'
      REMOVED_OBJECTS                = ' '
    IMPORTING
       RETURN_CODE                    = lv_return
      TABLES
      TASK_FILTER                    =
        WORKLIST                       = lt_worklist
      MESSAGE_LINES                  =
      MESSAGE_STRUCT                 =
       if lt_worklist is not initial.
    loop at lt_worklist into lw_worklist.
      object-instance = 'X'.
    move lw_worklist-wi_id to lv_id.
    CALL FUNCTION 'SWP_WORKFLOW_INSTANCE_DELETE'
      EXPORTING
        WF_ID                         = lv_id
        DO_COMMIT                     = 'X'
    EXCEPTIONS
      WORKFLOW_DOES_NOT_EXIST       = 1
      OTHERS                        = 2
    IF SY-SUBRC <> 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
    ENDIF.
    ENDLOOP.
    ENDIF.
    Second way is to create a fork , and use wait for event step in it with the same event that is triggering the WFL
    In the same branch take a process control to end workflow instance.
    In the second branch carry out normal processing.
    Necessary branch = 1.
    So incase the user triggers the event again, a new instance will be created ,
    and in the previous instance , the first branch will follow ending the
    previous instance and the workitems of other branch will be logically deleted.

  • 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...

  • 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

  • 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

  • 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....

  • To Delete the PO Work Item after 2 days

    Hi Experts,
    I am new to workflow.
    In R/3,
    I want to delete the PO workitem automatically from UWL after 2 days .
    I am using WS20000075, and tasks TS20000166, TS20000167, TS20000168 .
    How can I delete the work item from UWL .
    Please give me a brief solution .
    Regards
    Krishhna

    Hi,
    Activate processing obsolete option in the task step for which workitem has to be deleted.
    Also specify the latest end for 2 days.
    Cheers,
    Raja.D

  • Amending List content (deleteing & renaming) - Effect on previous created work items/reporting

    Hi, 
    I going to be changing the naming and structure of support groups and incident tier groups. I'd like to know what effect this has on all previously created work items and the reporting on those work items. 
    In addition, I am also adding list items to impact and risk list to change incident prioritisation settings and want to know the effect it will have on the live work items and historical work items.
    Cheers,
    Pete

    When you're thinking about editing enums in a live system, it's important to know a little but about how they work on the back end. 
    each enumeration entry essentially breaks down into a GUID and a display string; there are other properties, like Parent, Ordinal, InternalName etc, but those don't come in right now. when you use a console form to look at an incident, the control reads
    the GUID that is stored on the incident in the property in question, and then goes and collects the list that property references, and shows you the correct display string for your language. the specifics are not important, but the fact that what's stored
    on the incident is that system generated GUID is. when you edit a list, each entry has a unique GUID, that can't be changed or seen through the UI.
    Adding a new entry will add a new guid and a new display string. this option will be available the next time the form is opened. this works pretty much the way you would expect it to. 
    Renaming an enumeration keeps the GUID the same, but changes the display string. any incident with that GUID will see the new string, and the data warehouse will be updated with the new string, so
    historical incidents that had that value will now have the new display string.
    Deleting an enumeration will remove the entry from the list and break the mapping of that guid to the display string, but does nothing to the incidents that have that guid on them. the net-net of this is that any incident with that guid
    will have a value (i.e. not null) but it won't have anything to show to analysts, so it will look like it isn't set. the datawarehouse keeps those mappings even after they are deleted, so removing a mapping will not affect reporting. 
    the end of this is that you should re-classify any items before deleting an enumeration, you should only rename an enumeration if that new name makes sense for all work items for all of history. it is possible to reorder enumerations while keeping their
    GUIDs, but it requires some XMLing. I've posted about it elsewhere in this forum, so let me know if you need a link

  • 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

  • Urgent what is the programs to delete work item history and work item

    hi gurus this is very urgent ,
    what is the programs to delete work item history and work item ?

    Hi Deppak.
    There is a program ,to delete an workitem and history
    RSWWHIDE---Program to delete the history.
    RSWWWIDE--- Program to delete an workitem.

Maybe you are looking for

  • Can't print a graph on the whole page in landscape

    Hello! I have XY graph that I want to print on the whole page in landscape orientation (paper A4). On the screen the graph is small, so I do resizing, appending image to report, and then printing. After sending it to the printer I get preview (from t

  • GP - How to display a long string value

    I'm trying to display a really long string value and then allow the user a couple of result state choices (to either go back and do another search or finish). None of the forms (WD, display, etc.) will display a really long string. I tried using a lo

  • Business Process Management Tool Evaluation ARIS or Systems Architect?

    Hi Group I have joined this community yesterday, so I am pretty much new here. I work as a Business Process Analyst for a semi govt company. I have been tasked for evaluating a tool for business process management. Current scenario is as under: 1) We

  • Oracle.jbo.RowInconsistentException:JBO-25014:Another user has changed the

    Hi Experts, I am working jdev 11.1.1.3.0 I am trying to update selected rows on the table, for this i lam getting selected data from the table and updating one flag on the row. when i executing save/commit i am getting below error. oracle.jbo.RowInco

  • My macbook isnt starting. even charging isnt helping. what's wrong ?

    first i thought that the battery was drained so i put it to charge but it was not of any help either. the charging was not showing and no light was turning on. i put it to charge for about 1 hour but nothing showed up. please help. need to submit my