SAP Reports / Programs

RSENQRR2 SAP ABAP Report - Display and Management of Lock Entries







RSENQRR2 is a standard Executable ABAP Report available within your SAP system (depending on your version and release level). It is used for This function displays locks on data objects and also deletes any entries...see full standard documentation available for this report. Also check out the submitted Comments related to this SAP report and the details below to see which OBJECTS it interacts with such as TABLES, FUNCTION MODULES, INCLUDES ETC.

If you would like to execute this report or see the full code listing simply enter RSENQRR2 into the relevant SAP transactions such as SE38 or SE80


Transaction Code(s):

Below is a list of transaction codes which are relevant to this SAP report

RS12 - Overview of master data locks
SM12 - Display and Delete Locks


ABAP code to call this SAP report using the submit statement

This report can be called from another progam/report simply by using the ABAP SUBMIT statement, see below for example ABAP code snipts of how to do this.






SUBMIT RSENQRR2. "Basic submit
SUBMIT RSENQRR2 AND RETURN. "Return to original report after report execution complete
SUBMIT RSENQRR2 VIA SELECTION-SCREEN. "Display selection screen of submitted report to user
    See more syntax options for the ABAP SUBMIT statement


Text pool values


Title: Display and Management of Lock Entries
Text Symbol: 031 = Error: No special process set up for local lock management
Text Symbol: 032 = Error: Local lock management process despite external lock management
Text Symbol: 033 = Error: No lock management in the addressed application server:
Text Symbol: 034 = Error: Lock server exists, but is not addressed:
Text Symbol: 035 = Error: System contains more than one lock management process
Text Symbol: 036 = Error: System has no lock management
Text Symbol: 037 = Error: No lock server connected to message server
Text Symbol: 038 = Error: Lock management internal, but external lock server specified:
Text Symbol: 039 = Error: Addressed lock server has no lock management:
Text Symbol: 040 = Error: Address lock server is not listed in the message server:
Text Symbol: 041 = Test lock operations do not contain errors.
Text Symbol: 042 = Error: System error during lock operation
Text Symbol: 043 = Error: Unexpected error occurred in lock operation. SY-SUBRC =
Text Symbol: 044 = Error: System error when displaying lock entries.
Text Symbol: 050 = Are you sure you want to risk this?
Text Symbol: 051 = Lock management in a standalone server
Text Symbol: 052 = Optimistic locks are implemented in the kernel
Text Symbol: 060 = Do you really want to display lock table entries?
Text Symbol: 099 = No errors found
Text Symbol: 100 = Enqueue Log File
Text Symbol: 101 = Statistics
Text Symbol: 102 = Deactivate
Text Symbol: 103 = Diagnosis in Update
Text Symbol: 104 = Runtime Approx. 20 Seconds per Application Server
Text Symbol: 001 = Client
Text Symbol: 002 = User
Text Symbol: 003 = Time
Text Symbol: 004 = Mode
Text Symbol: 005 = Table
Text Symbol: 006 = Lock Argument
Text Symbol: 007 = Selected Lock Entries:
Text Symbol: 008 = No lock entries found
Text Symbol: 009 = Deactivation of central lock server not allowed
Text Symbol: 010 = Delete lock entry
Text Symbol: 011 = Delete lock entry?
Text Symbol: 012 = Delete all lock entries?
Text Symbol: 013 = Lock management operation mode





Text Symbol: 014 = Statistics file could not be read:
Text Symbol: 020 = Warning: Lock management deactivated. Emergency operation without locking
Text Symbol: 021 = Error: No connection to message server
Text Symbol: 022 = Internal lock management in same work process
Text Symbol: 023 = Size of lock table (KB):
Text Symbol: 024 = Internal lock management in a special lock management process
Text Symbol: 025 = External lock management in the central application server:
Text Symbol: 026 = Unable to open lock management backup file:
Text Symbol: 027 = Unable to open lock management display file:
Text Symbol: 028 = Further error notes can be found in central lock server system log
Text Symbol: 029 = External lock administration in a special lock admin. process
Text Symbol: 030 = Diagnosis


INCLUDES used within this REPORT RSENQRR2

INCLUDE RSENQR99.


TABLES used within REPORT and the associated SELECT statement:

No SAP DATABASE tables are accessed within this REPORT code!


Function Modules used within report and the associated call statement:

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-011 titel = text-010 defaultoption = 'N' IMPORTING answer = my_answer.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = text-012 titel = text-010 defaultoption = 'N' IMPORTING answer = my_answer.

ENQUEUE_READ call function 'ENQUEUE_READ' EXPORTING gclient = gclient guname = guname gname = gname garg = garg IMPORTING subrc = subrc TABLES enq = enq EXCEPTIONS communication_failure = 2 others = 1.

ENQUE_DELETE call function 'ENQUE_DELETE' EXPORTING check_upd_requests = 1 IMPORTING subrc = subrc TABLES enq = del.

ENQUE_DELETE call function 'ENQUE_DELETE' EXPORTING check_upd_requests = 1 IMPORTING subrc = subrc TABLES enq = enq.

ENQUE_GETSTAT CALL FUNCTION 'ENQUE_GETSTAT' IMPORTING SUBRC = subrc TABLES STATTABLE = line_tbl.

ENQUE_GETSTAT CALL FUNCTION 'ENQUE_GETSTAT' EXPORTING NO_TRANSLATE = 1 IMPORTING SUBRC = subrc TABLES STATTABLE = line_tbl.

POPUP_TO_CONFIRM_STEP call function 'POPUP_TO_CONFIRM_STEP' EXPORTING textline1 = t1 titel = ' ' defaultoption = 'N' IMPORTING answer = my_answer.

ENQUEUE_READ_LOG call function 'ENQUEUE_READ_LOG' TABLES loglines = line_tbl EXCEPTIONS others = 1.

ENQUE_READ_TOP call function 'ENQUE_READ_TOP' TABLES loglines = line_tbl EXCEPTIONS others = 1.

ENQUEUESELFTEST CALL FUNCTION 'ENQUEUESELFTEST' TABLES LOGLINES = msg.

ENQUEUESELFTEST_VB CALL FUNCTION 'ENQUEUESELFTEST_VB' TABLES LOGLINES = msg.








Contribute (Add Comments)

Although this basic information may have limited use it does provide an easy to find location to store any knowledge about this program/report.

The contribute/comments section below therefore offer's an opportunity for anyone to add additional information. This can be anything from useful hints, tips and screen shots to relevant SAP notes or anything else you feel is relevant to this report.

This will then be available for everyone to easily find by simply searching on the report name RSENQRR2 or its description.