MSQBLOLCKS SAP (MS SQL server blocked locks) Structure details
Description: MS SQL server blocked locks
Structure field list including key, data, relationships and ABAP select examples
MSQBLOLCKS 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 blocked locks" 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_MSQBLOLCKS TYPE MSQBLOLCKS.
The MSQBLOLCKS table consists of various fields, each holding specific information or linking keys about MS SQL server blocked locks data available in SAP. These include OBJECTNAME (Object name as defined in system table sysobjects.), LOCKNAME (Lock request mode translated from table sptvalue.), KPID (Windows operating system thread ID), BLOCKEDBY (SPID of blocking process.).. 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 MSQBLOLCKS 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 | MS SQL Server process ID | MSQSYPROID | INT2 | 5 | INT2 | ||||
OBJECTNAME | Object name as defined in system table sysobjects. | MSQOBJNAME | CHAR | 256 | CHAR256 | ||||
LOCKNAME | Lock request mode translated from table sptvalue. | MSQSPTNAME | CHAR | 35 | CHAR35 | ||||
KPID | Windows operating system thread ID | MSQTHREDID | INT2 | 5 | INT2 | ||||
BLOCKEDBY | SPID of blocking process. | MSQBLOPRID | INT2 | 5 | INT2 | ||||
LOCKRSC | Textual description of a lock resource from syslockinfo. | MSQRSCTXT | CHAR | 32 | CHAR32 | ||||
DBNAME | The name of the database in SQL Server instance. | MSQDBNAME | CHAR | 255 | CHAR255 | ||||
LCKTYPE | Lock resource type as e. g. KEY or PAGE. | MSQLCKRSC | CHAR | 10 | CHAR10 | ||||
RSCLCKBIN | MS SQL server - binary lock resource | MSQRSCBIN | RAW | 16 | MSQHEX16 | ||||
LCKVALBLK | MS SQL server - lock value block. | MSQRSCLKBK | RAW | 16 | MSQHEX16 | ||||
INDNAME | MS SQL server table or index name | MSQTABNAME | CHAR | 256 | CHAR256 | ||||
LCKSTATUS | Lock request mode translated from table sptvalue. | MSQSPTNAME | CHAR | 35 | CHAR35 | ||||
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 | ||||
LCKOWNER | MS SQL server - type of object associated with a lock | MSQLCKOWN | INT2 | 5 | INT2 | ||||
PROSSTAT | SQL Server process status; ie sleeping, running etc. | MSQPRSTAT | CHAR | 60 | CHAR60 | ||||
PROSUSER | 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. | MSQHOSTNAM | CHAR | 256 | CHAR256 | ||||
PROGNAME | Name of the application program which owns the connection. | MSQAPPPROG | CHAR | 256 | CHAR256 | ||||
WAITTYPE | Wait type of waiting process, reserved field of sysprocesses | MSQWAITTYP | INT2 | 5 | INT2 | ||||
EXECCMD | Command currently being executed by the given process id | MSQEXECMD | CHAR | 32 | CHAR32 | ||||
HOSTPROS | The application program's process ID on the given host | MSQWKPROID | CHAR | 16 | CHAR16 |
Key field | Non-key field |
How do I retrieve data from SAP structure MSQBLOLCKS using ABAP code?
As MSQBLOLCKS 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 MSQBLOLCKS as there is no data to select.How to access SAP table MSQBLOLCKS
Within an ECC or HANA version of SAP you can also view further information about MSQBLOLCKS 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