SAP NEWS-757-ABAP CDS



Get Example source ABAP code based on a different SAP table
  



ABAP_CDS in ABAP Release 7.57
ITOC

ABAP_MODIFICATION_NN CDS View Entity, Table Buffering

CDS entity buffering was enhanced: View on view buffering is now supported, under the precondition that the CDS view entity used as data source meets certain requirements.

ABAP_MODIFICATION_NN CDS View Entity, CASE ELSE NULL

In CDS view entities, the addition ELSE NULL is available in simple and complex case distinctions. It defines the null value as return value of the ELSE branch.

ABAP_MODIFICATION_NN CDS View Entity, Extended Cast Matrix

New casting options have been added in CDS view entities.
Casting from data type FLTP into data types DEC, CURR , QUAN, INT1, INT2, INT4, INT8, DECFLOAT16, and DECFLOAT34 is now possible.
Casting from data type SSTRING into data types DEC, CURR, QUAN, INT1, INT2, INT4, INT8, DECFLOAT16, and DECFLOAT34 is now possible.
Casting from data type CHAR into data types DEC, CURR , QUAN, INT1, INT2, INT4, INT8, DECFLOAT16, and DECFLOAT34 is now possible.
Casting from data type DATS into data types DEC, CURR , QUAN, INT1, INT2, INT4, INT8, DECFLOAT16, and DECFLOAT34 is now possible.
Casting from data type TIMS into data types DEC, CURR , QUAN, INT1, INT2, INT4, INT8, DECFLOAT16, and DECFLOAT34 is now possible.
Casting from data types DECFLOAT16 and DECFLOAT34 into data type CHAR is now possible.

ABAP_MODIFICATION_NN CDS View Entity, Table Buffering

Table buffering can be defined for CDS view entities now:
Table buffering can be enabled and disabled with the annotation @AbapCatalog.entityBuffer.definitionAllowed: true|false
The buffering type can be specified with a CDS entity buffer defined by DEFINE VIW ENTITY BUFFER ON cds_view_entity ...
Table buffering can be defined differently for the layers core, localization, industry, partner and customer.

ABAP_MODIFICATION_NN CDS View Entity, SUBSTRING Function

In CDS view entities, the SUBSTRING function has been enhanced. It now accepts not only literals, but also fields, parameters, expressions, and built-in functions as arguments pos and len.

ABAP_MODIFICATION_NN CDS View Entity, LEFT and RIGHT

In CDS view entities, the functions LEFT and RIGHT have been enhanced. They now accept literals, fields, parameters, expressions, and built-in functions as argument len .

ABAP_MODIFICATION_NN CDS View Entity, Application Session Variables

In CDS view entities, two new application session variables are available:
bs_system_id
bs_zone_id

ABAP_MODIFICATION_NN ABAP Program That Lists Usages of CDS-Managed DDIC Views

Using CDS-managed DDIC views has been declared obsolete. The following ABAP program lists all repository objects that use CDS-managed DDIC views:
RUT_WHERE_USE_SQLVIEW.

ABAP_MODIFICATION_NN CDS Analytical Projection Views

CDS analytical projection views for modelling analytical queries are available. A CDS analytical projection view is defined using DEFINE TRANSIENT VIEW ENTITY AS PROJECTION ON. The value for the provider contract must be set to ANALYTICAL_QUERY.

ABAP_MODIFICATION_NN CDS Transactional Interface

A new type of CDS projection view is available: the CDS transactional interface. CDS transactional interfaces serve as stable public interface layer in a CDS data model. They are typically used in the context of the ABAP RESTful Application Programming Model to provide the basis for a RAP BO interface. A CDS transactional interface view is defined using DEFINE VIEW ENTITY AS PROJECTION ON. The value for the provider contract must be set to TRANSACTIONAL_INTERFACE.

ABAP_MODIFICATION_NN Comparisons with CDS Amount Fields and CDS Quantity Fields

Special handling for CDS amount fields and CDS quantity fields for comparisons in CDS view entities has been implemented.

ABAP_MODIFICATION_NN Support of Input Parameters of Type abap.string

Data type abap.string is now supported for input parameters in the parameter list of a CDS view entity and in the parameter list of a CDS table function.
Data type abap.string is now supported when binding actual parameters to the input parameters of a CDS view entity, if a CDS table function is used as data source after FROM.

ABAP_MODIFICATION_NN CDS Custom Entity Extensions

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

ABAP_MODIFICATION_NN CDS DDIC-Based Views Are Obsolete

ABAP_CDS_V1_VIEWS , defined using the statement DEFINE VIEW, are obsolete. When creating new data models, ABAP_CDS_V2_VIEWS , defined using DEFINE VIEW ENTITY, should be used instead.