MSQLOCKINF SAP (MS sql server lock info information for blockers and waiters) Structure details
Description: MS sql server lock info information for blockers and waiters
Structure field list including key, data, relationships and ABAP select examples
MSQLOCKINF 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 info information for blockers and waiters" 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_MSQLOCKINF TYPE MSQLOCKINF.
The MSQLOCKINF table consists of various fields, each holding specific information or linking keys about MS sql server lock info information for blockers and waiters data available in SAP. These include KPID (Windows operating system thread ID), STATUS (SQL Server process status; ie sleeping, running etc.), USERNAME (The user name used to log into the SQL Server database), 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: Cannot Be Enhanced
SAP MSQLOCKINF 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 |
SPID | SQL Server process ID | MSQSERPRID | INT4 | 10 | INT4 | ||||
KPID | Windows operating system thread ID | MSQTHREDID | INT2 | 5 | INT2 | ||||
STATUS | SQL Server process status; ie sleeping, running etc. | MSQPRSTAT | CHAR | 60 | CHAR60 | ||||
USERNAME | The user name used to log into the SQL Server database | MSQUSRNAME | CHAR | 128 | CHAR128 | ||||
HOSTNAME | Hostname of the application server logged into SQL Server. | MSQHOSTNE | CHAR | 128 | CHAR128 | ||||
PROGNAME | Name of the application program which owns the connection. | MSQPRONE | CHAR | 128 | CHAR128 | ||||
HOSTPID | The application program's process ID on the given host | MSQWKPROID | CHAR | 16 | CHAR16 | ||||
EXECCMD | Command currently being executed by the given process id | MSQEXECMD | CHAR | 32 | CHAR32 | ||||
BLOCKED | SPID of blocking process. | MSQBLOPRID | INT2 | 5 | INT2 | ||||
WAITTYPE | Wait type of waiting process, reserved field of sysprocesses | MSQWAITTYP | INT2 | 5 | INT2 | ||||
WAITTIME | Current wait time of the process in milliseconds | MSQWAITIME | INT4 | 10 | INT4 | ||||
BINLOCK | MS SQL server - binary lock resource | MSQRSCBIN | RAW | 16 | MSQHEX16 | ||||
LCKVALBLK | MS SQL server - lock value block. | MSQRSCLKBK | RAW | 16 | MSQHEX16 | ||||
INDNAME | Object name | MSSOBJECT | CHAR | 128 | MSSSYSNAME | ||||
LCKSTATUS | MS SQL server - Lock request status | MSQLCKSTAT | INT2 | 5 | INT2 | ||||
LCKREFCNT | MS SQL server - lock reference count | MSQLKRECNT | INT2 | 5 | INT2 | ||||
LCKCARCNT | MS SQL server - lock carry-over reference count | MSQLKCRYCT | INT2 | 5 | INT2 | ||||
LCKLFETIME | MS SQL server - lock lifetime bitmap. | MSQLKLFTIM | INT4 | 10 | INT4 | ||||
ECID | Execution context ID used to uniquely identify subthreads | MSQECID | INT4 | 10 | INT4 | ||||
LCKOWNERTY | MS SQL server - type of object associated with a lock | MSQLCKOWN | INT2 | 5 | INT2 | ||||
DBASENAME | Database name | MSSDB | CHAR | 128 | MSSSYSNAME | ||||
OBJNAME | Object name | MSSOBJECT | CHAR | 128 | MSSSYSNAME | ||||
LOCKRES | Textual description of a lock resource from syslockinfo. | MSQRSCTXT | CHAR | 32 | CHAR32 | ||||
LOCKTYPE | Lock resource type as e. g. KEY or PAGE. | MSQLCKRSC | CHAR | 10 | CHAR10 | ||||
LOCKNAME | Lock request mode translated from table sptvalue. | MSQSPTNAME | CHAR | 35 | CHAR35 |
Key field | Non-key field |
How do I retrieve data from SAP structure MSQLOCKINF using ABAP code?
As MSQLOCKINF 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 MSQLOCKINF as there is no data to select.How to access SAP table MSQLOCKINF
Within an ECC or HANA version of SAP you can also view further information about MSQLOCKINF and the data within it using relevant transactions such asSE11 (ABAP Dictionary Maintenance)
SM30 (Maintain Table Data)
SE80 (Object Navigator)
SE16 (Data Browser).
Search for further information about these or an SAP related objects