AS ABAP Release 758, ©Copyright 2024 SAP SE. All rights reserved.
ABAP - Keyword Documentation → ABAP - ABAP Release News → News for ABAP Release 7.5x → News for ABAP Release 7.56 →
ABAP CDS in ABAP Release 7.56
CDS Abstract Entity Extensions
The new statement EXTEND ABSTRACT ENTITY of the DDL of ABAP CDS makes it possible to add new elements to existing
CDS abstract entities by using
CDS abstract entity extensions.
CDS Abstract Entity, To-Parent Association
In CDS abstract entities, it is now possible to define
to-parent associations without ON
condition. The ON condition can be left out if the association target is also a CDS abstract entity.
CDS Hierarchy, Caching Policy
A hierarchy definition DEFINE HIERARCHY can now use the new addition CACHE ON|OFF|FORCE to specify the caching policy for a generated hierarchy.
Using CDS-Managed DDIC Views is Obsolete
For each CDS DDIC-based view (obsolete), a
CDS-managed DDIC view (obsolete) is created in ABAP Dictionary upon activation. Using this
CDS-managed DDIC view (obsolete), for example for typing or for accessing the CDS entity in question, is
obsolete from now on. The reason is the release of a new type of CDS entity, the
CDS view entity, which will replace
CDS DDIC-based views (obsolete) in the future. CDS view entities do not have a
CDS-managed DDIC view (obsolete) attached and in case of a migration from CDS DDIC-based view (obsolete) to CDS view entity, each usage of a
CDS-managed DDIC view (obsolete) leads to a syntax error.
CDS View Entity, Reusing Expressions
In CDS view entities, it
is now possible to reuse expressions defined in the SELECT list in other operand positions of the same CDS view entity by using the syntax $projection.reuse_exp.
CDS View Entity, UNION Clause
UNION clauses are now supported in
CDS view entities. There are a few differences to UNION clauses in
CDS DDIC-based views. The
most important difference is that branches of union clauses can be nested within each other in CDS view entities.
CDS View Entity, DISTINCT
The addition DISTINCT is now available for SELECT statements in
CDS view entities.
CDS View Entity, New Set Operators
In CDS view entities, two new set operators are available:
CDS View Entity, New Conversion Functions
Two new conversion functions are available in CDS view entities:
CDS View Entity, Typed Literals
Typed literals are now available for
CDS view entities. Typed
literals allow an explicit type declaration and they are available for many built-in ABAP Dictionary data types.
CDS View Entity, Handling of Amounts and Quantities
In CDS view entities, special handling for CDS amount fields and CDS quantity fields has been implemented. It differs from the handling of amount fields and quantity fields in DDIC, for example, more data types are possible and the currency key/unit key reference is considered in expressions.
Moreover, a new type is available: the CDS calculated
quantity. A CDS calculated quantity is the result type of a calculation using amount and/or quantity fields.
CDS View Entity, Extended Expression Matrix
In CDS view entities, the expression matrix has been extended:
CDS Projection View, REDEFINE ASSOCIATION
In CDS projection views, it is now possible to redefine the CDS associations from the projected entity in the header part. This is done using the keyword REDEFINE ASSOCIATION. Redefinition can include a new
filter, alias name, and redirection to a new association target, which must also be a CDS projection view, thus moving the complete data model to the projection layer.
CDS Projection View, PROVIDER CONTRACT
It is now possible to specify a provider contract for CDS projection views using the keyword PROVIDER CONTRACT. The provider contract specifies in which scenario a CDS projection view is used, and the scenario in turn determines in which runtime the view is executed and which features are available.
In this release, there is only one provider contract option available: TRANSACTIONAL_QUERY.
ABAP Program for Migration Analysis
The following documented ABAP program is now available for evaluating whether a migration from a CDS DDIC-based view (obsolete) to a CDS view entity is possible:
RUTDDLS_MIGRATION_CANDIDATES.
Migration Tool for CDS Views
The following documented ABAP program is now available for migrating CDS DDIC-based views to CDS view entities:
RUTDDLSV2MIGRATION.
New Reference Type for Annotations
A new reference type for annotations is available:
New AbapCatalog Annotations
The following new AbapCatalog.extensibility annotations have been released:
New CDS System Entities to Generate Series
The following new CDS system table functions are available: