CDS Annotations Part 5: Troubleshooting Precedence, Metadata and UI Behavior
Preview · a free account unlocks the full lesson
Find out why an annotation seems to be ignored: check the effective value, layer precedence, the exposed element, the OData metadata and caches — in a fixed order.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 4 built up annotations. When the Fiori app doesn't show what was actually annotated, the cause can be in any of five different places, and this lesson gives the order in which to check them.
The first question is whether the annotation is even effective. Opening the view in ADT, using the context menu, Open With, Active Annotations, shows the effective value per element along with its origin — the view itself, a metadata extension layer, or propagation from elsewhere.
Typical findings here are that another metadata extension in a higher layer sets a different value, that the view lacks @Metadata.allowExtensions: true so the extension gets ignored entirely, that the annotation sits at the wrong scope or has a typo (such as selectionField without a position), or that a propagated annotation from a lower view wins simply because the intended one was never effective.
The second question is whether the annotation is on the right view. The service exposes the projection (ZC_), not the base view (ZR_), so annotations placed on ZR_ are only visible if they propagate up. UI annotations belong on the projection or its metadata extension.
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
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.