Ansicht
Dokumentation
ABENCDS_DDIC_ENTITY - CDS DDIC ENTITY
ROGBILLS - Synchronize billing plans ABAP Short ReferenceThis documentation is copyright by SAP AG.
- DDIC-Based Entities
A CDS DDIC-based entity is a CDS entity for which a CDS-managed DDIC view is created in the ABAP Dictionary alongside the CDS entity upon activation. Therefore, DDIC-based entities are not exclusively CDS entities, but also DDIC artefacts (see image below). There is only one kind of DDIC-based entity available, namely .
IMAGE @@ABDOC_DDIC_VIEW_2.png@@450@@140@@A is defined using the statement DEFINE VIEW. This kind of CDS view was first released with release and it was for many years the only available kind of CDS view.
Since release , CDS view entities are available. They are defined using the statement DEFINE VIEW ENTITY. They have evolved from , serve the same purpose and have the same structure as their predecessor. But they offer several advantages over the "classic" :
- No additional DDIC view is created upon activation
- Improved performance during view activation
- Optimization and simplification of syntax
- Stricter syntax checks indicate problematic situations more explicitly (for example, annotation checks)
A complete and exhaustive list of new features, improvements, and differences is provided in the following blog series: CDS view entities are feature complete. Overview of new features, improvements, and differences.
For these reasons, it is recommended that CDS view entities are created instead of when a new CDS view is required. are still supported to ensure downward compatibility.
IMAGE @@ABDOC_V1_V2.png@@524@@128@@Migration
The documented ABAP program RUTDDLS_MIGRATION_CANDIDATES can be used to evaluate whether a migration from a CDS DDIC-based view to a CDS view entity is possible. This can be done, for example, as part of a manual migration.
The documented ABAP program RUTDDLSV2MIGRATION automates many steps required for migrating CDS DDIC-based views to CDS view entities.
Details on migration and the available tools are described in the following blog post: A new generation of CDS views: how to migrate your CDS views to CDS view entities,
Example
- The CDS view DEMO_CDS_SCARR_SPFLI shown below is a .
- The second view shown below, DEMO_CDS_SCARR_SPFLI_2, is a CDS view entity and it uses the new syntax DEFINE VIEW ENTITY.
- The syntax differs slightly: the second view does not have the annotation @AbapCatalog.sqlViewName, because it doesn't have any DDIC view (the SQL view of the database is derived directly from the definition). Moreover, name lists are not supported and the element names are specified with the keyword AS instead.
- The program DEMO_CDS_DDIC_VS_VIEW_ENTITY uses SELECT to access both views. The result is exactly the same.
CL_GUI_FRONTEND_SERVICES - Frontend Services General Data in Customer Master
This documentation is copyright by SAP AG.
Length: 5190 Date: 20240419 Time: 172151 sap01-206 ( 78 ms )