SAP_CAPbeginner
Service projections and OData
Publish projections bound actions functions and stable service contracts
Overview
Publish projections bound actions functions and stable service contracts
Lessons in this topic
- Service projections and OData — SAP Guided TutorialHow CAP services expose a deliberate API over the domain model using projections, read-only and excluded elements, actions and functions — and how to read the resulting OData V4 $metadata.
Interview questions covered
- How do you design CAP services for different consumers of the same data?
- When would you use a bound action instead of an unbound action in CAP?
How to study Service projections and OData
Service projections and OData has 1 lesson (1 beginner) with about 5 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 2 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 4 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.
- Which operation type should a CAP service use for a side-effect-free calculation such as getting a shipping quote?
- What is the main purpose of a service projection like `entity Books as projection on my.Books { ID, title }`?
- Two projections of Orders exist in one service and associations become ambiguous. Which annotation resolves which one associations should target?
- A consumer UI broke after a release although the database did not change. What is the most likely cause?