CDS Annotations for UI
Where UI annotations live, metadata extensions, the most important @UI annotations and how they combine with local annotations.
Overview
Where UI annotations live, metadata extensions, the most important @UI annotations and how they combine with local annotations.
Lessons in this topic
- CDS Annotations for UI Part 3: Annotating CAP Services for Fiori ElementsApply the same UI vocabulary in SAP CAP: annotate entities in .cds files, separate annotations into annotation files, add value helps and texts, enable drafts, and preview Fiori elements apps on CAP services locally.
- CDS Annotations for UI Part 2: The Essential @UI Annotations Cheat SheetLearn the annotations you use in every Fiori elements app — headerInfo, lineItem, selectionField, identification, facet, fieldGroup, dataPoint, hidden and chart — with what each controls and common pitfalls.
- CDS Annotations for UI Part 1: Where Annotations Live — CDS, Metadata Extensions and Local FilesUnderstand the layers of UI annotations: annotations in CDS views, separated into metadata extensions, local annotation files in the app, and how Fiori elements merges them — so you know where to change what.
Interview questions covered
- Explain the different places UI annotations can be defined and how you decide where to put them.
- Which UI annotations do you need for a basic list report and object page, and what pitfalls do you watch for?
- How do you build a Fiori elements app on a CAP service?
How to study CDS Annotations for UI
CDS Annotations for UI has 3 lessons (1 advanced, 2 intermediate) with about 16 minutes of reading in total. Start with the lesson that matches your level, then read the real project scenario and common mistakes in each one before moving on. After the lessons, say the 3 interview questions out loud in your own words, then check yourself against the model answer in each question (shown once you open it). Use the 9 mock questions to check recall.
Mock test questions covered
Try answering each one before you open the mock test; the answer options and scoring are in the Mock Questions tab.
- What is required on a CDS view to allow metadata extensions?
- A label changed in the back end but one app still shows the old label. Why?
- Where should annotations shared by all apps using a service live?
- Which annotation sets the object page title and type name?
- Two field groups on one entity overwrite each other. What is missing?
- Which annotation presents a KPI-like value with criticality in a header?
- How are UI annotations typically added in CAP CDS?
- Which annotation enables draft handling for a CAP entity?
- Why annotate the service projection rather than the database entity?