MSS_SESSION SAP (/sys.dm_exec_sessions structure from SQL Server 9.0) Structure details

Dictionary Type: Structure
Description: /sys.dm_exec_sessions structure from SQL Server 9.0




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




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

MSS_SESSION 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 "/sys.dm_exec_sessions structure from SQL Server 9.0" 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_SESSION TYPE MSS_SESSION.

The MSS_SESSION table consists of various fields, each holding specific information or linking keys about /sys.dm_exec_sessions structure from SQL Server 9.0 data available in SAP. These include 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.), HOSTPID (Process ID on app. 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 MSS_SESSION 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

Key field Non-key field



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

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

How to access SAP table MSS_SESSION

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