What do lock master, etag master and authorization master mean, and how do the dependent variants work for child entities?
Say your answer out loud first.
Practise another way
They are the three controls of concurrent and secure access. Lock master takes an exclusive lock on the root instance so two users cannot change it at once. An ETag field gives optimistic concurrency, so a stale update is rejected.
Authorization master says where permission is checked: global, instance or both. The root is always the master, and each child names its parent with dependent by, so it simply follows the parent.
Three declarations in the BDEF handle who may change what, and when.
Locking (pessimistic)
lock masteron the root,lock dependent by _Assocon each child.- Before a change the instance gets an entry in the global lock table. A second user's modification is denied while it exists. It is released on commit, rollback or end of session.
- Managed handles it for update, delete, create-by-association and actions.
lock : noneon an action prevents it.lock master unmanagedmeans you write aFOR LOCKhandler.
ETag (optimistic)
etag master <field>,etag dependent by _Assoc. The field must change on every modification, so use a timestamp. The managed runtime does this if the field has@Semantics.systemDateTime.localInstanceLastChangedAt: true, with autclong,timestamportimestampltype.- The OData client sends the ETag with an update. If it differs from the stored value, the update is rejected because someone else changed the row.
- Pessimistic stops conflicts, optimistic detects them. Fiori uses ETags between requests because it is stateless and cannot hold an ABAP lock.
Authorization
authorization master ( global ),( instance ),( global, instance )or( none ). Root must declare it. Children useauthorization dependent by _Assoc.- Global: user-level, independent of the instance (for example, may the user create at all). Handler
FOR GLOBAL AUTHORIZATION. - Instance: depends on the data, such as the agency or the status. Handler
FOR INSTANCE AUTHORIZATION. - Create can only be checked globally, since no instance exists yet.
- Read authorization is not here: it belongs to CDS access control (DCL).
define behavior for ZR_Travel alias Travel
persistent table ztravel
lock master
authorization master ( instance )
etag master LocalLastChanged
{ ... }
define behavior for ZR_Booking alias Booking
lock dependent by _Travel
authorization dependent by _Travel
etag dependent by _Travel
{ ... }
Why dependent exists: a child has no authorization or lock logic of its own. It asks the master, so the whole tree is protected consistently.
Draft addition: draft BOs also need total etag, covered in the draft card.
Distinguishes pessimistic from optimistic control, knows what is managed for free, and says read authorization is DCL.
Mixes up lock and ETag, and puts read authorization in the BDEF.
Saying the ETag field prevents two users editing at the same time. It does not prevent it, it rejects the second, stale write.
- Why does Fiori use ETag instead of lock?
- Why is create only global authorization?
- What does lock master unmanaged require?
- Where do you secure read access?
4 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.
- Official page Backs the answer.
- Prep guide Gives the question.