A user changes a field in your managed RAP app, gets no error, but the new value never reaches the database table. How do you find out why?
Say your answer out loud first.
Practise another way
I first ask whether it is a draft app: until Activate succeeds, the change only sits in the draft table.
If it was activated, I check the BDEF mapping, because a CDS alias that differs from the column and is not mapped is simply not persisted.
Then I look for a determination that overwrites the value, a read-only or feature-controlled field, and, for EML callers, missing %control flags. I reproduce it with EML in a console class and read failed and reported.
1. Draft or active? In a draft BO every edit goes to the draft table; the active table changes only when Activate succeeds.
Ask: did the user press Save, did Prepare fail on a validation, is the record still shown as draft? SAP's guide marks each request with %IS_DRAFT and forbids reading the draft table with SQL: read through EML.
2. Mapping between CDS and table
In a managed BO the framework writes fields by name. If the CDS alias (CustomerID) differs from the column (customer_id) you need a mapping.
SAP's blog on adding a field puts it bluntly: without the mapping, field changes are not persisted.
mapping for ztravel corresponding
{
CustomerID = customer_id;
Remarks = remarks; " the new field someone forgot
}
The cheat sheet notes the syntax check warns when names differ and no mapping exists. Read the warnings.
3. Something overwrites it
An on modify or on save determination that recalculates the field (status, totals, defaults) can silently replace the user's value. Set a breakpoint in determinations triggered by that field.
4. The change is rejected
field ( readonly ) or instance feature control blocks the change for external consumers; the response then carries failed/reported entries, which a careless caller ignores.
Internal code that must change such a field uses IN LOCAL MODE, which skips feature control.
5. EML callers Only flagged fields are changed:
MODIFY ENTITIES OF zr_travel
ENTITY Travel UPDATE FIELDS ( Remarks )
WITH VALUE #( ( %tky = travel_key Remarks = 'Window seat' ) )
FAILED DATA(failed) REPORTED DATA(reported).
COMMIT ENTITIES RESPONSE OF zr_travel FAILED DATA(f2) REPORTED DATA(r2).
Without FIELDS ( ... ) or %control, the value is ignored. Without COMMIT ENTITIES outside a RAP context, nothing is saved.
6. Other layers
- Field missing from the projection view, or read-only on the UI by annotation.
- Managed BO with additional or unmanaged save: your
save_modifiedmust use the%controlof the update to write the field.
Method. Reproduce in a console class with the EML above, print failed and reported, then debug: the handler for rejections, determinations for overwrites, the saver for persistence. The console run separates a UI problem from a BO problem in minutes.
Checks draft versus active first, then mapping, determinations, field control and %control in a clear order, and reproduces with EML while reading failed and reported.
Starts by debugging the Fiori UI or by writing a direct UPDATE to the table to 'fix' the data.
Forgetting the mapping after adding a field whose CDS alias differs from the column. Everything activates and no error appears, but the value is never stored.
- How do you read a draft instance with EML?
- What does mapping for ... corresponding do?
- Why can a determination make a user's input look ignored?
4 official pages. Confidence: high. Checked 2 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.