Unmanaged RAP
Understand unmanaged RAP for brownfield scenarios where existing BAPIs, function modules or custom save logic must remain authoritative. Learn how developers implement CRUD, buffering, locking, save sequencing, messages and transaction consistency.
Overview
Understand unmanaged RAP for brownfield scenarios where existing BAPIs, function modules or custom save logic must remain authoritative. Learn how developers implement CRUD, buffering, locking, save sequencing, messages and transaction consistency.
Lessons in this topic
- Unmanaged RAP Part 1: When to Use It — Locks, Numbering and MessagesUnderstand when unmanaged RAP is the right choice, exactly which responsibilities move from the framework to you, and implement the first three: locking, key numbering and translating legacy errors into RAP messages.
- Unmanaged RAP Part 2: Architecture — CDS, BDEF and Transactional BufferSet up the complete unmanaged RAP architecture for a brownfield application: CDS views for queries, the full unmanaged behavior definition, the behavior pool layout, and the transactional buffer class you own.
- Unmanaged RAP Part 3: Create, Update, Delete and Read HandlersImplement the unmanaged handler methods correctly: create into the buffer, partial updates with %control, delete including the create-then-delete case, a buffer-aware read method, and create-by-association for items.
- Unmanaged RAP Part 4: Save Sequence, Transaction Safety and Legacy APIsImplement the saver class that hands the transactional buffer to the legacy API: finalize, check_before_save, adjust_numbers, save and cleanup — and learn the rules that keep legacy BAPIs and function modules from breaking RAP's all-or-nothing transaction.
- Unmanaged RAP Part 5: Choosing the Implementation Type and Migrating BOPF/SEGWCompare the four RAP implementation types — managed, managed with additional save, managed with unmanaged save and unmanaged — choose correctly, and follow a safe step-by-step path for moving BOPF objects and SEGW services to RAP.
Interview questions covered
- When would you choose unmanaged RAP instead of managed RAP, and what do you have to implement yourself once you do?
- How do you implement locking in unmanaged RAP, and what should happen when another user already holds the lock?
- Explain the transactional buffer in unmanaged RAP. How do the query path and the transactional read path differ, and what goes wrong if your read method ignores the buffer?
- A 15-year-old custom purchase request transaction must get a Fiori app without losing its function-group logic. Walk through your RAP design.
- Users report that editing only the description of an asset in a new RAP app wipes its location and cost center. The BO is unmanaged. What is the bug and how do you fix it?
- In an unmanaged BO, a user changes a field and triggers an action in the same interaction. The action uses the old value, and the next save fails with 'data changed by another user'. What is the likely cause?
- Explain the RAP save sequence in an unmanaged business object: which saver methods run, in which order, and where is the point of no return?
- A legacy function module you must use in RAP ends with COMMIT WORK and also sends a synchronous RFC to a warehouse system. How do you integrate it safely?
- Compare managed, managed with additional save, managed with unmanaged save and unmanaged RAP. How do you decide?
- You must migrate a SEGW-based OData service and the BOPF object behind it to RAP. What is your plan?
How to study Unmanaged RAP
Unmanaged RAP has 5 lessons (1 intermediate, 4 advanced) with about 74 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.
- In an unmanaged lock method, enqueue raises cx_abap_foreign_lock for one key. What should the method do?
- Why is the transactional buffer in an unmanaged behavior pool usually implemented with static attributes of a local class?
- An instance is created and then deleted in the same transaction of an unmanaged BO. What should the delete handler do?
- Where should an unmanaged BO run the legacy API's business checks so that errors can still be reported to the user?
- Which statement is allowed in the save method of an unmanaged RAP saver class?
- An existing API must persist the data, but editing behavior (buffer, partial updates, locks, draft) can be standard. Which implementation type fits best?
- What is the most valuable first step when migrating a BOPF business object to RAP?
- In an unmanaged update handler, what does entity-%control-Description = if_abap_behv=>mk-on tell you?
- Which situation is the strongest reason to implement a RAP business object as unmanaged?
- In an unmanaged business object, how is a Fiori list report query with filters answered?