Explain the layers of the virtual data model. What do the I_, C_ and R_ prefixes mean, and what does it mean when a CDS view is 'released'?
Say your answer out loud first.
Practise another way
The virtual data model is SAP's layered set of CDS entities. Basic views sit closest to the tables and give them business names. Composite views combine them.
Consumption views are shaped for one app or query. I_ is the reusable interface layer, C_ is consumption, R_ is restricted reuse for the owning application only.
Released means SAP gave the view a stability contract and a release state, so custom code can use it without breaking on upgrade. Unreleased views can change anytime.
The virtual data model (VDM) is the semantic layer of SAP S/4HANA, built from CDS entities that follow fixed naming and layering rules. A view is classified with the annotation @VDM.viewType.
Layers (bottom to top)
- Basic view: close to the tables, gives technical fields business names (MATNR becomes
Product). Nothing above basic level should read tables directly. - Composite view: combines basic views and adds logic; can be an analytical cube.
- Transactional view: a composite view that anchors a business object for transactional processing. In RAP this is the root view entity.
- Consumption view: tailored for one use, for example one Fiori app. In RAP this is the projection view.
Upper layers select from the same or lower layers, never the reverse.
Prefixes
I_interface (reusable basic or composite),C_consumption,R_restricted reuse (local to its application, for example the RAP base view),P_private,A_remote API,X_view extend,E_extension include,F_derivation function,D_abstract entity.- In customer code you add your namespace:
ZI_Travel,ZC_Travel,ZR_Travel.
What 'released' means SAP assigns a release contract and a release state to an object. The ADT contracts are C0 (extend), C1 (use system-internally), C2 (use as remote API), C3 (manage configuration content) and C4 (use in AMDP).
A contract is SAP's promise not to break the interface incompatibly. In ADT the API state of a view shows which contracts it has, and ABAP for Cloud Development only lets you use released objects.
Anything unreleased, for example P_ views, may change or disappear in an upgrade.
Practical rules
- Build your own models on released
I_views, not on tables or on unreleased views. - Expose only what you need; new consumption views per app, not one view for every case.
- Naming in the model is business-semantic:
SalesOrder, notVBELN.
This is the layer model; for the clean-core classification of released APIs see the ABAP Cloud topic.
Names the layers, the prefixes and the rule that upper layers read only lower layers. Explains released as a stability contract plus API state you check in ADT, and links it to what ABAP Cloud allows.
Recites I_ equals interface and C_ equals consumption without explaining why layers exist, and says 'released' just means it appears in the system.
Treating any view that is visible in the system as safe to use. Only a view with a release contract is covered by SAP's compatibility promise.
- Why must a consumption view never read tables directly?
- Where do R_ and C_ fit in a RAP business object?
- How would you find a released view for sales order data?
- What happens to your code if SAP changes an unreleased view?
5 official pages, 1 prep guide and 2 technical references. Confidence: medium. Checked 21 Nov 2026.
- Technical reference Backs the answer.
- Technical reference Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Prep guide Gives the question.