MSSDBLOCKS_WP SAP (MS SQL Server lock monitor) Structure details
Description: MS SQL Server lock monitor
Related tables to MSSDBLOCKS_WP
Access table MSSDBLOCKS_WP
Structure field list including key, data, relationships and ABAP select examples
MSSDBLOCKS_WP 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 monitor" 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_MSSDBLOCKS_WP TYPE MSSDBLOCKS_WP.
The MSSDBLOCKS_WP table consists of various fields, each holding specific information or linking keys about MS SQL Server lock monitor data available in SAP. These include ACTFLAG (), FIRSTOCCUR (), REQSPID (MS SQL Server process ID), HOLDSPID (MS SQL Server process ID (blocking)).. 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 MSSDBLOCKS_WP 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 |
ACTFLAG | 0 | ||||||||
FIRSTOCCUR | 0 | ||||||||
REQSPID | MS SQL Server process ID | MSSREQSPID | INT2 | 5 | INT2 | ||||
HOLDSPID | MS SQL Server process ID (blocking) | MSSBLKSPID | INT2 | 5 | INT2 | ||||
REQPID | MS SQL-Server host process id (= OS work process ID) | MSSHOSTPID | CHAR | 8 | WPPID | ||||
OPEN_TRAN | Number of open transactions for the SQL Server process | MSSOPENTRAN | INT4 | 10 | |||||
PROCSTAT | MS SQL-Server process status | MSSSTATUS | CHAR | 10 | TEXT10 | ||||
USERNAME | MS SQL Server user name | MSSUNAME | CHAR | 30 | TEXT30 | ||||
HOSTNAME | Hostname of the application server logged into SQL Server | MSSHOSTNM_ | CHAR | 30 | TEXT30 | ||||
PROGNAME | Name of the application program which owns the connection | MSSPRGNAME | CHAR | 30 | TEXT30 | ||||
COMMAND | MS SQL Server command | MSSCOMMAND | CHAR | 16 | TEXT16 | ||||
INPUTBUFF | Output from DBCC INPUTBUFFER for lock display | MSSINPUTBUFF | CHAR | 40 | |||||
WAITTIME | Current wait time of the process in milliseconds | MSSWAITTIME | INT4 | 10 | |||||
WAITRSC | Wait Resource as seen in sysprocesses | MSSWAITRSC | CHAR | 40 | |||||
LASTWTYPE | Last Wait Type as seen in sysprocesses | MSSLASTWTYPE | CHAR | 32 | |||||
DBNAME | MS SQL Server: Database name | MSSLDBNAME | CHAR | 30 | TEXT30 | ||||
OBJNAME | Table name | MSSTNAME | CHAR | 30 | Assigned to domain | AS4TAB | |||
INDEXNAME | MS SQL Server object name | MSSOBJNAME | CHAR | 30 | TEXT30 | ||||
LOCKRSC | Textual description of a lock resource from syslockinfo | MSSLOCKRSC | CHAR | 32 | |||||
LOCKTYPE | Char representation of rsc_type from syslockinfo | MSSCHARLOCKTYP | CHAR | 10 | |||||
LOCKNAME | MS SQL Server lock description text | MSSLOCKTXT | CHAR | 35 | TEXT35 | ||||
LOCKSTAT | req_mod from syslockinfo for blocking/blocked lock entry | MSSLOCKMODE | CHAR | 10 | |||||
REQ_REFCNT | req_refcnt from syslockinfo for blocking/blocked lock entry | MSSREQREFCNT | INT4 | 10 | |||||
REQ_OWNERTYPE | req_refcnt from syslockinfo for blocking/blocked lock entry | MSSREQOWNTYP | CHAR | 12 | |||||
SQLHANDLE | handle pointing to sql statment or procedure | MSSSQLHANDLE | CHAR | 130 | MSSHANDLE | ||||
STMT_START_OFFSET | SQL Server int4 | MSSINT4 | INT4 | 10 | |||||
STMT_END_OFFSET | SQL Server int4 | MSSINT4 | INT4 | 10 | |||||
PLAN_HANDLE | handle pointing to plan used in execution of sql stmt/proc | MSSPLANHANDLE | CHAR | 130 | MSSHANDLE | ||||
SAPUSER | The user name in the SAP system. | MSSSAPUSER | CHAR | 12 | |||||
REPORTNAME | Report now running | WPREPORT | CHAR | 40 | WPREPORT | ||||
NESTLEVEL | Nesting level for lock waiters | NESTLEVEL | INT2 | 5 | INT2 | ||||
HPID_TEXT | MS SQL-Server host process ID (decimal) | MSSHPIDTXT | CHAR | 20 | CHAR20 | ||||
SPID_TEXT | MS SQL Server process ID | MSSSPIDTXT | CHAR | 20 | CHAR20 |
Key field | Non-key field |
How do I retrieve data from SAP structure MSSDBLOCKS_WP using ABAP code?
As MSSDBLOCKS_WP 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 MSSDBLOCKS_WP as there is no data to select.How to access SAP table MSSDBLOCKS_WP
Within an ECC or HANA version of SAP you can also view further information about MSSDBLOCKS_WP 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