What is Lock Objects:

The R/3 system synchronizes simultaneously access of several users to the same data records with a lock mechanism.


The lock objects always consists of key fields of the table.

LOCK MODES:

There are three types of Lock mode.

Exclusive Lock- The lock data can only be displayed or edited by a single user.A request for another exclusive lock or for a shared lock is rejected.

Shared Lock- More than one user can access the locked data at the same time in display mode.A register for another shared lock is accepted.

Exclusive but not cumulative: This can be requested several times from the same transactions.


NOTE: When we create lock object in DDIC then it automatically created two function Modules ,
with names ENQUEUE_<lock_obect_name> and DEQUEUE_<lock_object_name>.


If data records are to be locked  you must call function modules ENQUEUE _<lock_object_name>

Locked data records can be unlocked by calling function module DEQUEUE_<lock_object_name>






Serkan AKKAVAK
Computer Engineer
ABAP Developer & SAP S/4 HANA Logistics Team Lead
Contact : serkurumsal@yandex.com