Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Processing External Data →  ABAP Database Access →  ABAP-Managed Database Objects 

Overview of ABAP-Managed Database Objects

ABAP-managed database objects can be the following:

  • The name of the database table on the database matches the name of the table in ABAP Dictionary.
  • Together, the key fields defined in ABAP Dictionary are the primary key of the database table on the database.
  • The indexes defined in ABAP Dictionary are created on the database.
  • The order of the fields in ABAP Dictionary does not need to match the order and on the database.
  • An instance of a classic database view defined in ABAP Dictionary.
  • The database object of a database view is implemented using the platform-specific database statement CREATE VIEW, which is itself based on the definition of the database view in ABAP Dictionary.
  • The name of the view on the database matches the name of the table in ABAP Dictionary.
  • The key fields of a database view defined in ABAP Dictionary are ignored on the database.
  • Currently, the database object of a CDS view is defined using its CDS database view. The name of this view is specified in the definition of the CDS view using the annotation @AbapCatalog.sqlViewName.
  • The same applies as to classic database views, however (depending on the database platform) instances of CDS views with input parameters can also be created as database functions using CREATE FUNCTION, as is currently the case on SAP HANA databases.
  • The name of an AMDP-managed database procedure is CLASS=>METH, where CLASS is the AMDP class and METH is the AMDP method.
  • The parameter interface of an AMDP-managed database procedure is generated as a platform-specific interface from the parameter interface of the AMDP method.
  • Instances of CDS hierarchies are created as special views on the database, which access a built-in hierarchy function on the database.
  • The name of the view on the database matches the name of the CDS hierarchy.
  • Instances of ABAP-specific session variables
  • On other database platforms, these ABAP-specific session variables exist only when CDS views are accessed using ABAP SQL.
  • Instances of dependency rules defined in ABAP Dictionary on the SAP HANA database.

Alongside the database objects themselves, the definitions of these objects in the AS ABAP framework cover further attributes described using metadata that are not known on the database. The most important of these attributes are:

  • Use as data types
  • The database tables and database views in ABAP Dictionary can be used in ABAP Dictionary itself and as structured types in ABAP programs.
In ABAP Dictionary, the data types of the components of the database tables and views are based on built-in dictionary types. These types are a platform-independent wrapper of the actual database types and have ABAP-specific properties.
  • Client dependency
  • Table buffering
  • In ABAP Dictionary, it is possible to define whether table buffering takes place for database tables and database views and the method used.
  • Extensibility
  • Foreign key dependencies
  • Logging
  • Logging can be enabled in ABAP Dictionary for database tables.
  • Access control
  • Reference fields
  • For table fields or view fields with the built-in data types CURR and QUAN, reference fields of the types CUKY and UNIT must be defined in ABAP Dictionary.
  • Translatable texts
  • For database tables and database views, translatable short texts and documentation can be created in ABAP Dictionary.

In AS ABAP, the database objects managed by ABAP Dictionary, ABAP CDS, and AMDP are represented by repository objects that have a package interface to the Change and Transport System (CTS). The database objects themselves are created and modified using internal DDL statements and the AS ABAP database interface.

The ABAP Dictionary, ABAP CDS, and AMDP frameworks, together with the Change and Transport System (CTS), ensure that complete and consistent ABAP-managed database objects are available to be accessed from AS ABAP.

Other versions: 7.31 | 7.40 | 7.54


Note

The overview above does not contain any database objects created by AS ABAP on the database for purely technical reasons and which should therefore never be accessed. Examples of these are database objects in the AMDP framework that are part of the framework itself, unlike AMDP procedures and AMDP functions.