CDS OVERVIEW
Comprehensive Discussion of Core Data Services (CDS) Views
This document synthesizes information regarding Core Data Services (CDS) Views, drawing upon the provided sources and organized by the topics discussed.
I. Introduction and Definition: CDS Stands For
Core Data Services (CDS) fundamentally represent a new approach to data modeling, departing from older methods.
- Definition: CDS stands for Core Data Services.
- Paradigm Shift: CDS is completely based on a top down approach. This is synonymous with the code to data Paradigm, recognized as one of the important features of the Hana database.
- Code Push Down: CDS views follow the crucial concept of code push down, similar to Application Managed Database Procedures (AMDP). This principle moves processing logic closer to the database layer.
II. Programming Approach
The programming approach associated with CDS Views is central to their definition and efficiency:
- Core Paradigms: CDS utilizes the top down approach and code to data Paradigm.
- Execution Location: CDS view execution takes place at the Hana database level. This contrasts with older Data Dictionary (DDIC) view consumption, which takes place at the application server level.
- HANA Optimization: Execution at the Hana DB level enables developers to leverage the full potential of the Hana database. All calculations are performed directly at the Hana DB level. HANA is recommended because it is the most powerful effective database for real-time data processing.
- Development Tools: CDS views can only be created on Eclipse or Hana Studio.
- ABAP Skill Level: A developer does not need to be "Pro in ABAP programming" to create CDS views; a basic idea of ABAP is considered sufficient. The concept is noted as new to ABAPers also.
III. Technical Structure and Extensions
CDS is defined as an extension of open SQL in ABAP. This extension enhances standard SQL capabilities across several areas:
- DDL (Data Definition Language): The DDL has been extended.
- DQL (Data Query Language): The DQL has been extended.
- DEL (Data Expression Language): The Data Expression Language has been extended.
- DCL (Data Control Language): The Data Control Language has also been extended.
IV. Key Features and Characteristics
Semantically Rich Data Models
- Definition: CDS views are characterized as semantically rich data models in SAP S/4HANA. This feature contributes to the overall power of the CDS view.
- Annotations: This richness is achieved because developers can use annotations in the CDS view definition. These annotations, even smaller ones, in turn drive the functionality.
Execution and Database Requirements
- Execution Level: Execution takes place at the Hana database level, allowing all calculations to be performed directly at the Hana DB label.
- Database Requirement: While creation of CDS views is possible even if the company is not working on Hana DB, it is recommended to use the Hana database. Without HANA, one might not be able to utilize the high performance or complete efficiency or its full potential.
Functional Capabilities
CDS views possess enhanced functional capabilities compared to older structures:
- Advanced Calculations: CDS views can easily perform calculations, aggregations, grouping, etc..
- Join and Union Support: CDS views have support of vast number of joints and unions also.
- Nested Views: CDS views support the concept of nested views (view on a view).
- Result Output: CDS views always returns the single result set.
V. Comparison with AMDP
CDS Views are frequently compared to Application Managed Database Procedures (AMDP):
- Shared Concept (Code Push Down): CDS views follow the concept of code push down, similar to AMDP. Both adhere to the top down approach and code to data Paradigm.
- Result Set Difference: This is the big difference: CDS views always returns the single result set, whereas AMDP can return multiple result set also, corresponding to multiple internal tables.
VI. CDS Views vs. DDIC Views
The sources detail extensive reasons why CDS views are needed over traditional Data Dictionary (DDIC) views:
Feature | DDIC Views | CDS Views |
---|---|---|
Functionality | Cannot perform calculations, aggregations, grouping, etc.. | Can easily perform calculations, aggregations, grouping, etc.. |
Join Support | Supports a limited number of joints (mainly inner joins). | Has support of vast number of joints and unions also. |
Nested Views | Does not support the concept of nested views (view on a view). | Supports the concept of nested views (view on a view). |
Consumption/Execution | Consumption takes place at application server label. | Execution takes place at Hana database level. |
Creation Tools | Created from transaction code SE11. | Cannot be created from SE11; can only be created on Eclipse or Hana Studio. |
CDS views are described as highly useful in nature due to these significant advantages over DDIC views.
Comments
Post a Comment