CDS Views Part 5: VDM Layering — Basic, Composite and Consumption Views
Preview · a free account unlocks the full lesson
Understand the Virtual Data Model (VDM) layers used in S/4HANA: basic interface views over single tables, composite views that combine them, and consumption views built for one app or report. Learn naming, the @VDM annotations and how to reuse SAP's released I views.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 4 built single views; real projects instead need an architecture of views that can be reused and maintained, which is what the Virtual Data Model (VDM) provides — S/4HANA's layered CDS architecture made up of basic views, composite views, and consumption views.
Basic (interface) views sit on one main data source, usually a single table, and carry no heavy application logic. They give business names to fields, define keys, reference currencies and units, and provide associations to related basic views — SAP's own I_Customer, I_SalesOrder, and I_Product are examples, and the customer naming convention is ZI_<BusinessObject>.
Composite views combine basic views, typically via associations or joins, and may add calculations and aggregations; they're still reusable and not tied to any one app — a sales order view enriched with customer name and open value is a typical example.
Consumption views, by contrast, are built for one specific purpose — a Fiori app, an OData service, an analytical query, or a report.
They contain UI, search, and analytical annotations (covered in Part 7), select only the fields that purpose needs, and sometimes take parameters; the naming convention is ZC_<Purpose>, and consumers should generally only read consumption views or released interface views. The @VDM.viewType: #BASIC / #COMPOSITE / #CONSUMPTION annotation documents which layer a given view belongs to.
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.