SAP Function SWW_WI_BACK - Agent Returns Work Item

Parameter Reference Type Length Default Optional Text
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
IM_FUNCNAME FUNCNAME C 30 X Function that Is Logged
IM_LANGU SYLANGU C 1 SY-LANGU X SAP System, Current Language
IM_USER SYUNAME C 12 SY-UNAME X ABAP System, User Logon Name
PRECONDITIONS_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Status Checks and Type Checks
WI_ID SWWWIHEAD-WI_ID N 12 Work Item To Be Returned

Parameter Reference Type Length Text
NEW_STATUS SWWWIHEAD-WI_STAT C 12 New Status of Work Item

Exception Text
INFEASIBLE_STATE_TRANSITION Return Not Allowed in Current Status
INVALID_TYPE Method Not Allowed for this Type
UPDATE_FAILED Work Item Cannot Be Updated

Functionality
This function module returns the work item with the ID WI_ID, making itvisible to all recipients again.