Ansicht
Dokumentation

ABENBDL_EXTENSION_FOR_PROJECTION - BDL EXTENSION FOR PROJECTION

ABENBDL_EXTENSION_FOR_PROJECTION - BDL EXTENSION FOR PROJECTION

General Material Data   Vendor Master (General Section)  
This documentation is copyright by SAP AG.
SAP E-Book

- extension for projection

extension for projection $[implementation in class ClassName unique$];
  $[with privileged mode disabling base context $[and ContextName$]$];
  $[foreign entity$]
  $[define behavior for$]
  $[extend behavior for$]
  $[extend own authorization context$]
  $[define authorization context$]
...

Effect

Extends an existing CDS projection behavior definition using a BDEF projection extension in the CDS BDL. A CDS projection behavior definition can have one or multiple BDEF projection extensions. The number of extensions is not limited. A BDEF projection extension itself cannot be further extended.

A BDEF projection extension can have the following components:

  • implementation in class ClassName unique: in a BDEF projection extension, an ABAP behavior pool is possible:
  • Functionality that is reused from the original BO does not require its own implementation. The implementation from the original BO is reused.

  • If the BDEF projection extension defines new actions or functions, an ABAP behavior pool is required.

  • with privileged mode disabling base context $[and ContextName$]:
  • A BDEF projection extension can enable BDEF privileged mode. As a prerequisite, the original BO of type managed or unmanaged must enable privileged mode. The behavior of the extended BDEF of type projection is irrelevant, it may define privileged mode, but this is optional.

  • The syntax addition disabling base context is mandatory, and ContextName is optional. The same rules apply as for projection behavior definitions, see topic with privileged mode, Alternative 2.

  • foreign entity:

  • A foreign entity can be defined before, after, or between the other components.

  • Only entities that belong to the same software component can be added as RAP foreign entity to a BDEF projection extension.

: No ABAP behavior pool must be specified. The statement implementation in class ClassName unique is forbidden.

Example

The BDEF projection extension DEMO_RAP_PROJ_EXT_BEH_1 extends the CDS projection behavior definition DEMO_RAP_PROJ_EXT_BEH.

  • It extends the behavior of the root node.
  • It behavior-enables an extension node using the syntax define behavior for, reusing operations from the projected BDEF and specifying field attributes.

The executable example Projection Entity Extension explains the example above in detail.






Vendor Master (General Section)   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 8338 Date: 20240511 Time: 090928     sap01-206 ( 74 ms )