Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

What is the difference Between ABAP Views and ABAP CDS Views?

former_member604901
Participant

Hello I am new to ABAP, I just stumble across this term CDS View and curious to know the difference between the two. I know there are basically 4 Types of views in ABAP.

1 ACCEPTED SOLUTION

rudramani
Participant

ABAP CDS Views and ABAP views are the same at a very basic level. If you create a CDS View with just field names of tables, then it will behave just like an ABAP View.
Apart from basic view creation, CDS have other benefits. Some are:

1. Annotation via which you can add extra properties to any field, these annotations will be reflected on UI.

2. Annotation with BOPF via which you can directly expose your CDS as a service whithout any need of OData and separate CRUD operation creation

3. Field level data manipulation via which you can add some calculations there itself

SAP has provided several documentations regarding the same, go through them for better understanding.

3 REPLIES 3

Sandra_Rossi
Active Contributor

They are described here: ABAP CDS Views and here. Many blog posts too. Note: you edit them via Eclipse only.

rudramani
Participant

ABAP CDS Views and ABAP views are the same at a very basic level. If you create a CDS View with just field names of tables, then it will behave just like an ABAP View.
Apart from basic view creation, CDS have other benefits. Some are:

1. Annotation via which you can add extra properties to any field, these annotations will be reflected on UI.

2. Annotation with BOPF via which you can directly expose your CDS as a service whithout any need of OData and separate CRUD operation creation

3. Field level data manipulation via which you can add some calculations there itself

SAP has provided several documentations regarding the same, go through them for better understanding.

While Rudra has already provided quite a great answer, however following are also points to remember
  1. SAP ABAP CDS views are part of SAP’s new programming model. The new programming model’s core idea is to push the logic from the application server to the client-side and the database. And CDS views are part of pushing the logic to the database and the client-side as well.
  2. SAP calls pushing the logic from the application server to the database ‘code-to-data’ or ‘code-pushdown’ in the context of the new programming model. SAP CDS views execute the ‘code-to-data’ or ‘code-pushdown’.
  3. CDS views pushing the logic to the database because they take most of the logic from an ABAP application and execute it on the database instead of on the application server.
  4. You can also make use of ABAP Table Functions in ABAP CDS Views(can be used as the data source in Open SQL read statements), BOPF(locking, bufferring), Access Control(Access), Metadata Extensions(UI).

Regards,

Kunal Jauhari