SAP how-to guides · LessonBy Ravi M, SAP Trainer, 10 yrs · Published · SAP S/4HANA 2023 · all levels
Create CDS view
CDS views are the modern SAP data-modeling layer, defined in ABAP and run on HANA. This guide outlines creating one in ABAP Development Tools (Eclipse).
Quick answer
Use ADT in Eclipse (not classic SE80) for CDS.
Key takeaways
- In ADT (Eclipse), create a new Data Definition (CDS) in your package.
- Define the view: define view entity Z_... as select from <source> {... }.
- Add fields, joins/associations and aggregation as needed.
- Watch out: Following steps without understanding the concept.
Step by step
- In ADT (Eclipse), create a new Data Definition (CDS) in your package.
- Define the view:
define view entity Z_... as select from <source> { ... }. - Add fields, joins/associations and aggregation as needed.
- Add annotations (e.g.
@OData.publish: true) to expose it as a service or shape UI/analytics. - Activate the view and test it (Data Preview), then consume it (Fiori/analytics/ABAP).
Notes and tips
Use ADT in Eclipse (not classic SE80) for CDS. Layer views, base views close to tables, composite views on top, for reuse. Annotations are what make CDS powerful (OData, analytics, UI). Push filters and aggregation down for performance, and follow naming conventions.
Common pitfalls
- Following steps without understanding the concept.
- Skipping testing in a non-production system.
- Applying blindly to a different scenario.
Practice challenge
+0 XPStreak ×0
Question 1 of 3
Which statement is true of Create CDS view?
Frequently asked questions
What does the term Create CDS view refer to in SAP?
CDS views are the modern SAP data-modeling layer, defined in ABAP and run on HANA. This guide outlines creating one in ABAP Development Tools (Eclipse).
Which transaction codes come up with Create CDS view?
Use ADT in Eclipse (not classic SE80) for CDS.
What is another point to note about Create CDS view?
In ADT (Eclipse), create a new Data Definition (CDS) in your package. Define the view: define view entity Z_... as select from <source> {... }. Add fields, joins/associations and aggregation as needed.
What tends to go wrong with Create CDS view?
Following steps without understanding the concept. Skipping testing in a non-production system. Applying blindly to a different scenario.