SAP Function SAP_WAPI_GET_METHODS - Workflow Interfaces: Read Work Item Methods

Parameter Reference Type Length Default Optional Text
LANGUAGE SYLANGU C 1 SY-LANGU X SAP System, Current Language
USER SYUNAME C 12 SY-UNAME X ABAP System, User Logon Name
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
METHODS SWR_METHOD 778 X Methods

Functionality
A work item is displayed using SAPGUI, which necessitates a (remote)function call with dialog.
Other operations on work items can be called from the work item display(such as reserve or forward). The parameter WORKITEM_ID specifies thework item on which the operation is to be executed.
The parameter NEW_STATUS shows the new status (technical text andlanguage-dependent description) after the call.
The parameters RETURN_CODE and MESSAGE_LINES show whether the call wassuccessful. RETURN_CODE has a numeric value, and MESSAGE_LINES gives atextual explanation for finer differentiation.
INCLUDE WF_FB_RETURN_CODE OBJECT DOKU ID TX
INCLUDE WF_FB_RETURN_CODE_0_1_999 OBJECT DOKU ID TX

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 detailed information about the errors that occurred.

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

Description
This table contains all methods of the step after execution of thefunction module. These are the method entered for the associated step,and the before, secondary or after methods. The first line of the tablecontains the method entered directly for execution, and the other linescontain the before, secondary or after methods entered.