CDS view entities & access control
View entities vs DDIC-based views, associations and compositions, annotations, parameters, DCL access control, virtual elements, table functions, hierarchies, custom entities, metadata extensions, the virtual data model.
Start with question 1
15 questions, in the order to study them. 5 free, 10 in Pro (see plans). How we order them
As you check answers, each question gets a mark: done, due, missed.
5 · Worth knowing 3 questions
5 of 10, points on three or more checks.
- What is the difference between a CDS association and a join? When does the join actually happen, and what is a path expression?
- Explain annotations in CDS: scopes, propagation and metadata extensions. When do you use a metadata extension?
- How do you unit test a CDS view entity? Explain the CDS test double framework.Pro
4 · Good to know 5 questions
4 of 10.
- How do you use parameters and session variables in a CDS view entity, and which should you prefer?
- What are compositions and to-parent associations in CDS, and what rules do they follow?Pro
- Product wants a 'days to flight' column in a RAP list report. You implement it as a virtual element and it works, but sorting and filtering on that column fail and a colleague cannot read it with SELECT. Explain virtual elements, their limits and alternatives.Pro
- How does access control work for CDS entities? Explain DCL roles, PFCG conditions, literal and user conditions, and the authorizationCheck annotation.Pro
- How do you extend an existing CDS view entity without modifying it? What are the restrictions?Pro
3 · Later 6 questions
3 of 10.
- What is the difference between a DDIC-based CDS view and a CDS view entity, and how do you migrate?
- 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'?
- You wrote a DCL role for a consumption view, but a developer's report on a view above it still returns every row, while another user sees nothing. How do you debug CDS access control?Pro
- A report on a view entity shows duplicate rows after a colleague added an association and a field from it. What happened and how do you fix it?Pro
- What is a CDS table function, and how do you choose between CDS, AMDP and plain ABAP SQL for a data task?Pro
- A Fiori list report on a stacked view entity takes 12 seconds in production but is fast in test. How do you find the cause, and what can you do in CDS to fix it? Where does buffering fit?Pro
2 · Later 1 question
2 of 10.