SAP Function SAP_WAPI_CHANGE_WORKITEM_PRIO - Workflow Interfaces: Change Priority of Work Item

Parameter Reference Type Length Default Optional Text
DO_COMMIT XFELD C 1 'X' X Execute Commit
LANGUAGE SYLANGU C 1 SY-LANGU X SAP System, Current Language
PRIORITY SWR_STRUCT-PRIORITY N 1 Priority
WORKITEM_ID SWR_STRUCT-WORKITEMID N 12 Work Item ID

Parameter Reference Type Length Text
RETURN_CODE SYST-SUBRC I 4 Return Code (0 - 1, 999)

Parameter Reference Length Optional Text
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure

Functionality
This function module changes the priority of a work item.
INCLUDE WF_FB_RETURN_CODE OBJECT DOKU ID TX

Value range
0,, Call successful; priority of work item changed
1,, Work item or its container cannot be read for the specified work
item ID
900,, System error: method must not be used in the current context
999,, Unknown error occurred

Default

Description
Priority that the work item is to assume.

Value range
1 - 9 (fixed values of domain SWD_PRIORI).

Description
Work item identification (numerical value)

Description
The message lines contain two fields:
- MSG_TYPE: Type of message (S: success, E: error, etc.)
- LINE: This contains a textual description of what happened: in theevent of success (RETURN_CODE = 0) a success message, in the event offailure more specific information about the errors that occurred.

Description
Table with fields Message ID, Message type, Message number and Messagevariables