Ansicht
Dokumentation

ABENBDL_DEFINE_BEH_INTERFACE - BDL DEFINE BEH INTERFACE

ABENBDL_DEFINE_BEH_INTERFACE - BDL DEFINE BEH INTERFACE

ROGBILLS - Synchronize billing plans   General Material Data  
This documentation is copyright by SAP AG.
SAP E-Book

- 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.
  • For details on optimistic concurrency control, see topic CDS BDL - ETag.

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 )