SAP NEWS-740 SP08-ABAP CDS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS in ABAP Release 7.40, SP08
ITOC

ABAP_MODIFICATION_NN CDS Annotations

The following enhancements have been introduced for CDS annotations:
Annotations in a SELECT list of a CDS view can now be entered after an element. Before the name of an annotation, @ < must be written instead of @.
A new syntax with square and curly brackets makes it possible to use value lists and annotation lists as value specification after the colon of an annotation specification.
The new ABAP annotation AbapCatalog.compiler.compareFilter can be used to specify whether, in cases when a CDS association is used more than once, the filter conditions are compared for the path expressions of a view. If the filter condition has identical semantics, the associated join expression is created only once in the variant of the view on the database.

ABAP_MODIFICATION_NN CDS Views with Parameters

In the statement DEFINE VIEW, input parameters can now be defined for CDS views that can be used in operand positions in the view.
When using a CDS view with parameters in a CDS view or in AB_SQL , the input parameters must be given actual parameters; new additions are available for this in shape of parenthesized, comma-separated lists in the statements SELECT of the DDL and SELECT of AB_SQL .

ABAP_MODIFICATION_NN CDS View Extensions

The new statement EXTEND VIEW of the DDL of the ABAP CDS makes it possible to add new view fields to existing CDS views - without making changes - by using CDS view extensions.

ABAP_MODIFICATION_NN Expressions and Functions

The following enhancements have been implemented:
Division with operator / is now supported in arithmetic expressions.
The following new built-in functions have been added:
String functions CONCAT and REPLACE
Numeric functions ABS, DIV, DIVISION, FLOOR, MOD, and ROUND
The new coalesce function has been added.
In addition to simple case distinction, complex case distinction (searched case) is now also available.
The special conversion functions UNIT_CONVERSION, CURRENCY_CONVERSION, and DECIMAL_SHIFT enable unit conversions and currency conversions.

ABAP_MODIFICATION_NN Join Type for CDS Associations

The new attributes INNER and LEFT OUTER for a CDS association of a path expression enable to declare explicitly in which join the CDS association is performed.

ABAP_MODIFICATION_NN Path Expressions with Filter Conditions in Conditions

The new addition 1: before a filter condition of a path expression declares this condition as unique and enables the path expression to be used in a WHERE clause or HAVING clause.

ABAP_MODIFICATION_NN Checking Literals Against Fixed Values of Domains

The new syntax #domain.literal enables literal values literal of a CDS view to be checked against the fixed values of a DDIC domain.