Ansicht
Dokumentation

ABENBDL_EXT_ENABLING_PROJECTION - BDL EXT ENABLING PROJECTION

ABENBDL_EXT_ENABLING_PROJECTION - BDL EXT ENABLING PROJECTION

General Data in Customer Master   ABAP Short Reference  
This documentation is copyright by SAP AG.
SAP E-Book

- Extensibility Enabling for CDS Projection BDEFs

projection
strict;
extensible;
define behavior for ProjectedEntity
  extensible
  $[...$]
{
  $[...$]
  $[mapping for PartnerType corresponding extensible$]
  $[...$]
}
...


To allow BDEF projection extensions to a CDS projection behavior definition, BDEF strict mode must be switched on using the keyword strict.

Effect

The keyword extensible can be specified at different places to allow for extensions:

Prerequisite for extensibility. If it is not specified, then extensions are not allowed. If specified, at least one RAP BO entity must be declared as extensible in the entity behavior characteristics.
Allows the following components to be added to a CDS projection behavior definition via a BDEF projection extension:

Mandatory for each individual RAP BO entity that allows extensions.
Allows the following behavior extensions to be added via a BDEF projection extensions for the RAP BO entity in question:

  • Reuse of actions, functions, and associations from the original RAP BO of type managed or unmanaged.

mapping for PartnerType corresponding extensible: a RAP type mapping defined in the extended RAP business object can be extended with extension fields. extensible can only be used in combination with corresponding, so that components with the same name are automatically mapped to each other.

It is not required that the underlying projected BDEF is declared as extensible. A BDEF projection can be extensible independent of the projected RAP BO.

Example

The CDS projection behavior definition for DEMO_RAP_PROJ_EXTEND enables BDEF extensions:

s






ROGBILLS - Synchronize billing plans   PERFORM Short Reference  
This documentation is copyright by SAP AG.

Length: 6888 Date: 20240512 Time: 010636     sap01-206 ( 56 ms )