SAP Function SAP_WAPI_WORKITEM_RECIPIENTS - Workflow Interfaces: Read Work Item Recipients

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 - 4, 999)

Parameter Reference Length Optional Text
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure
ORIGINAL_RULE_RESULT SWRAGENT 14 X Result of Rule Execution (Without Structure Explosion)
RECIPIENTS SWRAGENT 14 Work item recipients (org. objects)

Functionality
The recipients of the work item are read. They are provided as HRorganizational objects.
Other operations on work items can be called from the work item display(such as reserve, forward). The parameter WORKITEM_ID specifies thework item on which the operation is to be executed.
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

Value range
0,,Call successful. Table filled.
1,,Call successful. General task. Table not filled.
2,,No recipients.
3,,Background task.
4,,The work item cannot be read.
999,,An unknown error occurred.

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 return table contains the recipients of the work item in the formof organizational objects.
An organizational object consists of a two-character object type (suchas US for user) and a twelve-character object ID.

734567Additional SAP_WAPI_WORKITEM_RECIPIENTS export parameter