A user reports an error, or a dump, every time they trigger a particular action in your RAP Fiori app. Walk me through how you debug it, including the order in which RAP calls your handler and saver methods.
Say your answer out loud first.
Practise another way
I reproduce it and read the actual message in the browser's network tab and the Gateway error log. A dump I open in the Feed Reader or Runtime Error Log in ADT.
Then I record an ABAP Cross Trace to see which RAP step failed, and reproduce it with EML in a console class to take the UI out. I set breakpoints by phase: authorization and feature control, the action handler, on-modify determinations, then finalize, check_before_save, adjust_numbers, save and cleanup.
1. Get the real error
The Fiori popup is often generic. Open the browser developer tools (F12), find the failing $batch or action POST and read the response body. The SAP Gateway error log (also in ADT) gives the context and jumps to the source.
2. Dumps A short dump shows in the ADT Feed Reader (the central view in the cloud ABAP environment) and the ABAP Runtime Error Log. Typical RAP dumps are self-inflicted.
One cause is a statement forbidden in the current phase (COMMIT WORK, MESSAGE without INTO, CALL TRANSACTION, SUBMIT). Another is an exception raised out of a handler, which is not allowed to leave the RAP transaction.
3. Find the failing step ABAP Cross Trace records an end-to-end semantic trace of a RAP request: Gateway, the SADL query engine and the behavior runtime.
It tells you whether the action failed in authorization, feature control, your handler, a determination or the save, before you set a single breakpoint.
4. Reproduce without the UI
METHOD if_oo_adt_classrun~main.
CONSTANTS c_uuid TYPE sysuuid_x16 VALUE '0A1B2C3D4E5F60718293A4B5C6D7E8F9'.
MODIFY ENTITIES OF zr_travel
ENTITY Travel EXECUTE acceptTravel
FROM VALUE #( ( TravelUUID = c_uuid ) )
FAILED DATA(failed) REPORTED DATA(reported).
COMMIT ENTITIES RESPONSE OF zr_travel
FAILED DATA(failed_save) REPORTED DATA(reported_save).
LOOP AT reported_save-travel INTO DATA(msg) WHERE %msg IS BOUND.
out->write( msg-%msg->if_message~get_text( ) ).
ENDLOOP.
ENDMETHOD.
If the console run fails too, it is the BO; if not, look at the UI, the projection or side effects.
5. Breakpoints in call order
- Interaction phase, per request: global and instance authorization, feature control, precheck, lock for existing instances, then your action handler, then
on modifydeterminations it triggers. - Save sequence:
finalize(on-save determinations),check_before_save(validations),adjust_numbers(late numbering),saveorsave_modified, thencleanup. If finalize or the checks fail,cleanup_finalizeruns and the user returns to the interaction phase. Debug the browser user: set ADT breakpoints for the user who runs the app.
6. Common root causes
failedfilled but noreportedmessage, so the UI shows a generic error.- Keys wrong in
failed(%tkymissing%is_draftin draft apps). - A BAPI in the late save that fails: the late save must not fail. If it can, the cheat sheet shows
CL_ABAP_BEHAVIOR_SAVER_FAILEDas the saver base class so responses can be returned.
Uses the right tools in a sensible order (network response, Gateway log, Feed Reader, Cross Trace) and isolates with an EML console class. Knows the handler and saver call order by name.
Only says 'I put a breakpoint in the action', cannot name the saver methods, or guesses at the cause without reading the error.
Setting breakpoints only in the action method. The failure is often in authorization, feature control, a determination or the save sequence; trace first, then break where the trace points.
- Which ABAP statements cause a dump inside a behavior implementation?
- What runs between the end of the interaction phase and the database commit?
- The late save calls a BAPI that sometimes fails. What do you change?
3 official pages and 4 prep guides. Confidence: high. Checked 2 Dec 2026.
- Prep guide Gives the question.
- 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.