Introduction to CDS Views in SAP HANA
With the arrival of SAP HANA, data management has evolved significantly. Now, instead of processing filtered data on the ABAP server (bottom-up), the recommendation is to perform extraction, transformation, and calculation directly in the database (top-down).
Core Data Services (CDS) allow you to improve performance and optimize data queries in SAP environments. This guide will explain how to create a CDS view in SAP HANA using Eclipse and the ADT plugin.

What is a CDS View in SAP?
A CDS View in SAP is an advanced data query structure that allows you to define views directly in the database, optimizing performance and facilitating integration with other SAP modules.
Main benefits of using CDS Views in SAP HANA:
- Improves performance by running queries directly against the database.
- Reduces the load on the ABAP server.
- Allows data to be reused in multiple scenarios.
- Facilitates integration with other SAP analytical tools.
Creating the CDS using Eclipse
To create a CDS view in SAP HANA, the Eclipse development environment with ADT (ABAP Development Tools) will be used.
Step 1: Open the Creation Wizard in Eclipse
- In Eclipse, select:
- File → New → Other

2. The creation wizard will open. Write “Data Definition” in the search bar and select the corresponding object.

3. Click “Next” to continue.
Step 2: Define the CDS View
Now we'll need to provide the view name, a description, and the package we want to save it in. We'll use SAP's $TMP package, as we don't want to transport it to another environment.

We press Next and we enter the information for the transport (as long as we have not selected the SAP temporary package).

We continue pressing Next, and we choose the template we want to use to help us create.
In our case, since it is an Abap version higher than 7.57, it will be Define View Entity.

We click on Finish, and what is needed to begin creating the view is retrieved.

Also in the Eclipse project explorer.

Including logic in the CDS View
Once the view is created, the logic for retrieving the data is defined.
Since this is a simple example, we will only retrieve information from several fields in the SAP sales order header table.
We indicate the table on which we will perform the select (vbak) and the fields we want to retrieve (vbeln, vkorg, vtweg, waerk and netwr). We define the first of them as key.

Preview of the CDS View in SAP HANA
Selecting the preview activates the wizard again, giving us the option to select the columns to display and introduce filters into the visualization.
Step 1: Open the Data Preview
- Right click on the created view.
- Select “Open With” → “Data Preview”.

Step 2: Select Columns and Apply Filters
- Select the columns you want to display.
- Apply filters based on search criteria.
- Click “Open Data Preview” to retrieve data from SAP HANA.

Now we visualize the information we have indicated in our view from the Hana database.

Advantages of using CDS Views in SAP
Core Data Services (CDS) optimizes data queries in SAP HANA, reducing server load and improving system performance.
Its main advantages include:
- Greater efficiency in data processing.
- Reduction of query execution time.
- Ease of code reuse and maintenance.
Implementing CDS views in SAP facilitates more efficient and structured access to data, promoting process optimization in organizations.
Learn much more at EIP International Business School. Find out everything on our blog and get trained in SAP with our cOfficial Sap S/4Hana Finance certificate.