Does a managed RAP business object need any ABAP code at all? What works without a behavior pool, and when do handler and saver classes show up?
Say your answer out loud first.
Practise another way
For plain create, read, update and delete, no. In a managed BO the framework provides the transactional buffer, the CRUD operations, locking on the persistent table and the save, so the implementation class is even optional.
Code appears as soon as the BDEF declares behavior the framework cannot guess: validations, determinations, actions, dynamic feature control, authorization. Those become handler methods. A saver class only appears with additional or unmanaged save, or with late numbering, which brings adjust_numbers.
The minimal managed BO has no ABAP. SAP's BDL cheat sheet says it plainly: in a managed BO you list create; update; delete;, read works out of the box, and the implementation in class ... unique clause is optional until you need more.
The managed provider handles the transactional buffer, reads data into it for updates, takes the lock and writes the table in the save sequence.
managed;
strict ( 2 );
define behavior for ZR_Note alias Note
persistent table znote
lock master
authorization master ( none ) " demo only
etag master LastChangedAt
{
create; update; delete;
field ( readonly, numbering : managed ) NoteUUID;
}
One catch: authorization master ( global ) or ( instance ) makes the framework expect authorization methods, so a productive BO almost always has a class. ( none ), as in some SAP samples, is for demos only.
What turns on handler methods (local class inheriting CL_ABAP_BEHAVIOR_HANDLER, interaction phase):
validation ... on save,determination ... on modify|on saveaction,function,determine actionfeatures : instanceorfeatures : global(dynamic feature control)authorization master ( global, instance )lock master unmanaged, unmanaged early numbering (FOR NUMBERING)
What turns on a saver class (local class inheriting CL_ABAP_BEHAVIOR_SAVER, save sequence):
managed with additional save: you redefinesave_modifiedto add work, for example change documents, an application log or raising business events, while RAP still writes the tables.managed with unmanaged save:save_modifiedreplaces the database write; nopersistent table.late numbering: you implementadjust_numbersto hand out final keys.and cleanup: you also redefinecleanup.
There is one saver class per business object, even when each entity has its own behavior pool.
How you get the code skeleton. Write the BDEF first, activate it, then use the ADT quick fix on the implementation class.
The quick fix creates the global class FOR BEHAVIOR OF the BDEF. It also creates the local handler and saver definitions in the local types include. You fill the method bodies.
Interview angle. Managed means the framework owns the standard operations and persistence, not that you never write ABAP. Real apps nearly always have a few validations, determinations and actions in the handler class, and rarely a saver class.
Says CRUD needs no code, lists which declarations create handler methods, and ties the saver class to additional save, unmanaged save and late numbering.
Says managed means 'no coding at all', or claims every managed BO needs save and cleanup methods.
Claiming a managed BO always has a saver class with save and cleanup. Without additional save, unmanaged save or late numbering, RAP saves everything itself and no saver class is needed.
- Which saver method do you implement for managed with additional save, and what does it receive?
- Why is there only one saver class even with one behavior pool per entity?
- What happens if you declare a validation in the BDEF but never implement the method?
2 official pages and 3 prep guides. Confidence: high. Checked 3 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Describes the round.
- Official page Backs the answer.
- Official page Backs the answer.