SAP NEWS-765-ABAP CDS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS in ABAP Release 7.65
ITOC

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

ABAP_MODIFICATION_NN Annotations

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.

ABAP_MODIFICATION_NN Cross Join

As well as an inner and outer join, it is now possible to use a cross join in a SELECT statement.

ABAP_MODIFICATION_NN Expressions and Functions

The following enhancements have been implemented:
Aggregate expressions can now be used as operands in a CAST expression.
In a CAST expression, the data types CHAR, SSTR, and NUMC can now be cast to ACCP, and the other way round.
The following additional string functions are now supported: UPPER and LOWER
The following additional date/time functions are now supported: ABAP_SYSTEM_TIMEZONE, ABAP_USER_TIMEZONE, TSTMP_TO_DATS, TSTMP_TO_TIMS, TSTMP_TO_DST, and DATS_TIMS_TO_TSTMP
An addition AS dtype can now be specified for the aggregate expression AVG to determine the data type of the return value.
A new built-in conversion function FLTP_TO_DEC can be used to convert arguments of type FLTP to packed numbers.
Built-in functions can now be specified on the right side of a cds_cond condition of a WHERE condition, an ON condition, a filter condition , or a complex case distinction .
In cds_cond conditions, fields of data sources of the type ACCP can now be compared with fields of the same type, and with literals of the type NUMC.
A literal of a corresponding value is not handled as a field of type INT8. An exception to this are literals in the definition of CDS associations.

ABAP_MODIFICATION_NN Access Control

The following enhancements have been implemented in CDS access control:
As well as conditional access rules, there are now also full access rules and inherited access rules.
There is a new operator ?= for access conditions, which checks not only for a specified value but also the initial value or the null value.
A new user condition compares the value of an element of a CDS entity with the current user name.