MSSLOCKINF SAP (MS SQL-Server: Lock Information) Structure details

Dictionary Type: Structure
Description: MS SQL-Server: Lock Information




ABAP Code to SELECT data from MSSLOCKINF
Related tables to MSSLOCKINF
Access table MSSLOCKINF




Structure field list including key, data, relationships and ABAP select examples

MSSLOCKINF is a standard SAP Structure so does not store data like a database table does. It can be used to define the fields of other actual tables or to process "MS SQL-Server: Lock Information" Information within sap ABAP programs.

This is done by declaring abap internal tables, work areas or database tables based on this Structure. These can then be used to store and process the required data appropriately.

i.e. DATA: wa_MSSLOCKINF TYPE MSSLOCKINF.

The MSSLOCKINF table consists of various fields, each holding specific information or linking keys about MS SQL-Server: Lock Information data available in SAP. These include KPID (Windows NT thread ID), STATUS (MS SQL-Server process status), USERNAME (MS SQL Server user name), HOSTNAME (Hostname of the application server logged into SQL Server).. See below for full list along with technical details, documentation, text table, check tables, foreign key relationships, conversion routines, relevant tcodes and example ABAP select code etc. .

Delivery Class:
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified


SAP MSSLOCKINF structure fields - Full list of fields found in SAP data dictionary

Field Description Data Element Data Type length (Dec) Check table Conversion Routine Domain Name MemoryID SHLP
SPIDMS SQL Server process ID MSSSPIDINT25INT2
KPIDWindows NT thread ID MSSKPIDINT25INT2
STATUSMS SQL-Server process status MSSSTATUSCHAR10TEXT10
USERNAMEMS SQL Server user name MSSUNAMECHAR30TEXT30
HOSTNAMEHostname of the application server logged into SQL Server MSSHOSTNM_CHAR30TEXT30
PROGNAMEName of the application program which owns the connection MSSPRGNAMECHAR30TEXT30
HOSTPROCMS SQL-Server host process id (= OS work process ID) MSSHOSTPIDCHAR8WPPID
COMMANDMS SQL Server command MSSCOMMANDCHAR16TEXT16
BLOCKERPIDMS SQL Server sp ID of blocking process MSSBLOCKEDINT25INT2
WAITTYPEMS SQL Server wait type MSSWAITTYPCHAR1CHAR1
DBNAMEMS SQL Server: Database name MSSLDBNAMECHAR30TEXT30
LOCKIDMS SQL-Server lock ID MSSLOCKIDINT410INT4
LOCKEDPAGEMS SQL Server locked page number MSSLOCKPGINT410INT4
LOCKTYPEMS SQL Server lock type number MSSLOCKTYPINT25INT2
LOCKTEXTMS SQL Server lock description text MSSLOCKTXTCHAR35TEXT35
OBJECTNAMEMS SQL Server object name MSSOBJNAMECHAR30TEXT30
OBJECTTYPEObject type MSSOBJTYPECHAR2
SAPUSERUser Currently Served WPBNAMECHAR12UBNAME
REPORTNAMEReport now running WPREPORTCHAR40WPREPORT
NESTLEVELNesting level for lock waiters NESTLEVELINT25INT2

Key field Non-key field



How do I retrieve data from SAP structure MSSLOCKINF using ABAP code?

As MSSLOCKINF is a database structure and not a table it does not store any data in the SAP data dictionary. The ABAP SELECT statement is therefore not appropriate and can not be performed on MSSLOCKINF as there is no data to select.

How to access SAP table MSSLOCKINF

Within an ECC or HANA version of SAP you can also view further information about MSSLOCKINF and the data within it using relevant transactions such as

SE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!