CDS Views Part 4: CDS View Entity vs Classic (DDIC-Based) CDS View
Preview · a free account unlocks the full lesson
Compare the classic DDIC-based CDS view (define view with @AbapCatalog. sqlViewName) with the modern CDS view entity (define view entity), understand the technical differences, why view entities are the standard for new work, and how to handle existing classic views.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 3 used view entities throughout, but many existing systems still contain classic CDS views, so it's worth knowing how the two styles differ.
A classic DDIC-based CDS view is written as define view ZI_X as select from ..., and it requires @AbapCatalog.sqlViewName: 'ZIXSQL' (max 16 characters), which generates an extra SQL view visible in SE11 — meaning you end up with two objects and two names for the same thing.
Annotations like @AbapCatalog.compiler.compareFilter and @ClientHandling control generation details, and because ABAP can read either the CDS name or the generated SQL view name, reading the SQL view directly bypasses CDS features such as DCL.
A CDS view entity, by contrast, is written as define view entity ZI_X as select from ..., has no sqlViewName and generates no DDIC view at all — only the CDS entity itself exists. Client handling is implicit and automatic, the syntax checks are stricter (currency/unit references become mandatory, type rules for CASE and literals are cleaner, and there are no $parameters shortcut-syntax issues), and view entities support newer features such as session variables in more places and better extension support.
Create a free account to keep reading
You have read the opening of this lesson. A free ERPClimb account unlocks the rest of it, every other lesson and topic, and your learning history, so you can pick up exactly where you stopped. No card needed.
- Full explanation
- Code example
- Real project scenario
- Common mistakes
- Best practices
- Interview angle
One tap with Google works too. Every topic keeps its first lesson open to everyone.
Keep exploring
Interview questions on this topic
Referenced SAP objects
Reviewed reference pages for the objects this page mentions.
Check before use: lesson examples are educational, not a guarantee of correctness for your SAP edition or release. Sample code has not been executed on your SAP system. Confirm API availability, syntax, authorizations and business impact in an approved development or test environment.