ABAP - Keyword Documentation →  ABAP - ABAP Release News →  News for ABAP Release 7.5x →  News for ABAP Release 7.56 → 
Mail Feedback

ABAP CDS in ABAP Release 7.56


1. CDS Abstract Entity Extensions

2. CDS Abstract Entity, To-Parent Association

3. CDS Hierarchy, Caching Policy

4. Using CDS-Managed DDIC Views is Obsolete

5. CDS View Entity, Reusing Expressions

6. CDS View Entity, UNION Clause

7. CDS View Entity, DISTINCT

8. CDS View Entity, New Set Operators

9. CDS View Entity, New Conversion Functions

10. CDS View Entity, Typed Literals

11. CDS View Entity, Handling of Amounts and Quantities

12. CDS View Entity, Extended Expression Matrix

13. CDS Projection View, REDEFINE ASSOCIATION

14. CDS Projection View, PROVIDER CONTRACT

15. ABAP Program for Migration Analysis

16. Migration Tool for CDS Views

17. New Reference Type for Annotations

18. New AbapCatalog Annotations

19. New CDS System Entities to Generate Series



Modification 1  

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.



Modification 2  

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.



Modification 3  

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.



Modification 4  

Using CDS-Managed DDIC Views is Obsolete

For each CDS DDIC-based view (obsolete), a CDS-managed DDIC view (obsolete) is created in ABAP Dictionary upon activation. Using this CDS-managed DDIC view (obsolete), 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 CDS DDIC-based views (obsolete) in the future. CDS view entities do not have a CDS-managed DDIC view (obsolete) attached and in case of a migration from CDS DDIC-based view (obsolete) to CDS view entity, each usage of a CDS-managed DDIC view (obsolete) leads to a syntax error.



Modification 5  

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.



Modification 6  

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.



Modification 7  

CDS View Entity, DISTINCT

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



Modification 8  

CDS View Entity, New Set Operators

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





Modification 9  

CDS View Entity, New Conversion Functions

Two new conversion functions are available in CDS view entities:





Modification 10  

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.



Modification 11  

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.



Modification 12  

CDS View Entity, Extended Expression Matrix

In CDS view entities, the expression matrix has been extended:





Modification 13  

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.



Modification 14  

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.





Modification 15  

ABAP Program for Migration Analysis

The following documented ABAP program is now available for evaluating whether a migration from a CDS DDIC-based view (obsolete) to a CDS view entity is possible:

RUTDDLS_MIGRATION_CANDIDATES.



Modification 16  

Migration Tool for CDS Views

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

RUTDDLSV2MIGRATION.



Modification 17  

New Reference Type for Annotations

A new reference type for annotations is available:





Modification 18  

New AbapCatalog Annotations

The following new AbapCatalog.extensibility annotations have been released:





Modification 19  

New CDS System Entities to Generate Series

The following new CDS system table functions are available: