MSS_ACTIVE_REQUEST SAP (Active SQL Server requests with their connections & sessions) Structure details

Dictionary Type: Structure
Description: Active SQL Server requests with their connections & sessions




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




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

MSS_ACTIVE_REQUEST 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 "Active SQL Server requests with their connections & sessions" 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_MSS_ACTIVE_REQUEST TYPE MSS_ACTIVE_REQUEST.

The MSS_ACTIVE_REQUEST table consists of various fields, each holding specific information or linking keys about Active SQL Server requests with their connections & sessions data available in SAP. These include SESSIONID (Session ID for SQL Server), LOGINTIME (The time at which client process logged into SQL Server.), HOSTNAME (Hostname of the application server logged into SQL Server.), PROGNAME (Name of the application program which owns the connection.).. 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 MSS_ACTIVE_REQUEST 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
SESSIONIDSession ID for SQL Server MSSSESSIONIDINT410MSSINT4
LOGINTIMEThe time at which client process logged into SQL Server. MSQPRLGTMECHAR24CHAR24
HOSTNAMEHostname of the application server logged into SQL Server. MSQHOSTNECHAR128CHAR128
PROGNAMEName of the application program which owns the connection. MSQAPPPROGCHAR256CHAR256
HOSTPIDProcess ID on app. server MSSHPIDINT410MSSINT4
CLIENTINFVERMSS Session client interface name MSSSESSINTFVERINT410
CLIENTINFNAMEMSS Session client interface name MSSSESSINTFNAMECHAR64CHAR64
LOGINNAMEThe user name used to log into the SQL Server database MSQUSRNAMECHAR128CHAR128
NTDOMAINNT domain for the client connected to SQL Server. MSQNTDOMACHAR256CHAR256
NTUNAMEWindows NT user name for the process connected to SQL Server MSQNTUNAMECHAR256CHAR256
CPUTIMECPU time for a SQL session (ms) MSSSESCPUTIMEINT410INT4
MEMUSAGEThe pages allocated by the SQL process in procedure cache. MSQPRMEMUSINT410INT4
TTLSCHEDTIMESQL Server session scheduled time MSSESSCHTIMEINT410
TTLELAPSEDTIMESQL Server session elapsed time MSSESSELPTIMEINT410
SESS_NUMREADSnumber of reads performed in a session MSSSESNUMREADSDEC20MSQBIGINT
SESS_NUMWRITESNumber of writes performed in a session MSSSESNUMWRITESDEC20MSQBIGINT
SESS_NUMLOGICALREADSnumber of reads performed by a session MSSSESNUMLOGRDSDEC20MSQBIGINT
TRXISOLEVELMSS Transaction Isolation level MSSTRXISOLEVELCHAR12
CONNECTIONIDSQL Server connection id MSSCONNECTIONIDCHAR36MSSUNIQIDENT
PARENT_CONNIDSQL Server parent connection id MSSPARENTCONNIDCHAR36MSSUNIQIDENT
CONN_SESSIONIDSession ID running on connection MSSCONNSIDINT410
CONNECT_TIMECharacter representation of datetime YYYY-MM-DD HH:MM:SS:SSS MSSCONNDATECHAR24
NET_TRANSPORTThe network transport type used by the connection MSSNETRANSPORTCHAR80CHAR80
PROTOCOL_TYPEThe network transport protocol used by the connection MSSPROTYPECHAR80CHAR80
CONN_NUMREADSSQL Server connection number of reads over the connection MSSCONNUMREADSINT410
CONN_NUMWRITESSQL Server conneciton number of writes over the connection MSSCONNUMWRITESINT410
LAST_READCharacter representation of datetime YYYY-MM-DD HH:MM:SS:SSS MSSCONNLASTRDCHAR24
LAST_WRITECharacter representation of datetime YYYY-MM-DD HH:MM:SS:SSS MSSCONNLASTWTCHAR24
NET_PACKET_SIZESQL Server packet size MSSPACKSZINT410
CLIENT_NET_ADDRConnection network address MSSCONNETADDRCHAR40CHAR40
REQ_SESSIONIDSession ID associated with the request being processed MSSREQSIDINT410
REQUESTIDSQL Server Request ID MSSREQUESTIDINT410
START_TIMECharacter representation of datetime YYYY-MM-DD HH:MM:SS:SSS MSSREQDATECHAR24
STATUSSQL Server process status; ie sleeping, running etc. MSQPROSTATCHAR60CHAR60
COMMANDCommand currently being executed by the given process id MSQEXECMDCHAR32CHAR32
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
DBNAMEDatabase name MSSDBCHAR128MSSSYSNAME
USERNAMEThe user name used to log into the SQL Server database MSQUSRNAMECHAR128CHAR128
REQ_CONNECTIONIDSQL Server connection id MSSREQCONNIDCHAR36MSSUNIQIDENT
BLOCKING_SESSION_IDBlocking session ID for SQL Server MSSBLKSESSIONIDINT410
WAIT_TIMECurrent wait time of the process in milliseconds MSQWAITIMEINT410INT4
LAST_WAIT_TYPEThe locked resource process is waiting for (object ID). MSQSQLWAITCHAR64CHAR64
WAIT_RESOURCEName of the locked resource the process is waiting for. MSQSAPWAITCHAR255CHAR255
OPEN_TRAN_CNTNumber of open transactions for the SQL Server process MSSOPENTRANINT410
OPEN_RESULTSET_CNTNumber of open result sets for the SQL Server process MSSOPENRESINT410
TRANSACTION_IDTransaction identifier request executes under MSSTRANSACTIONIDDEC20MSQBIGINT
PERCENT_COMPLETEPercentage complete MSSPRCCOMPDEC6(2)
EST_COMPLETION_TIMEEstimated Completion time of SQL Request MSSESTCMPTIMEDEC20MSQBIGINT
REQ_CPUTIMECPU time for a request MSSREQCPUTIMEINT410INT4
REQ_TTLTIMETotal elapsed time utilized by a request MSSREQTTLINT410
SCHED_IDID of the scheduler used for the request MSSREQSCHEDULERIDINT410
REQ_NUMREADSnumber of reads performed by the request MSSREQNUMREADSDEC20MSQBIGINT
REQ_NUMWRITESnumber of writes performed in a request MSSREQNUMWRITESDEC20MSQBIGINT
REQ_NUMLOGICALREADSnumber of reads performed by a request MSSREQNUMLOGRDSDEC20MSQBIGINT
REQ_ROWCOUNTSQL Server count of rows returned MSSROWCOUNTDEC20MSQBIGINT
SQLTEXTFirst 50 characters of a SQL Server statement MSSPARTIALSQLCHAR50TEXT50
OBJECT_NAMEMS SQL Server object name MSSOBJNAMECHAR30TEXT30
ABAP_NAMEName of the ABAP report MSSABNAMECHAR40PROGNAME
ABAP_LOCOffset of a Processing Control Block ABP_CONTINT410
SAP_USERThe user name in the SAP system. MSSSAPUSERCHAR12
CPU_TTLMS SQL Server cumulative cpu time MSSCPUTIMEINT410INT4
READS_TTLTotal number of reads performed by a session and request MSSNUMREADSDEC20MSQBIGINT
WRTS_TTLTotal number of writes performed MSSNUMWRITESDEC20MSQBIGINT
LOGRDS_TTLTotal number of reads performed MSSNUMLOGREADSDEC20MSQBIGINT
WPNAMEID of the R3 work process MSSWPNAMECHAR2CHAR2

Key field Non-key field



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

As MSS_ACTIVE_REQUEST 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 MSS_ACTIVE_REQUEST as there is no data to select.

How to access SAP table MSS_ACTIVE_REQUEST

Within an ECC or HANA version of SAP you can also view further information about MSS_ACTIVE_REQUEST 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!