SAP Function SWW_WI_PRIORITY_CHANGE - Change Priority of Work Item (Types W, F, and B)

Parameter Reference Type Length Default Optional Text
AUTHORIZATION_CHECKED SWWCOMMIT-AUTHCKFLAG C 1 SPACE X Indicator for Control of Authorization Check
DO_COMMIT SWWCOMMIT-COMMITFLAG C 1 'X' X Indicator for Control of Commit Logic
FUNCNAME FUNCNAME C 30 SPACE X Function Name for Success Log
PRECONDITIONS_CHECKED SWWCOMMIT-CHECKFLAG C 1 SPACE X Indicator for Control of Status Checks and Type Checks
PRIORITY SWWWIHEAD-WI_PRIO N 1 New Priority of Work Item
PROPAGATE_TO_FLOW SWWCOMMIT-PROPFLAG C 1 SPACE X Indicator for Passing-On Changed Priority
WI_ID SWWWIHEAD-WI_ID N 12 Work Item ID

Exception Text
INVALID_STATUS Method Not Allowed in Current Status
INVALID_TYPE Method Not Allowed for this Type
NO_AUTHORIZATION Update Not Allowed in Current Status
UPDATE_FAILED Work Item Cannot Be Updated

Functionality
This function module sets the priority of the work item with the IDWI_ID to PRIORITY. If the indicator PROPAGATE_TO_FLOW is set, thechange is also made to the superordinate workflow work item (type F)and dependent work items.