Skip to Content
Author's profile photo Former Member

Custom Workflow Admin

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 🙂 )

Assigned Tags

      You must be Logged on to comment or reply to a post.
      Author's profile photo Rick Bakker
      Rick Bakker

      How do you link PR to SWWWIHEAD?

      Author's profile photo Pavan Bhamidipati
      Pavan Bhamidipati

      I doubt , that do really client/customer likes to delete the workitem in PROD

      Author's profile photo Susan Keohan
      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?


      Author's profile photo Suresh Subramanian
      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.

      Author's profile photo Rick Bakker
      Rick Bakker

      SAP_WAPI_WORKITEM_DELETE is for logical deletion, so that's fine in Production - only the top-level workitem though.

      Author's profile photo Florin Wach
      Florin Wach

      Hi Vishal,

      the blog title is very promising. So how about providing the full idea now?


      Author's profile photo Former Member
      Former Member


      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.



      Author's profile photo Hafizul Mollah
      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).



      Author's profile photo Former Member
      Former Member

      Thanks Hafizul Mollah... 😎