RAP Basics Part 3: Projection Layer and Metadata Extensions
Preview · a free account unlocks the full lesson
Build the projection layer of a RAP BO: projection view entities (ZC ), provider contract transactional query, redirecting compositions, value helps, search and text annotations, and moving UI annotations into metadata extensions so one BO can serve several apps.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Part 2 built tables and interface views; the projection layer sits on top of those and is what services actually expose. The projection layer is the app-specific view of a business object: it selects fields, adds value helps, search, and texts, and restricts which operations are allowed — but it adds no business logic of its own.
A projection view entity uses "as projection on", and for transactional services carries provider contract transactional_query, for example: define root view entity ZC_Travel provider contract transactional_query as projection on ZI_Travel. You only list the fields the app actually needs, and add things like @Consumption.valueHelpDefinition for fields such as AgencyID or CustomerID.
Search and display text are handled with their own annotations: @Search.searchable: true on the view and @Search.defaultSearchElement on specific fields enable search, while @ObjectModel.text.element: ['AgencyName'] shows a readable name next to an ID, with names typically denormalized through associations such as _Agency.Name.
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.