MSSDBSTATT SAP (Table statistics for MS SQL Server) Table details
Dictionary Type: Table
Description: Table statistics for MS SQL Server
Description: Table statistics for MS SQL Server
Table field list including key, data, relationships and ABAP select examples
MSSDBSTATT is a standard SAP Table which is used to store Table statistics for MS SQL Server data and is available within R/3 SAP systems depending on the version and release level.
The MSSDBSTATT table consists of various fields, each holding specific information or linking keys about Table statistics for MS SQL Server data available in SAP. These include TOTALROWS (Number of rows), DATASIZE (Data size in KB), RESERVED (Reserved size in KB), INDEXSIZE (Index size in KB).. 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: L - Table for storing temporary data, is delivered emptyDisplay/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Not classified
SAP MSSDBSTATT table 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 |
TABLENAME | Table name | MSSTABLE | CHAR | 128 | MSSSYSNAME | ||||
TOTALROWS | Number of rows | MSSNUMROWS | DEC | 15 | |||||
DATASIZE | Data size in KB | MSSDATASIZE | DEC | 15 | |||||
RESERVED | Reserved size in KB | MSSRESSIZE | DEC | 15 | |||||
INDEXSIZE | Index size in KB | MSSINDEXSIZE | DEC | 15 | |||||
ROWMODCTR | Row modification counter | MSSROWMODCTR | INT4 | 10 | |||||
STATSSCHVER | Statistics schema version | MSSSTATSSCHVER | INT4 | 10 | |||||
INDEXDEPTH | Depth | MSSINDDEPTH | INT4 | 10 | |||||
NUMINDEXES | Number of indexes of a table | MSSNUMINDS | INT4 | 10 | |||||
NUMSTATS | Number of statistics of a table | MSSNUMSTATS | INT4 | 10 | |||||
STATSDATE | Last update statistics | MSSSTATSDATE | CHAR | 20 | |||||
TABLEOPTIONS | Table options on locking and memory | MSSTABOPTS | CHAR | 10 | CHAR10 | ||||
BUFFSTATUS | SAP table buffering status on application server. | MSSTABBUFF | CHAR | 4 | CHAR4 | ||||
FILEGROUP | Filegroup name | MSSFG | CHAR | 128 | MSSSYSNAME | ||||
SCANDENSITY | Scan density | MSSSCANDENSITY | DEC | 5(2) | |||||
LOGICALFRAG | Logical scan fragmentation | MSSLOGSCANFRAG | DEC | 5(2) | |||||
NUMPAGES | Number of pages in index level | MSSILPAGES | DEC | 16 | |||||
BESTCOUNT | Ideal number of extent changes | MSSBESTCOUNT | DEC | 16 | |||||
ACTUALCOUNT | Actual number of extent changes | MSSACTCOUNT | DEC | 16 | |||||
EXTENTSWITCHES | Number of extent switches | MSSEXTSWITCHES | DEC | 16 | |||||
LASTTABLE | 0 | ||||||||
LASTRUN | 0 | ||||||||
LASTDURATION | Execution duration of an operation in seconds. | MSSDURATE | INT4 | 10 | INT4 |
Key field | Non-key field |
How do I retrieve data from SAP table MSSDBSTATT using ABAP code
The following ABAP code Example will allow you to do a basic selection on MSSDBSTATT to SELECT all data from the tableDATA: WA_MSSDBSTATT TYPE MSSDBSTATT.
SELECT SINGLE *
FROM MSSDBSTATT
INTO CORRESPONDING FIELDS OF WA_MSSDBSTATT
WHERE...
How to access SAP table MSSDBSTATT
Within an ECC or HANA version of SAP you can also view further information about MSSDBSTATT 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