In an unmanaged RAP business object, what do you code for create, read, update and delete? When is your read method actually called, and how do you keep several entities consistent until the save?
Say your answer out loud first.
Practise another way
In unmanaged, I own the transactional buffer. Create, update and delete handlers only change my buffer, usually by calling legacy function modules that keep their own buffer, and report failed and reported.
My read method returns data from that buffer, not straight from the table, because EML reads must see unsaved changes.
The list report itself is served by the CDS query, so an empty read method can look fine until someone edits. The saver then validates and writes everything in one go.
What unmanaged means. SAP's cheat sheets put it simply: the unmanaged provider must supply everything, the transactional buffer and every operation.
It fits brownfield code where a buffer and business logic already exist. That is exactly how SAP's own sample /DMO/I_TRAVEL_U is built on the legacy function group of the flight model.
Interaction phase: handler methods
METHODS create FOR MODIFY IMPORTING entities FOR CREATE travel.
METHODS update FOR MODIFY IMPORTING entities FOR UPDATE travel.
METHODS delete FOR MODIFY IMPORTING keys FOR DELETE travel.
METHODS read FOR READ IMPORTING keys FOR READ travel RESULT result.
METHODS lock FOR LOCK IMPORTING keys FOR LOCK travel.
METHODS rba_booking FOR READ IMPORTING keys_rba FOR READ travel\_booking
FULL result_requested RESULT result LINK association_links.
METHODS cba_booking FOR MODIFY IMPORTING entities_cba FOR CREATE travel\_booking.
create,update,delete,cba_call the legacy API in buffer mode (in the sample/DMO/FLIGHT_TRAVEL_CREATE,_UPDATE,_DELETE) and translate its messages intofailedandreported. Nothing touches the database.- For
update, the%controlflags tell you which fields the consumer really sent; pass only those to the legacy API. readcalls the legacy read (/DMO/FLIGHT_TRAVEL_READ), which returns buffer state on top of the database, and fillsresult.rba_does the same along the composition.
When read is called. The list report and object page queries are handled as a query on the CDS view, so they never reach your handler.
The transactional read runs when a consumer uses EML READ ENTITIES (your own validations, feature control, other BOs).
It also runs when the framework needs the current transactional state of an instance, for example during edit and update processing. That is why a forgotten read often surfaces only on Edit or in an action, not on Go.
Consistency across entities. Keep travel, bookings and supplements in one buffer (the legacy function group, or a singleton buffer class) so a booking created in the same request can see its new parent. Cross-entity checks run in check_before_save against that buffer.
Save sequence: saver methods (the sample redefines all of them): finalize, check_before_save, adjust_numbers for late numbering (/DMO/FLIGHT_TRAVEL_ADJ_NUMBERS), save (/DMO/FLIGHT_TRAVEL_SAVE), cleanup (/DMO/FLIGHT_TRAVEL_INITIALIZE) and cleanup_finalize.
Release note. Unmanaged is available everywhere RAP runs; some newer conveniences, for example EML READ ... WITH CHANGES, exist only for managed BOs.
Explains that handlers write to the developer's buffer, that read returns buffer state, separates the CDS query from the transactional read, and walks the saver methods with a real sample.
Writes INSERT and UPDATE statements in the create and update handlers, or thinks the read method feeds the list report.
Writing to the database inside create or update. Database changes are allowed only in the late save phase; anything earlier breaks the single LUW and survives a failed save.
- Why must the lock method be implemented by you in unmanaged, and what does it call?
- How do you translate legacy BAPI-style messages into failed and reported?
- What changes if you add draft to this unmanaged BO?
1 candidate write-up, 3 official pages and 3 prep guides. Confidence: medium. Checked 3 Dec 2026.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Prep guide Gives the question.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Candidate write-up Gives the question.