Ansicht
Dokumentation
ABENNEWS-763-ABAP_CDS - NEWS-763-ABAP CDS
Vendor Master (General Section) Vendor Master (General Section)This documentation is copyright by SAP AG.
in Release 7.63
Expressions and Functions
The following enhancements have been implemented:
- In a CAST expression, operands of the types SSTRING can now be cast to types other than themselves and back. Here, the type SSTRING behaves like the data type CHAR.
The following changes have been made:
- In
CAST expressions to data elements, the restriction no longer applies that the data type,
the length, and the number of decimal places of operand and target data type must match exactly. This
restriction can now be applied as an optional restriction using the new addition
PRESERVING TYPE. This addition specifies explicitly that casts are to be applied to the semantic
attributes of a data element. PRESERVING TYPE suppresses the syntax warning that handles casts of identical technical types.
CDS Associations
- WITH DEFAULT FILTER can be used to specify a default filter condition for a CDS association. This condition is used as a filter condition in a path expression if no condition is specified for the CDS association here.
- CDS associations can now be exposed for union sets formed with UNION. In this case, special rules apply.
- In a path expression,
*: can be used to declare a CDS association as a non-unique CDS association explicitly.
CDS View Extensions
The statement EXTEND VIEW can now be used to extend the following CDS views too:
- CDS views with aggregate expressions and a GROUP-BY clause
- CDS views with a UNION clause for union sets
For extensions 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 extensions.
Key Fields
- The key fields of a CDS view that are defined with KEY must now, like the key fields of a CDS table function, be placed without gaps at the start of the SELECT list.
- 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-managed DDIC view.
ABAP Short Reference BAL Application Log Documentation
This documentation is copyright by SAP AG.
Length: 5597 Date: 20240424 Time: 030509 sap01-206 ( 64 ms )