RAP Build-Along Part 8: Managed vs Unmanaged — Choosing the Transaction Model for Your Travel App
Preview · a free account unlocks the full lesson
Choose the right RAP implementation type for your Travel app and future projects: managed, managed with additional or unmanaged save, or unmanaged — with a decision checklist and the BDEF headers for each.
In this lessonShow sectionsHide sections
Visual overview
Explanation
Parts 1 through 7 built a managed Travel app, but real projects also have to deal with existing data and legacy code, which is where choosing the right implementation type matters. The real question to ask is: who actually writes the data to the database — the RAP framework, or your own code?
Business logic such as validations, determinations, and actions, along with the services built on top, look essentially the same across all implementation types; what differs is persistence. New custom tables generally point you toward managed; existing legacy posting logic points you toward managed with unmanaged save, or toward fully unmanaged.
The detailed series on Managed RAP, Unmanaged RAP, and RAP Business Objects Part 2 cover each in depth.
There are four options in practice. Managed is where RAP handles the buffer, locks (with a lock master), ETags, numbering (managed UUIDs), and persistence for create, update, and delete — you write only the business logic, as in the Travel app built earlier.
Managed with additional save still has RAP persisting your tables, but you add extra writes in save_modified, such as a change log or an event. Managed with unmanaged save keeps RAP in charge of the buffer, draft, locks, and ETags, but your save_modified calls legacy posting code instead of letting RAP write the tables directly.
Unmanaged means you implement the buffer, CRUD, read, lock, and save entirely yourself, usually by wrapping existing APIs.
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
More lessons in this topic
- RAP Basics Part 1: RAP Architecture — Layers, Artifacts and When RAP Fits
- RAP Basics Part 10: EML — Entity Manipulation Language
- RAP Basics Part 11: Draft, Locking and Authorization
- RAP Basics Part 2: Data Model Design — Tables, Keys, Administrative Fields and Interface Views
- RAP Basics Part 3: Projection Layer and Metadata Extensions
- RAP Basics Part 4: Implementation Types — Managed, Unmanaged, Additional Save and Unmanaged Save
- RAP Basics Part 5: Root Entity, Child Entity and Composition
- RAP Basics Part 6: Behavior Definition — CRUD, Field Control and Features
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.