Ansicht
Dokumentation
ABENBDL_DEFINE_BEH_INTERFACE - BDL DEFINE BEH INTERFACE
ROGBILLS - Synchronize billing plans General Material DataThis documentation is copyright by SAP AG.
- Entity Behavior Definition, Interface BDEF
define behavior for ProjectedEntity $[alias AliasName$] $[external ExternalName$]
$[use etag$]
{
entity behavior body
}
$[behavior for ChildEntity1$]$[, behavior for ChildEntity2$]$[, ...
$]
Effect
Defines the behavior for a RAP BO interface in the CDS BDL. An interface behavior definition can project a subset or all of the nodes of its underlying base BO. The root entity ProjectedEntity must be a CDS transactional interface.
Syntax additions and components:
- An alias name should be specified using the keyword alias. This name can be clearer than the entity name itself, since it does not need to be uniquely global in ABAP Dictionary. The length of an alias name AliasName is restricted to 30 characters. If no alias name is specified, a syntax check warning occurs.
- The optional addition external can be used to provide an alias name for external usage. This external name can be used, for example, if another projection layer is built on top of the interface BDEF. It can be much longer than the alias name.
- Only one entity behavior characteristic is available, namely use etag. An ETag field for optimistic concurrency control can be reused if it is specified in the base BO.
- For details on optimistic concurrency control, see topic CDS BDL - ETag.
- For details on reuse, see topic CDS BDL - use.
- The entity behavior body can expose a subset of the transactional behavior or the base BDEF, for example,
RAP BO operations.
Example
The following example shows an interface BDEF. The projected BO is DEMO_RAP_UNMANAGED_DRAFT_ROOT. The interface BDEF reuses draft handling and standard operations from the underlying BO. It also defines a foreign entity and excludes two fields from the BDEF derived types.
PERFORM Short Reference ROGBILLS - Synchronize billing plans
This documentation is copyright by SAP AG.
Length: 3898 Date: 20240511 Time: 090652 sap01-206 ( 42 ms )