SAP CDS

Core Data Services (CDS) is an infrastructure that can be used by database developers to create the underlying (persistent) data model which the application services expose to UI clients.

The database developer defines the data-persistence and analytic models that are used to expose data in response to client requests via HTTP. With CDS, you can define a persistence model that includes objects such as tables, views, and structured types; the database objects specify what data to make accessible for consumption by applications and how. This guide takes you through the tasks required to create CDS documents that define the objects most often used in a data persistence model, for example:

  • Create tables (entities)
  • Create SQL views
  • Create associations between entities or views
  • Create user-defined structured types

The concept of CDS views is the same when comes to ABAP or HANA. The major difference lies in implementation of these views.

At a very high level , in ABAP the CDS views are stored in the Application layer , but in HANA they are stored directly on the HANA DB – XS layer.

Even though the concept is the same the codes are not interchangeable. Meaning ABAP CDS code cannot used in HANA environment as a copy paste.

AreaABAP CDSHANA CDS
Definition A CDS view is defined for existing database tables and views, or for other CDS views in ABAP Dictionary, using the ABAP CDS statement DEFINE VIEW. A CDS view serves to define the structure of an SQL view and represents a projection onto one or several Dictionary tables or Dictionary views.Use SAP HANA Core Data Services (CDS) to build design-time, data-persistence models in SAP HANA Extended Application Services.
Code ManagementSAP Application LayerHANA Database XS Layer
SQLOpen SQLNative SQL
UsageViewsModels

Reference

SAP Reference : CDS Views

https://help.sap.com/docs/SAP_HANA_PLATFORM/09b6623836854766b682356393c6c416/0b1eb07d74ec4f91947ff4cc4f557429.html

SAP Reference : ABAP Views

https://help.sap.com/doc/saphelp_nw75/7.5.5/en-US/7c/078765ec6d4e6b88b71bdaf8a2bd9f/content.htm?no_cache=true#:~:text=A%20CDS%20view%20is%20defined,Dictionary%20tables%20or%20Dictionary%20views.

Technical Understanding of ABAP layer , CDS Views – ABAP , CDS – HANA

https://community.sap.com/t5/technology-blogs-by-sap/cds-one-concept-two-flavors/ba-p/13168795#comment-344410

Other Reference

Understanding different CDS Views

Categories: ABAPHANASAP

0 Comments

Leave a Reply

Avatar placeholder

Your email address will not be published. Required fields are marked *