SAP Function SWW_WI_SELECT - Agent Selects Work Item

Parameter Reference Type Length Default Optional Text
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
PRECONDITIONS_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Status Checks and Type Checks
USER SWWWIHEAD-WI_AAGENT C 12 Agent Wanting To Select the Work Item
WI_ID SWWWIHEAD-WI_ID N 12 Work Item To Be Selected

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

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

Functionality
This function module reserves the work item with the ID WI_ID for theuser USER, and sets the status of the work item to SELECTED.