Download as docx, pdf, or txt
Download as docx, pdf, or txt
You are on page 1of 1

7.

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.

FUNCTIONAL MODULES GENERATED BY LOCK OBJECTS:

1. ENQUEUE_<lock object name>: It sets the lock.

2. DEQUEUE_<lock object name>: It releases the lock.

TYPES OF LOCK OBJECTS:

1. READ LOCK/SHARED LOCK(S):

 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.

2. WRITE LOCK /EXCLUSIVE LOCK /EXCLUSIVE AND CUMULATIVE LOCK (E):

 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.

3. EXCLUSIVE BUT NOT CUMULATIVE(X):

 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.

4. OPTIMISTIC LOCK (O):

 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.

You might also like