SAP / SAP Mid Level (3 to 8 yrs) Interview questions
What is the difference between a basic/interface CDS View and a consumption CDS View?
SAP's recommended CDS View layering separates views by purpose, typically into several tiers rather than one flat set of views.
| Basic/Interface View | Composite View | Consumption View |
| Close to a single database table; minimal logic. | Combines multiple basic views via associations/joins. | Adds UI/OData-specific annotations for direct consumption by an app. |
| Reusable building block. | Business-entity-level combination. | Tailored to a specific consumer's needs. |
Z_I_Customer " interface view: close to KNA1 -> Z_C_CustomerOrders " composite: joins customer + sales orders -> Z_C_CustomerList " consumption: exposed via OData, UI annotations for Fiori
This layering promotes reuse: several different consumption views (for different Fiori apps, say) can be built on top of the same shared interface and composite views, rather than each app's view duplicating the same base data-access logic independently.
More Related questions...
