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.51 →
ABAP CDS in ABAP Release 7.51
Client Handling
The new annotation @ClientHandling specifies the client handling of
CDS views and
CDS table functions. It replaces the annotation @ClientDependent and makes it obsolete.
Expressions and Functions
The following enhancements have been implemented:
The following changes have been made:
Cross Join
As well as an inner and outer join, it is now possible to use a
cross join in a SELECT statement.
CDS Associations
The following changes have been made:
Session Variables
When a CDS view is accessed
using ABAP SQL, it is possible to access the new session variable $session.system_date
in which the values of the system field sy-datum are available.
CDS DDIC-Based View Extensions
The statement EXTEND VIEW can now be used to extend the following CDS views too:
For enhancements of the GROUP-BY clause and UNION
clauses, the existing CDS view must contain the new annotation array AbapCatalog.viewEnhancementCategory[
] with suitable values. The value #NONE of this annotation array can be used to prevent any enhancements being made to a CDS view using CDS view enhancements.
Annotations
The following changes have been made:
The new view annotation AbapCatalog.preserveKey can be used to override the default behavior of the addition KEY for defining key fields of a CDS view. If the annotation is specified with the value true, the key fields defined using KEY are also used for the associated CDS database view.
For each element annotation that is not part of an annotation array, the special value null can be specified (without quotation marks). This means that the annotations are ignored in the evaluation with class CL_DD_DDL_ANNOTATION_SERVICE by default.
Metadata Extensions
Metadata extensions are new CDS objects that allow CDS annotations for a CDS entity to be created and transported separately from their DDL source code. Metadata extensions are included by default in the evaluation of annotations with the class CL_DD_DDL_ANNOTATION_SERVICE.
Metadata extensions are created using the DDL statement
ANNOTATE VIEW. Each metadata extension is linked to a layer, such as a branch, customer, or partner, which determines the priority.
Access Control
The following enhancements have been implemented in CDS access control:
Key Fields
The following changes have been made: