Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  ABAP RESTful Programming Model →  Entity Manipulation Language →  ABAP EML - READ ENTITIES 

ABAP EML - READ ENTITIES OPERATIONS

Other versions: 7.31 | 7.40 | 7.54

Syntax


READ ENTITIES 
    OPERATIONS operations
   [FAILED   it_failed | DATA(it_failed)]
   [REPORTED it_reported | DATA(it_reported)].

Effect

The dynamic form READ ENTITIES OPERATIONS does not specify an introductory name of the business object (OF root_name). It allows to merge operations on multiple business objects in a statement.

The table type of an operation operation has the type ABP_BEHV_RETRIEVALS_TAB and consists of following fields:

  • OP            Type  ABP_BEHV_OP_MODIFY
    Operation: IF_ABAP_BEHV=>R_OP-READ|READ_BA
  • ENTITY_NAME   Type  ABP_ENTITY_NAME
  • SUB_NAME      Type  C  Length  30
    Contains the function or association name (for read-by-association), is empty otherwise.
  • INSTANCES     Type  REF  TO  DATA
    Contains the derived table type for the operation.
  • FULL          Type  C  Length 1
    Flag: Retrieve target instances (not just links)
  • RESULTS       Type  REF  TO  DATA
    Contains the derived table type for the target entity.
  • LINKS                       Type  REF  TO  DATA
    Contains the derived table type for the relationships between source-and target key.

The row type of the response structures FAILED and REPORTED has the type ABP_BEHV_RESPONSE_TAB and consists of the following fields:

  • ROOT_NAME     Type  ABP_ROOT_ENTITY_NAME
  • ENTITY_NAME   Type  ABP_ENTITY_NAME
  • ENTRIES       Type  REF TO DATA
    Contains the derived table type for FAILED|REPORTED

During runtime, REF TO DATA contain the same derived types as in static cases.