Ansicht
Dokumentation

ABENBDL_EXTENSION_SYNTAX - BDL EXTENSION SYNTAX

ABENBDL_EXTENSION_SYNTAX - BDL EXTENSION SYNTAX

TXBHW - Original Tax Base Amount in Local Currency   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.
SAP E-Book

- extension

extension $[using interface InterfaceBdef$]$[;$]
  $[extension_header$]
  $[foreign entity$]
  $[entity_behavior_extension$]
  $[extension_entity_behavior$]
  $[extend own authorization context$]
  $[define authorization context$]
...

Effect

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

Naming: BDEF extensions themselves and each single extension element should use a separate namespace to avoid naming conflicts with the original BDEF and its elements. BDEF extensions created in non-SAP and non-partner development systems should use the customer namespace prefix Z or ZZ.

A BDEF extension can have the following components:

The semicolon after the keyword extension is either mandatory or not allowed, depending on the components of the extension_header. See examples.
  • foreign entity: Defines a RAP BO entity which is not part of the CDS composition tree of the current RAP BO as part of the response structures. 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 extension.

Example

The following source code shows BDEF extension DEMO_RAP_EXTENSION_1. It extends BDEF DEMO_RAP_EXTENSIBLE_ROOT. The extension contains the following components:

  • BDEF extension header
  • Entity behavior extension
  • Authorization context
  • Extension entity behavior





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

Length: 6824 Date: 20240511 Time: 090453     sap01-206 ( 68 ms )