What are RAP side effects and when do you need them?
Say your answer out loud first.
Practise another way
A side effect tells the UI that changing one thing affects other things, so it should reload them. For example, when the quantity changes, reload the total, or after an action, refresh the status and the feature control.
I declare them in the behavior definition with affects. No code is needed. For server-side recalculation I pair them with a determine action, and since newer releases a business event can trigger one too.
In a Fiori elements app, a change in one field does not automatically refresh other fields. The side effect tells the client what to reload.
side effects {
field Quantity affects field TotalPrice;
action acceptTravel affects field OverallStatus,
permissions( action acceptTravel ),
messages;
determine action recalc executed on field Price, field Quantity
affects field TotalPrice, messages;
}
Sources (what triggers it)
field x affects ...: the user changed that field.$self affects ...: a create, update or delete on the entity.action a affects ...: the action ran in the UI.determine action d executed on field ... affects ...: run the determine action first, then reload the targets.event e affects ...after declaringevent e for side effects: an event-driven side effect.
Targets (what is reloaded)
field(one, many, or*for the whole instance, also across an association path),entity(a whole association),permissions(...)to re-read feature and authorization control,messagesto re-read the reported messages.$selfas target reloads the own entity.
Why they matter
- Without them, a calculated value in a determination (on modify) is correct in the buffer but stale in the UI until the user refreshes.
- Without
permissions(...), a button that should have become disabled stays enabled. - A side effect is a hint to the consumer. It does not calculate. The calculation is a determination or determine action.
Pitfall
A $self affects target cannot be a field of the current entity itself. Target the associated entity or use a field source.
Says side effects only trigger reloads, lists sources and targets including permissions and messages, and pairs them with a determination or determine action for the real calculation.
Thinks side effects compute values or confuses them with determinations.
Believing a side effect recalculates data. It only tells the client what to reload, so the calculation must exist as a determination.
- How does the UI know that a determine action must run when a field changes?
- How do you refresh feature control after a field change?
- What does an event for side effects do?
- Where do side effects live for a projection BO?
1 official page and 1 prep guide. Confidence: medium. Checked 21 Nov 2026.
- Official page Backs the answer.
- Prep guide Gives the question.