SAP NEWS-763-ABAP CDS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS in ABAP Release 7.63
ITOC

ABAP_MODIFICATION_NN 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 properties of a data element. PRESERVING TYPE suppresses the syntax warning that handles casts of identical technical types.

ABAP_MODIFICATION_NN CDS Associations

The following changes have been made:
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.

ABAP_MODIFICATION_NN 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.

ABAP_MODIFICATION_NN Key Fields

The following changes have been made:
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 ABAP_CDS_MNG_VIEW .