SAP / SAP Mid Level (3 to 8 yrs) Interview questions
What are annotations in CDS Views and why are they important?
Annotations are metadata tags (starting with @) attached to a CDS View or its fields,
declaring how that view or field should behave or be treated by other SAP tools — from database catalog
settings, to OData/UI rendering hints, to analytical semantics — without writing any procedural code.
@AbapCatalog.sqlViewName: 'ZCUSTVIEW' @UI.headerInfo: { typeName: 'Customer' } define view Z_Customer as select from kna1 { key kunnr as CustomerId, @UI.lineItem: [{ position: 10 }] name1 as CustomerName }
This is what makes CDS Views so central to modern SAP development: the same view definition that describes the data also describes how a Fiori list report should render it, or how an OData service should expose it — declarative metadata driving actual application behavior, rather than needing separate, hand-written UI or service configuration layered on top.
More Related questions...
