SAP Function SWW_WI_REJECT - Reject Work Item (Only Type W)

Parameter Reference Type Length Default Optional Text
DEBUG_FLAG SWWCOMMIT-SYNCFLAG C 1 SPACE X Indicator Showing Whether Callback Synchronous (Debugging)
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
IM_FUNCNAME FUNCNAME C 30 X Function Name that Is Logged
NO_CALLBACK_ON_COMPLETION SWWCOMMIT-COMPFLAG C 1 SPACE X Caution: Parameter Not Evaluated
PRECONDITIONS_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Status Checks and Type Checks
USER SWWWIHEAD-WI_AAGENT C 12 SY-UNAME X Rejecting User
WI_ID SWWWIHEAD-WI_ID N 12 Work Item ID

Parameter Reference Type Length Text
RETURN SWOTRETURN u 484 Return Codes from Object Method
SWF_RETURN SWF_RETURN u 560 Workflow: Method Exception
WI_RESULT SWWWIRES u 162 Return Codes from WIM

Exception Text
INVALID_TYPE Method Not Allowed for this Type
REJECTION_NOT_ALLOWED Rejection of Work Item Not Allowed
UPDATE_FAILED Work Item Cannot Be Updated

Functionality
This function module terminates the work item with the ID WI_ID withthe special return code WI_RC_REJECTED. This procedure is only allowedif the indicator Work item can be rejected is set for this stepin the workflow definition.