Users of a draft app want to see a validation error while they edit, not only when they press Save. How do determine actions and side effects make that work?
Say your answer out loud first.
Practise another way
Validations run in the save sequence, so normally a draft user sees errors only at Activate. The fix is to assign the validation to a determine action, which runs on-save validations and determinations on request.
It also needs a side effect: determine action checkDates executed on field BeginDate and EndDate, affects messages. When the user changes one of those fields, Fiori elements calls the determine action and refreshes the messages.
The draft Prepare action is the same mechanism for the whole instance before activation.
The building blocks
validation validateDates on save { create; field BeginDate, EndDate; }
determine action ( authorization : update ) checkDates
{
validation validateDates;
}
side effects
{
field BookingFee affects field TotalPrice;
determine action checkDates executed on field BeginDate, field EndDate
affects messages;
}
draft determine action Prepare
{
validation validateDates;
}
Determine actions
- Run the assigned determinations and validations on request, not only at save.
- Only
on savedeterminations and validations can be assigned. Determinations run first, then validations; the order inside each group is not guaranteed. - By default an assigned validation still respects its trigger conditions;
( always )forces it to run. - They can carry authorization additions such as
authorization : update. draft determine action Prepareis the built-in determine action that runs beforeActivate.
Side effects
- Tell the UI what to reload after something changes.
executed on field ...runs the determine action when those fields change;affects messagesmakes the UI refresh the message list, andaffects fieldreloads values. - Release 2511 of the ABAP environment added global side effects (
executed on global), triggered by the user with a key stroke for checks that are too expensive to run on every field. - In the projection BDEF add
use action checkDates;anduse side effects;, or the UI never learns about them.
Why not just a validation 'on modify'? Validations are always on save in the BDEF. The determine action plus side effect gives the same early feedback without changing when the real save check runs. The save still runs the validation again, so nothing slips through.
Design advice
- Keep the validation set-based and fast: it now runs on every relevant field change.
- Use the same validation in Prepare so the user sees all errors before Activate.
- Side effects matter mainly in draft apps, where each field change already goes to the back end and the UI otherwise shows stale values or messages.
SAP's ABAP Platform 2025 Flight reference scenario (/DMO/R_TRAVEL_D) uses this pattern for agency, customer, dates and booking fee.
Combines determine action, side effect with affects messages and Prepare, knows only on-save logic can be assigned, and mentions exposing both in the projection.
Suggests making the validation 'on modify' or moving checks into a determination that writes error fields.
Forgetting `use side effects;` and `use action` in the projection BDEF, so the back end is correct but the UI never calls the determine action.
- What is the difference between Prepare and a custom determine action?
- What does the ( always ) addition change?
- When would you use a global side effect instead of a field-triggered one?
4 official pages. Confidence: high. Checked 1 Dec 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.