MSSDBLOCKS_WP SAP (MS SQL Server lock monitor) Structure details

Dictionary Type: Structure
Description: MS SQL Server lock monitor




ABAP Code to SELECT data from MSSDBLOCKS_WP
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
REQSPIDMS SQL Server process ID MSSREQSPIDINT25INT2
HOLDSPIDMS SQL Server process ID (blocking) MSSBLKSPIDINT25INT2
REQPIDMS SQL-Server host process id (= OS work process ID) MSSHOSTPIDCHAR8WPPID
OPEN_TRANNumber of open transactions for the SQL Server process MSSOPENTRANINT410
PROCSTATMS 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
COMMANDMS SQL Server command MSSCOMMANDCHAR16TEXT16
INPUTBUFFOutput from DBCC INPUTBUFFER for lock display MSSINPUTBUFFCHAR40
WAITTIMECurrent wait time of the process in milliseconds MSSWAITTIMEINT410
WAITRSCWait Resource as seen in sysprocesses MSSWAITRSCCHAR40
LASTWTYPELast Wait Type as seen in sysprocesses MSSLASTWTYPECHAR32
DBNAMEMS SQL Server: Database name MSSLDBNAMECHAR30TEXT30
OBJNAMETable name MSSTNAMECHAR30Assigned to domainAS4TAB
INDEXNAMEMS SQL Server object name MSSOBJNAMECHAR30TEXT30
LOCKRSCTextual description of a lock resource from syslockinfo MSSLOCKRSCCHAR32
LOCKTYPEChar representation of rsc_type from syslockinfo MSSCHARLOCKTYPCHAR10
LOCKNAMEMS SQL Server lock description text MSSLOCKTXTCHAR35TEXT35
LOCKSTATreq_mod from syslockinfo for blocking/blocked lock entry MSSLOCKMODECHAR10
REQ_REFCNTreq_refcnt from syslockinfo for blocking/blocked lock entry MSSREQREFCNTINT410
REQ_OWNERTYPEreq_refcnt from syslockinfo for blocking/blocked lock entry MSSREQOWNTYPCHAR12
SQLHANDLEhandle pointing to sql statment or procedure MSSSQLHANDLECHAR130MSSHANDLE
STMT_START_OFFSETSQL Server int4 MSSINT4INT410
STMT_END_OFFSETSQL Server int4 MSSINT4INT410
PLAN_HANDLEhandle pointing to plan used in execution of sql stmt/proc MSSPLANHANDLECHAR130MSSHANDLE
SAPUSERThe user name in the SAP system. MSSSAPUSERCHAR12
REPORTNAMEReport now running WPREPORTCHAR40WPREPORT
NESTLEVELNesting level for lock waiters NESTLEVELINT25INT2
HPID_TEXTMS SQL-Server host process ID (decimal) MSSHPIDTXTCHAR20CHAR20
SPID_TEXTMS SQL Server process ID MSSSPIDTXTCHAR20CHAR20

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 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!