SAP Function SWW_WI_DELETE - Internal: Work Item Deletion -> SAP_WAPI_WORKITEM_DELETE

Parameter Reference Type Length Default Optional Text
CREATE_EVENT SWWCOMMIT-EVENTFLAG C 1 SPACE X Indicator To Trigger Event WORKITEM.DELETED
DELETE_LOG SWWCOMMIT-DELETEFLAG C 1 SPACE X Indicator Showing Whether WI Log Is To Be Deleted
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
WI_ID SWWWIHEAD-WI_ID N 12 ID of Work Item To Be Deleted

Exception Text
UPDATE_FAILED Work Item Cannot Be Deleted

Functionality
The function module deletes the work item with the ID WI_ID includingall deadline data. The work item container and work item attachmentsare also deleted.
With workflow work items (type F) and work queue work items (type A),the associated work items are also deleted.