Managed, unmanaged, and managed with unmanaged save: what is the difference and how do you choose?
Say your answer out loud first.
Practise another way
It is about who provides the transactional buffer and the save. In managed, the framework gives you create, update, delete, the buffer and the save, so I use it for greenfield. In unmanaged, I implement everything, which fits brownfield logic I must reuse.
Managed with unmanaged save keeps the managed buffer but replaces only the database write, for example to call legacy update function modules. Managed with additional save adds to the default save.
The implementation type answers one question: who runs the transactional buffer and the save?
Managed
- You write
create; update; delete;in the BDEF and the RAP framework handles the buffer, standard operations and the save to thepersistent table. - You add code only for extras: validations, determinations, actions.
- Best for greenfield objects, and the default recommendation.
Unmanaged
- You provide the buffer and implement every operation yourself, handler methods for create, update, delete, read and lock, plus the saver methods.
- Best for brownfield: existing BAPIs, function modules or classes you must wrap without rewriting.
- Highest effort and highest risk of getting transactional behavior wrong.
Managed with unmanaged save
- The managed runtime keeps the buffer, CRUD and draft, but you take over writing to the database in
save_modifiedof a local saver class. - Typical case: a legacy update function module must do the write. You cannot name a
persistent tablehere.
Managed with additional save
- The default save still runs, and your
save_modifiedadds work such as change documents, an application log or raising a business event.
managed implementation in class zbp_r_travel unique;
strict ( 2 );
" variants of the header:
" managed with additional save implementation in class zbp_r_travel unique;
" managed with unmanaged save implementation in class zbp_r_travel unique;
Decision rule
- New table you control: managed.
- New table, but a legacy function must persist: managed with unmanaged save.
- Standard save is right but you need side effects: managed with additional save.
- Existing application logic is the system of record: unmanaged.
The save choice applies to the whole BO, though you can also set it per entity after define behavior for. Draft works with managed and with unmanaged objects.
Frames it as who owns buffer and save, gives all four options and a decision rule tied to greenfield and brownfield.
Says 'managed is automatic and unmanaged is manual' and forgets the two save variants.
Treating 'managed' as 'no code'. A managed BO still needs behavior pool code for logic, and the unmanaged save variant needs a saver class.
- Can a managed BO with unmanaged save have a persistent table?
- What does with full data change?
- Can you use draft with an unmanaged BO?
- How would you wrap an existing BAPI?
3 official pages, 3 prep guides and 1 technical reference. Confidence: high. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Technical reference Backs the answer.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.