Skip to Content

If you want to create a Program that only needs a Key field(PO, PR number) and any user should have ability to Forward, Delete, Remove the Workitem of that particular Document then this can be done using SWWWIHEAD table.

– Create a Custom Tcode and Program with selection screen which would take necessary details like Type(PO or PR or etc), Key Field and Action to be taken.

– From table SWWWIHEAD get the latest Approval Required Task number and corresponding Workitem ID.

– We have some FMs that can forward the workitem e.g. SAP_WAPI_FORWARD_WORKITEM .

– For Deleting the Workitem, try using SAP_WAPI_WORKITEM_DELETE.

– To execute the workitem, SAP_WAPI_EXECUTE_WORKITEM can be used.

– Similarly , we have many more FMs that can be used to perform different Actions on the workitems without Any Wokflow consultants help(Provided this Code has been implemented 🙂 )

To report this post you need to login first.

9 Comments

You must be Logged on to comment or reply to a post.

  1. Susan Keohan

    I know that on rare occasions, it is necessary for the WF Admin to take matters into their own hands.  But I am not really seeing the benefit of this.  We have usage of transaction SWIA if we are supposed to. 

    To me, this just seems like writing a method to get around workflow and the process constraints that it enforces.  Can you enlighten me?

    Sue

    (0) 
  2. Suresh Subramanian

    Never delete work item in production client.

    For forwarding work item and execute, already there is standard transaction SWIA with so many lovely features.

    (0) 
  3. Ragavendran Kanagaraj

    Hi,

    Not recommended go for Custom report doing this all activities.Becase already we have standard transaction do this specifically.

    SWI14 – Based on Object key u can get all worklfows.

    SWIA –  You can do froward

    Deletion not recommended.

    Anyway Good try Vishal. 😉

    All the best for upcoming good brief document from you.

    Regards,

    Ragav

    (0) 
    1. Hafizul Mollah

      Hi Ragav,

      Just one observation-in SWI14 we dont have option to provide the key field value of the Business object rather it is there in SWI6.

      SWI14-If u dont have the key field value then use this to get all the workflow instance details for ur Business Object irrespective of the key values.

      SWI6-If u know the key field value then use this to get the workflow for that particular key field value(Click on the ‘Enter Object Key, under the BO Type field to provide the key field’s value).

      Thanks

      Hafizul

      (0) 

Leave a Reply