Ansicht
Dokumentation

ABENBDL_ALIAS - BDL ALIAS

ABENBDL_ALIAS - BDL ALIAS

General Material Data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.
SAP E-Book

- DEFINE BEHAVIOR, alias


* Work in progress *

... alias AliasName

Effect

Behavior Definition Language (BDL) makes it possible to define an alias name AliasName for a CDS entity.

A BDL alias for an entity makes it possible to introduce a alias name for a CDS entity. This name can be clearer than the entity name itself, since it does not need to be uniquely global in ABAP Dictionary.

The alias name is visible in the method syntax of the behavior implementation of the business object and in the derived types.

The length of an alias name AliasName is restricted to 20 characters.

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 process flight bookings. The CDS view /DMO/I_Travel represents the root node of the business object for managing air travel. The underlying data is described in CDS BDL - Example.

The following example shows the behavior definition for the root entity Travel. The business object whose CDS data model is represented by the root entity /DMO/I_Travel can be given an alias, in this instance Travel.

implementation unmanaged;
define behavior for /DMO/I_Travel alias Travel
{
  create;
  update;
  delete;
}





PERFORM Short Reference   General Material Data  
This documentation is copyright by SAP AG.

Length: 2517 Date: 20240426 Time: 072830     sap01-206 ( 40 ms )