Fonction SAP SAP_WAPI_GET_OBJECTS - Workflow Interfaces: Read Work Item Objects

Paramètre Reférence Type Long. Valeur par déf. Facultatif Description
BUFFERED_ACCESS XFELD C 1 'X' X Determine Data from Buffer
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

Paramètre Reférence Type Long. Description
LEADING_OBJECT SWR_OBJECT u 242 Object
LEADING_OBJECT_2 SWR_OBJ_2 u 256 Local Persistent Object Reference - BOR Compatible
RETURN_CODE SYST-SUBRC I 4 Return Code (0, 1, 999)

Paramètre Reférence Long. Facultatif Description
MESSAGE_LINES SWR_MESSAG 274 X Message Lines
MESSAGE_STRUCT SWR_MSTRUC 224 X Message Structure
OBJECTS SWR_OBJECT 242 X Added Objects
OBJECTS_2 SWR_OBJ_2 256 X WAPI: Generic Structure for Objects (After 4.6)

Functionality
This function module determines all objects that are connected with thework item. The objects ae classified according to their use within theworkflow in the return table OBJECTS:

  • Ad hoc objects

  • Process objects

  • Attachments
  • Description
    Object for which the method of the corresponding task is defined
    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
    Objects that were added to the work item