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