Ansicht
Dokumentation

ABENRPM_INPUT_PARAMETERS - RPM INPUT PARAMETERS

ABENRPM_INPUT_PARAMETERS - RPM INPUT PARAMETERS

General Data in Customer Master   Addresses (Business Address Services)  
This documentation is copyright by SAP AG.
SAP E-Book

Input Parameter Type

TYPES type_for_import_parameter TYPE TABLE FOR
      CREATE$|UPDATE$|DELETE$|LOCK$|READ IMPORT
      CDS_entity_name.

TYPES type_for_action_import_parameter TYPE TABLE FOR
      ACTION IMPORT entity_name~action_name.


Effect

Each individual type declaration for input parameters consists of a combination of an operation (CREATE, UPDATE, DELETE, LOCK or READ IMPORT) and an entity or an entity part (for actions).

IMPORT, RESULT, or LINK entity-association is expected after READ.

The type name of the input parameter type_for_import_parameter can be specified freely.

If available, the alias specified in the behavior definition should be used to reference a CDS entity. Therefore, CDS_entity_name refers to the name of the CDS entity or the alias as defined in the behavior definition.

Example

In the following example, the data from the ABAP flight data reference scenario (short flight data scenario) is used. It represents a legacy business logic that can be used to create and update flight bookings. The root entity Travel represents the business object for managing flight trips. The underlying data model and the behavior of the root entity Travel are described in the CDS BDL - Example.

CLASS lcl_handler DEFINITION
        INHERITING FROM cl_abap_behavior_handler.
  PRIVATE SECTION.
    TYPES:
      tt_travel_create   TYPE TABLE FOR CREATE      travel
      tt_travel_update   TYPE TABLE FOR UPDATE      travel
      tt_travel_delete   TYPE TABLE FOR DELETE      travel
      tt_travel_key      TYPE TABLE FOR LOCK        travel
      it_booking_read_in TYPE TABLE FOR READ IMPORT booking.

    TYPES tt_travel_set_status_booked_in
      TYPE TABLE FOR ACTION IMPORT travel~set_status_booked.
    TYPES tt_travel_get_status_booked_in
      TYPE TABLE FOR ACTION IMPORT travel~get_status.
    ...
ENDCLASS.





SUBST_MERGE_LIST - merge external lists to one complete list with #if... logic for R3up   BAL Application Log Documentation  
This documentation is copyright by SAP AG.

Length: 3714 Date: 20240419 Time: 164204     sap01-206 ( 37 ms )