SAP ABAP Data Element ENQMODE (Lock mode)
Hierarchy
SAP_BASIS (Software Component) SAP Basis Component
   BC-DWB-DIC-AC (Application Component) Activation Program, Conversion Program, DB Utility, MC, SPDD
     SMAC (Package) R/3 Matchcode Development
Basic Data
Data Element ENQMODE
Short Description Lock mode  
Data Type
Category of Dictionary Type D   Domain
Type of Object Referenced     No Information
Domain / Name of Reference Type ENQMODE    
Data Type CHAR   Character String 
Length 1    
Decimal Places 0    
Output Length 1    
Value Table      
Further Characteristics
Search Help: Name    
Search Help: Parameters    
Parameter ID   
Default Component name    
Change document    
No Input History    
Basic direction is set to LTR    
No BIDI Filtering    
Field Label
  Length  Field Label  
Short 10 Lock mode 
Medium 15 Lock mode 
Long 20 Lock mode 
Heading LM 
Documentation

Definition

Defines how the access of several users to records in the table will be synchronized.

The following modes are possible:

Exclusive Locks

The locked data can be displayed or edited by one user only. Requests for either another exclusive lock or a shared lock are rejected.

Shared Lock

Several users have simultaneous read access to the same data. However, as soon as any one user processes the data, a second user does not have any access to this data. Requests from further shared locks are accepted, even if they are from different users. Exclusive locks are rejected.

Exclusive but not cumulative lock

Whereas exclusive locks can be requested several times by the same transaction and released one by one, an exclusive, non-cumulative lock can only be requested once by the same transaction. Each further lock request will be rejected.

Optimistic Lock (O):

Optimistic locks initially behave like shared locks and can be converted into exclusive locks.

Promote Optimistic Lock (R):

Converts an optimistic lock into an exclusive lock.

Collision check / Promotion check ('U', 'V', 'W', 'C')

Checks whether one of the respective locks ('E', 'S', 'X', 'O') is possible, but does not set a lock

History
Last changed by/on SAP  20110908 
SAP Release Created in