SAP Function SAP_WAPI_READ_CONTAINER - Workflow Interfaces: Read Container

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
IFS_XML_CONTAINER XSTRING y 0 Container Data in XML Representation
IFS_XML_CONTAINER_SCHEMA XSTRING y 0 Container Data in XML Schema
RETURN_CODE SYST-SUBRC I 4 Return Value (0 - 1)

Parameter Reference Length Optional Text
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure
SIMPLE_CONTAINER SWR_CONT 287 X Single Container (Name-Value-Pair)
SUBCONTAINER_ALL_OBJECTS SWR_CONT 287 X All Object References in the Container
SUBCONTAINER_BOR_OBJECTS SWR_CONT 287 X BOR References in the Container

Functionality
The container of a work item is read (in a simplified form).
The parameter WORKITEM_ID specifies the work item for which thecontainer is to be read.
After a successful call, the parameter SIMPLE_CONTAINERcontains the container in a simplified form: a single-line containerelement is specified as a line in the parameter SIMPLE_CONTAINER
, and a multiline event parameter as several consecutive lines.Every line is a NAME - VALUE pair.
INCLUDE WF_FB_RETURN_PARAMETER OBJECT DOKU ID TX
INCLUDE WF_FB_RETURN_CODE OBJECT DOKU ID TX

Value range
0,,Call successful; a work item was created
1,,The container cannot be read for the specified work item ID

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, and in the eventfailure more information about the errors that occurred.
INCLUDE WF_FB_MESSAGE_STRUCTURE OBJECT DOKU ID TX

Description
Container element values in simplified form
A container element is represented by a NAME - VALUE pair (single-lineelement) or several NAME - VALUE pairs (multiline element). Note thatthis is not the "usual" container structure.