Skip to content

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

ABAP EML - MODIFY ENTITIES OPERATIONS

Other versions: 7.31 | 7.40 | 7.54

Syntax


MODIFY ENTITIES 
    OPERATIONS operation
   [FAILED   it_failed   | DATA(it_failed)]
   [MAPPED   it_mapped   | DATA(it_mapped)]
   [REPORTED it_reported | DATA(it_reported)].

Effect

The dynamic form MODIFY 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 row type of an operation operation has the type ABP_BEHV_CHANGES_TAB and consists of following fields:

  • OP             Type  ABP_BEHV_OP_MODIFY
    Operation: IF_ABAP_BEHV=>M_OP-CREATE|UPDATE|DELETE|EXECUTE
  • ENTITY_NAME    Type  ABP_ENTITY_NAME
  • SUB_NAME       Type  C  Length  30
    Contains the function or association name (for create-by-association); is empty otherwise.
  • INSTANCES      Type  REF  TO  DATA
    Contains the derived table type for the operation.
  • RESULTS        Type  REF  TO  DATA
    Contains the derived type for the results of an action; is empty otherwise.

The response structures FAILED, MAPPED and REPORTED must either have the matching type or be declared inline (for example REPORTED DATA(ls_repd)). The row type of the response structures 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|MAPPED|REPORTED
    REF TO DATA contains the same derived types during runtime as in static cases.