MSS_SESSION SAP (/sys.dm_exec_sessions structure from SQL Server 9.0) Structure details
Description: /sys.dm_exec_sessions structure from SQL Server 9.0
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 |
SESSIONID | Session ID for SQL Server | MSSSESSIONID | INT4 | 10 | MSSINT4 | ||||
LOGINTIME | The time at which client process logged into SQL Server. | MSQPRLGTME | CHAR | 24 | CHAR24 | ||||
HOSTNAME | Hostname of the application server logged into SQL Server. | MSQHOSTNE | CHAR | 128 | CHAR128 | ||||
PROGNAME | Name of the application program which owns the connection. | MSQAPPPROG | CHAR | 256 | CHAR256 | ||||
HOSTPID | Process ID on app. server | MSSHPID | INT4 | 10 | MSSINT4 | ||||
CLIENTINFVER | MSS Session client interface name | MSSSESSINTFVER | INT4 | 10 | |||||
CLIENTINFNAME | MSS Session client interface name | MSSSESSINTFNAME | CHAR | 64 | CHAR64 | ||||
LOGINNAME | The user name used to log into the SQL Server database | MSQUSRNAME | CHAR | 128 | CHAR128 | ||||
NTDOMAIN | NT domain for the client connected to SQL Server. | MSQNTDOMA | CHAR | 256 | CHAR256 | ||||
NTUNAME | Windows NT user name for the process connected to SQL Server | MSQNTUNAME | CHAR | 256 | CHAR256 | ||||
CPUTIME | CPU time for a SQL session (ms) | MSSSESCPUTIME | INT4 | 10 | INT4 | ||||
MEMUSAGE | The pages allocated by the SQL process in procedure cache. | MSQPRMEMUS | INT4 | 10 | INT4 | ||||
TTLSCHEDTIME | SQL Server session scheduled time | MSSESSCHTIME | INT4 | 10 | |||||
TTLELAPSEDTIME | SQL Server session elapsed time | MSSESSELPTIME | INT4 | 10 | |||||
SESS_NUMREADS | number of reads performed in a session | MSSSESNUMREADS | DEC | 20 | MSQBIGINT | ||||
SESS_NUMWRITES | Number of writes performed in a session | MSSSESNUMWRITES | DEC | 20 | MSQBIGINT | ||||
SESS_NUMLOGICALREADS | number of reads performed by a session | MSSSESNUMLOGRDS | DEC | 20 | MSQBIGINT | ||||
TRXISOLEVEL | MSS Transaction Isolation level | MSSTRXISOLEVEL | CHAR | 12 |
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 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