SAP system

How to Managing Lock Entries in SAP?

SAP Lock Entries: The SAP system is equipped with a special lock mechanism the purpose of the lock entries mechanism is to prevent two transactions from changing the same data on the database simultaneously.

Lock entries are defined generically as “lock objects” in the Data Dictionary. Lock entries are usually set and deleted automatically when user programs access a data object and release it again.

The SAP lock entries mechanism is closely related to the Update Mechanism.

SAP Lock Entries

Lock Transaction SM12

The documentation is divided into the following sections:

Concept: describes how the SAP lock works. You have to understand the concepts described here in order to use the SAP locks when you are programming applications. You can use different types of locks. The lock mode describes what type of lock it is.

S (Shared Lock): Several users can access locked data at the same time in display mode. Requests from further shared locks are accepted, even if they are from different users. An exclusive lock set on an object that already has a shared lock will be rejected.

E(Exclusive): An exclusive lock protects the locked object against all types of locks from other transactions. Only the same lock owner can reset the lock .

Important Profile Parameters: A list of the profile parameters relevant for the lock concept.

enque/table_size: Size of the lock table managed by the enqueue server in the main memory. The lock table contains information on which locks are currently held by whom.

sap lock entries

In this case, you should check whether the update server is functioning correctly, since the lock table can grow very fast if the update function stops. If no update problems exist, you can use this parameter to increase the size of the lock table.

The Computing Center Management System (CCMS) monitors the status of the lock table constantly and outputs warnings if the space available is not adequate.


Default value: 4096kb

rdisp/wp_no_enq: Number of enqueue work processes that are to run on this instance.

rdisp/enqname: Name of the application server that provides the enqueue service.

Managing SAP Lock Entries: It describes lock management , which you use to display, check, and delete lock entries. This may be necessary if the SAP dispatcher, the operating system, or the network connection fails, and the dispatcher cannot delete lock entries. In this case, invalid lock entries remain effective and block access to the locked data when the system is restarted.

How to Monitor a SAP Lock Entries: In SM12 check any lock entry older than 2 days, if any outdated entry check the corresponding User and check the user online or offline in AL08 and contact that User (you can get the User info from su01) and inform about the lock else if the user is offline release the table from lock by deleting the lock.

Also See: How to Configure Printer in SAP System by using SPAD?

Online Training Tutorials

  • System Copy in SAP Business IntelligenceHow to System Copy in SAP Business Intelligence (BI SYSTEM) System Landscapes?The below post explain how the System Copy in SAP Business Intelligence System Landscapes in detail. Take the backup f the production system (Source) Pre-Steps on the target system […]
  • ASAP Methodology ImplementationASAP Methodology Implementation StepsThe SAP ASAP Methodology (Accelerated SAP) provides the roadmap for optimizing and continuous implementation of SAP systems in the real time business processes. The ASAP roadmap brings in […]
  • Types of Master data in sap mmWhat are the different Types of Master data in SAP MM?The Master data in SAP is used to be base data that can store all the required inform about the transaction. If someone producing, transferring stock, selling, purchasing, doing physical […]
  • materials planning and controlWhat is Materials Planning and Control?Materials planning and control determines how much of which material, component, goods etc. is needed and when. This activity is the responsibility of the materials planner or […]
  • System LandscapeDefine System LandscapeThe purpose of this activity is to establish the system landscape. The system landscape consists of the SAP Systems and clients that will enable you to adapt the SAP standard software to […]
  • Invoice VerificationWhat is Invoice Verification in the SAP System?The SAP system is made up of several components linked together so that different departments within a company can cooperate with one another. The Invoice Verification component is part of […]
  • SAP BASIS Transaction CodesSAP BASIS Transaction Codes ListsHere you find SAP basis transaction codes and with functions and usage with short description. User Overview: Display all the users who are currently logged on to the system and show […]
  • SAP TrainingIntention and Ways for SAP Training as a Part of EducationForeground and Introduction SAP is the acronym for a German phrase “Systeme Andwendungen Produkte in der Datenverarbeitung” whose English transcription would be Systems Applications, […]