Table of Content:
After the evolution of SAP HANA, the technology within the SAP is changing rapidly and there has been a paradigm shift in the way business applications are developed at SAP. The rule of thumb is simple: “Do as much as you can in the database to get the best performance”. When I started learning about ABAP CDS views few months back, I had to search many different blogs and pages written by the experts. Now, I thought of presenting a blog series for the beginners like me who are keen to learn ABAP CDS views. Let’s Start !!
IntroductionData models are a cornerstone of application development. They provide a standardized method for defining and formatting database contents consistently across systems, enabling different applications to share the same data — reducing development costs, speeding time to market, and improving quality and performance. Those familiar with application development in the ABAP world are no strangers to the traditional data modeling tools included with SAP NetWeaver Application Server (SAP NetWeaver AS) ABAP — in particular, the ABAP data dictionary (DDIC), which stores definitions of objects, such as database tables and views, that can be used in ABAP programs. And then along came SAP HANA and the new paradigm of pushing down data-intensive logic to the database layer. The concept of Virtual Data Model (VDM) was introduced with HANA Live few years ago, SAP HANA Live is a Virtual data model on top of suite tables which uses native SAP HANA SQL views called Calculation views for real-time operational Reporting. This came with certain challenges:
Now, some questions comes in mind:
Maybe, if we didn’t have Core Data Services (CDS). “Core Data Services to build design-time data-persistence models”To take advantage of SAP HANA for application development, SAP introduced a new data modeling infrastructure known as Core data services. With CDS, data models are defined and consumed on database server rather than on application server. CDS also offers capabilities beyond the traditional data modeling tools, including support for conceptual modeling and relationship definitions, built-in functions, and extensions. Originally, CDS was available only in the design-time and runtime environment of SAP HANA. Now, the CDS concept is also fully implemented in SAP NetWeaver AS ABAP, enabling developers to work in the ABAP layer with ABAP development tools while the code execution is pushed down to the database. CDS simplifies and harmonizes the way you define and consume your data models, regardless of the consumption technology. Technically, it is an enhancement of SQL which provides you with a data definition language (DDL) for defining semantically rich database tables/views (CDS entities) and user-defined types in the database. Some enhancements include:
CDS is supported natively in both the ABAP and the HANA Platforms ! In fact, CDS is (in my opinion) the most ambitious and exciting SAP development in the area of data modeling in recent years. You can finally define and consume your data models in the same way (syntax, behaviour, etc.) regardless of the SAP technology platform (ABAP or HANA). Unwantedly the phrase: “One Data Model to rule them all” always comes to mind when I think of CDS.
Besides a great blog by Horst Keller, describes the two different flavors of CDS. Core Data Services – One Concept, Two Flavors After going through the above blog, we came to know that CDS can be written in two different flavours and uses the “Code Pushdown” techniques introduced with NW AS ABAP 7.4 SP5 where SAP added new possibility for ABAP developers to leverage HANA capabilities. In code pushdown technique all calculations are performed on database layer instead of application layer, which results in fast retrieval of data, resulting cutback of application execution.
Architecture overviewThe CDS architecture looks something as shown below:
CDS ReleasesBelow is an overview of changes in CDS functionalities with the ABAP specific releases. For more details see – Feature Matrix.
Availability of CDS in SAP PlatformsThe Core Data services are available in below mentioned SAP Platforms:
Motivation behind Core Data Services
CDS entities and their metadata are extensible and optimally integrated into the ABAP Data Dictionary and the ABAP language.
To keep the focus on core objective (Core Data Services) of this blog, I tried to make it as small as possible. Suggestions and questions are welcomed !! Follow:-
|
|
|
來(lái)自: 昵稱(chēng)52909488 > 《文件夾1》