Ansicht
Dokumentation
ABENBDL_DEFINE_BEHAVIOR - BDL DEFINE BEHAVIOR
CPI1466 during Backup rdisp/max_wprun_time - Maximum work process run timeThis documentation is copyright by SAP AG.
- DEFINE BEHAVIOR
* Work in progress *
define behavior for CDSEntityName $[alias AliasName$]
$[implementation in class ClassName unique$]
$[late numbering $[in place$]$]
$[etag field$|AncestorEntity~Field ( LocalField = MasterField )$]
$[lock master$|dependent ( LocalField = MasterField )$]
{
$[field(read only $| mandatory) field1$[, field2, ...$];$]
$[internal$] create;
$[internal$] update;
$[internal$] delete;
$[internal$] $[static$] action ActionName
$[external LongName$]
$[parameter InputParameterEntity$|$self$]
$[result cardinality OutputParameterEntity$|$self$];
$[internal$] association AssociationName
$[abbreviation AbbreviationName$] {$[$[internal$]create;$]};
}
Effect
Similarly to CDS entities, the behavior for an entity can be divided into a part for once-only specifications (implementation, late numbering, etag, and lock), followed by a part of multiple specifications (field, standard operations, actions, and associations) enclosed in {...}.
In the following example, the data from the ABAP flight data reference scenario (or flight data scenario for short) 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 flight trips. The underlying business model is described in CDS BDL - Example.
The following example shows the behavior definition for the root entity Travel.
-
implementation unmanaged;
define behavior for /DMO/I_Travel alias Travel
late numbering
lock master
etag LastChangedAt
{
field (read only) Travel_ID;
field (mandatory) Agency_ID, Customer_ID, Begin_Date, End_Date;
create;
update;
delete;
action set_status_booked result [1] $self;
association _Booking { create; }
}
BAL Application Log Documentation TXBHW - Original Tax Base Amount in Local Currency
This documentation is copyright by SAP AG.
Length: 3428 Date: 20240423 Time: 081049 sap01-206 ( 32 ms )