RAP Business Objects
Learn RAP Business Objects as transactional aggregates with root and child entities, behavior, actions, validations, determinations, locks, authorization and save handling. The focus is designing one coherent business transaction rather than exposing database tables as CRUD.
Overview
Learn RAP Business Objects as transactional aggregates with root and child entities, behavior, actions, validations, determinations, locks, authorization and save handling. The focus is designing one coherent business transaction rather than exposing database tables as CRUD.
Lessons in this topic
- RAP Business Objects Part 1: Designing the BO — Root, Children and BoundariesDesign a RAP business object before writing code: what one BO is, how to choose the root, which data belongs in the composition tree, which data is only referenced, and how keys and naming follow from that.
- RAP Business Objects Part 2: Managed vs Unmanaged — A Decision FrameworkGet the big picture of RAP implementation types — managed, managed with additional save, managed with unmanaged save and unmanaged — and a short decision checklist you can apply in design workshops.
- RAP Business Objects Part 3: Transactional Buffer, Save Sequence and the RAP LUWFollow one Fiori "Save" click through RAP: the interaction phase and transactional buffer, the save sequence phases, who commits, and the rules that keep a RAP transaction all-or-nothing.
- RAP Business Objects Part 4: Locking, ETags and Concurrency ControlUnderstand how RAP protects data from conflicting changes: exclusive locks, ETags for stale data, the total ETag with draft, and how responsibilities differ between managed and unmanaged objects.
- RAP Business Objects Part 5: Authorization, Feature Control and MessagesSeparate three controls that are often confused — authorization (who), feature control (when), and access control (which rows) — and learn how RAP messages reach the user correctly with FAILED, REPORTED, message classes and field highlighting.
Interview questions covered
- What is a RAP business object, and how do you decide which entities belong in its composition tree?
- A 'Project' BO contains WBS elements, tasks, time entries and documents as compositions. Project managers constantly get lock errors. How would you redesign it?
- Walk through the four RAP implementation types and give one example scenario for each.
- Explain the RAP transaction model: what happens between a user's change and the database commit?
- An action calls a legacy function module that ends with COMMIT WORK. What can go wrong, and how do you integrate it correctly?
- Explain locks, ETags and the total ETag in RAP. Which problem does each one solve?
- Users sometimes get 'data has been changed by another user' immediately after their own change in an unmanaged BO. What do you investigate?
- Explain the difference between authorization, feature control and CDS access control in RAP, with an example of each.
- How do you design RAP messages so that users understand what went wrong and messages disappear once the problem is fixed?
- Support tickets say 'no authorization to change the request', but users have the right roles. Investigation shows the rule is 'approved requests cannot be changed'. What is wrong and how do you fix it?
How to study RAP Business Objects
RAP Business Objects has 5 lessons (5 intermediate) with about 50 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 10 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 10 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 entity should be modeled as a composition child of a Purchase Request root?
- Time entries modeled as composition children of a Project BO cause constant lock conflicts for project managers. What is the best redesign?
- An existing API must persist the data, but editing, draft and partial updates can be handled by the framework. Which implementation type fits?
- A mature pricing API contains validations that must always run. A team builds a managed BO directly on its tables. What is the main risk?
- When do RAP validations run in relation to MODIFY ENTITIES and COMMIT ENTITIES?
- An action calls a legacy function that ends with COMMIT WORK. Which problem does this cause?
- User A saves an order from a screen loaded before user B's change. Which mechanism rejects A's save?
- With draft enabled, what does the total ETag on the root entity protect?
- A validation appends an instance to FAILED but adds nothing to REPORTED. What does the user experience?
- Which rule belongs in instance feature control rather than authorization?