SAP NEWS-756-ABAP CDS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS in ABAP Release 7.56
ITOC

ABAP_MODIFICATION_NN CDS Abstract Entity Extensions

The new statement EXTEND ABSTRACT ENTITY of the DDL of ABAP CDS makes it possible to add new elements to existing CDS abstract entities by using CDS abstract entity extensions.

ABAP_MODIFICATION_NN CDS Abstract Entity, To-Parent Association

In CDS abstract entities , it is now possible to define to-parent associations without ON condition. The ON condition can be left out if the association target is also a CDS abstract entity.

ABAP_MODIFICATION_NN CDS Hierarchy, Caching Policy

A hierarchy definition DEFINE HIERARCHY can now use the new addition CACHE ON$|OFF$|FORCE to specify the caching policy for a generated hierarchy.

ABAP_MODIFICATION_NN Using CDS-Managed DDIC Views is Obsolete

For each ABAP_CDS_V1_VIEW , a ABAP_CDS_MNG_VIEW is created in ABAP Dictionary upon activation. Using this ABAP_CDS_MNG_VIEW , for example for typing or for accessing the CDS entity in question, is obsolete from now on. The reason is the release of a new type of CDS entity, the CDS view entity, which will replace ABAP_CDS_V1_VIEWS in the future. CDS view entities do not have a ABAP_CDS_MNG_VIEW attached and in case of a migration from ABAP_CDS_V1_VIEW to ABAP_CDS_V2_VIEW , each usage of a ABAP_CDS_MNG_VIEW leads to a syntax error.

ABAP_MODIFICATION_NN CDS View Entity, Reusing Expressions

In CDS view entities, it is now possible to reuse expressions defined in the SELECT list in other operand positions of the same CDS view entity by using the syntax $projection.reuse_exp.

ABAP_MODIFICATION_NN CDS View Entity, UNION Clause

UNION clauses are now supported in CDS view entities. There are a few differences to UNION clauses in CDS DDIC-based views. The most important difference is that branches of union clauses can be nested within each other in CDS view entities.

ABAP_MODIFICATION_NN CDS View Entity, DISTINCT

The addition DISTINCT is now available for SELECT statements in CDS view entities.

ABAP_MODIFICATION_NN CDS View Entity, New Set Operators

In CDS view entities, two new set operators are available:
EXCEPT
INTERSECT

ABAP_MODIFICATION_NN CDS View Entity, New Conversion Functions

Two new conversion functions are available in CDS view entities:
GET_NUMERIC_VALUE
CURR_TO_DECFLOAT_AMOUNT

ABAP_MODIFICATION_NN CDS View Entity, Typed Literals

Typed literals are now available for CDS view entities. Typed literals allow an explicit type declaration and they are available for many built-in ABAP Dictionary data types.

ABAP_MODIFICATION_NN CDS View Entity, Handling of Amounts and Quantities

In CDS view entities, special handling for CDS amount fields and CDS quantity fields has been implemented. It differs from the handling of amount fields and quantity fields in DDIC, for example, more data types are possible and the currency key/unit key reference is considered in expressions.
Moreover, a new type is available: the CDS calculated quantity. A CDS calculated quantity is the result type of a calculation using amount and/or quantity fields.

ABAP_MODIFICATION_NN CDS View Entity, Extended Expression Matrix

In CDS view entities, the expression matrix has been extended:
In the WHERE clause, arithmetic expressions and case expressions are supported as operands.
In the HAVING clause, arithmetic expressions and case expressions are supported as operands.
In a searched case expression, arithmetic expressions and case expressions are supported as operands.

ABAP_MODIFICATION_NN CDS Projection View, REDEFINE ASSOCIATION

In CDS projection views, it is now possible to redefine the CDS associations from the projected entity in the header part. This is done using the keyword REDEFINE ASSOCIATION. Redefinition can include a new filter, alias name, and redirection to a new association target, which must also be a CDS projection view, thus moving the complete data model to the projection layer.

ABAP_MODIFICATION_NN CDS Projection View, PROVIDER CONTRACT

It is now possible to specify a provider contract for CDS projection views using the keyword PROVIDER CONTRACT. The provider contract specifies in which scenario a CDS projection view is used, and the scenario in turn determines in which runtime the view is executed and which features are available.
In this release, there is only one provider contract option available: TRANSACTIONAL_QUERY.


ABAP_MODIFICATION_NN ABAP Program for Migration Analysis

The following documented ABAP program is now available for evaluating whether a migration from a ABAP_CDS_V1_VIEW to a CDS view entity is possible:
RUTDDLS_MIGRATION_CANDIDATES.

ABAP_MODIFICATION_NN Migration Tool for CDS Views

The following documented ABAP program is now available for migrating CDS DDIC-based views to CDS view entities:
RUTDDLSV2MIGRATION.

ABAP_MODIFICATION_NN New Reference Type for Annotations

A new reference type for annotations is available:
LocalDefinitionRef

ABAP_MODIFICATION_NN New AbapCatalog Annotations

The following new AbapCatalog.extensibility annotations have been released:
AbapCatalog.extensibility.allowNewdataSources
AbapCatalog.extensibility.dataSources
AbapCatalog.extensibility.elementSuffix
AbapCatalog.extensibility.extensible
AbapCatalog.extensibility.quota.maximumBytes
AbapCatalog.extensibility.quota.maximumFields

ABAP_MODIFICATION_NN New CDS System Entities to Generate Series

The following new CDS system table functions are available:
... SERIES_GENERATE_DATE( step = ... from_value = ... to_value = ... ) ...
... SERIES_GENERATE_INTEGER( step = ... from_value = ... to_value = ... ) ...
... SERIES_GENERATE_TIME( step = ... from_value = ... to_value = ... ) ...
... SERIES_GENERATE_TIMESTAMP( step = ... from_value = ... to_value = ... ) ...