Professional Documents
Culture Documents
Sap Lock Object
Sap Lock Object
LOCK OBJECTS:
It is one of the objects of DDIC.
It must start with EY or EZ
Lock objects in SAP ABAP are reusable component which generates function modules that are
used to set and release locks on data record. This lock mechanism is important to synchronize
access of same data record by multiple programs/users.
At the same time two or more than two person/program can read the table data.
If someone else is trying to change the data then he will not be able to change because some
has already put the read lock.
If one person is trying to change the record in a table then another person won’t be able to
change the record in the table.
By the same user and same program within same program within same session lock can be
applied multiple times.
It is same as write lock. But here even in the same session and in the same program by the same
user, lock cannot be applied multiple times.
By this two user/program can go into the change mode, but as soon as any one of them change
some data and click on save button then lock gets converted into WRITE lock.