November 2011
Intermediate to advanced
608 pages
13h 33m
English
SAP manages locks by using lock objects in ABAP programs. Lock objects are defined for the database objects in the data dictionary, and this creates two function modules. One is for locking the database object while a SAP transaction is being executed, and the second one is for unlocking a database object when the transaction is complete. Also, each SAP transaction or LUW may have many database locks. Database locks are usually held for a much shorter time compared to the application transaction locks. Transaction code SM12 is used to monitor and manage application locks.
The four types of lock modes are described in Table 14-4.
TABLE 14-4 Types of Lock Modes in SAP Systems