Lock Object

What Does Lock Object Mean?

In SAP, lock objects are used to avoid the inconsistencies that can be caused by data modification or creation with respect to the database. An SAP system gives multiple users simultaneous access to the same database records and synchronizes all of these using the lock objects. The lock mode assigned to the lock object defines the manner of lock. This helps in addressing problems that arise as a result of concurrent access to database tables. One can create locks for an object through transactions SE11 and SE80.


Techopedia Explains Lock Object

The lock mechanism provided by SAP comes in three types: Read Lock: Allows other methods/transactions to access the object through a read mechanism but cannot modify the locked areas of the object Write Lock: Protection provided to write access of the object. It does not allow any other method/transaction to read or write the locked features of the object. Enhanced Write Lock: Works almost like the write lock although the difference is that it provides additional protection from further access through the same method/transaction.When a lock object is created in SAP, it automatically creates two function modules. These are: ENQUEUE_name of lock object: This function module is used while inserting an object in the queue DEQUEUE_name of the lock object: This function module is used while removing the object from the queue.


Related Terms

Latest Database Terms

Related Reading

Margaret Rouse

Margaret Rouse is an award-winning technical writer and teacher known for her ability to explain complex technical subjects to a non-technical, business audience. Over the past twenty years her explanations have appeared on TechTarget websites and she's been cited as an authority in articles by the New York Times, Time Magazine, USA Today, ZDNet, PC Magazine and Discovery Magazine.Margaret's idea of a fun day is helping IT and business professionals learn to speak each other’s highly specialized languages. If you have a suggestion for a new definition or how to improve a technical explanation, please email Margaret or contact her…