What is the difference between a determination and a validation in RAP, and when does each one run?
Say your answer out loud first.
Practise another way
A determination changes data, a validation only checks it. Determinations run either on modify, right after a change lands in the transactional buffer, or on save, near the end of the transaction.
Validations only run on save and reject inconsistent data by filling failed and reported. Both fire from triggers: create, delete, or a field changing. I never rely on the order of several determinations, and I never let a validation change data.
Both are declared in the behavior definition with a trigger and implemented in the behavior pool.
determination setDefaults on modify { create; }
determination calcTotal on save { field Price, Quantity; }
validation checkDates on save { create; field BeginDate, EndDate; }
Determinations
- Implemented in a
FOR DETERMINEhandler method. Their job is to modify instances, for example defaults or calculated fields, throughMODIFY ENTITIES ... IN LOCAL MODE. - On modify runs right after the triggering change hits the transactional buffer, so the result is visible to the next request in the same session. Use it for UI-relevant values.
- On save runs in the early save phase. In a managed BO the framework calls on-save determinations in the saver method
finalizeand on-save validations incheck_before_save, so determinations always run before validations. - If several determinations match, their execution order is not defined. Do not chain them by assumption. Merge them or make the second one depend on a field the first one sets.
Validations
- Implemented in a
FOR VALIDATEhandler method. Triggers are create, delete or a changed field. A bareupdatetrigger is only allowed together with create. - A failing instance goes into
failed, the message goes intoreported. The whole transactional buffer is then rejected, including healthy instances, because the save is all or nothing. - They must not change data. If you need to fix a value, use a determination.
How failed and reported are filled
failed-<entity>gets one line with the instance key (%tky). It tells the framework this instance blocks the save.reported-<entity>gets the message in%msg, optionally%element-<field> = if_abap_behv=>mk-onso the UI marks the field.
Draft
In a draft BO, on-save validations and determinations must also be assigned to draft determine action Prepare to run on draft data. That is covered in the draft card.
Explains the two run times of determinations, that validations come after determinations in the save sequence, and what goes into failed versus reported.
Says both are 'hooks that run on save' and cannot say why a determination can modify data while a validation cannot.
Calculating a value in a validation, or assuming two determinations on the same trigger run in the order they are written in the BDEF.
- Which saver method does the framework call for on-save determinations in a managed BO?
- What happens to the other instances in the buffer when one validation fails?
- How do you make one determination run after another?
- Can a determination write to failed?
3 official pages and 1 prep guide. Confidence: high. Checked 21 Nov 2026.
- Official page Backs the answer.
- Official page Backs the answer.
- Official page Backs the answer.
- Prep guide Gives the question.