MSQSHCONTG SAP (Displays fragmentation info for data and indexes of a table) Structure details
Description: Displays fragmentation info for data and indexes of a table
Structure field list including key, data, relationships and ABAP select examples
MSQSHCONTG 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 "Displays fragmentation info for data and indexes of a table" 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_MSQSHCONTG TYPE MSQSHCONTG.
The MSQSHCONTG table consists of various fields, each holding specific information or linking keys about Displays fragmentation info for data and indexes of a table data available in SAP. These include OBJID (SQL Server object or index ID.), INDEXNAME (Table or index name.), INDEXID (SQL Server object or index ID.), INDEXLEVEL (Level within the index tree - 0 is the leaf (or data) level.).. 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: Not classified
SAP MSQSHCONTG 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 |
OBJNAME | Table or index name. | MSQOBTNAME | CHAR | 128 | |||||
OBJID | SQL Server object or index ID. | MSQOBJID | INT4 | 10 | INT4 | ||||
INDEXNAME | Table or index name. | MSQOBTNAME | CHAR | 128 | |||||
INDEXID | SQL Server object or index ID. | MSQOBJID | INT4 | 10 | INT4 | ||||
INDEXLEVEL | Level within the index tree - 0 is the leaf (or data) level. | MSQIDXLEVL | INT4 | 10 | |||||
CNTPAGES | No. of pages in the index level. | MSQIDXPAGS | INT4 | 10 | |||||
CNTROWS | No. of rows in that level of the index. | MSQIDXROWS | INT4 | 10 | |||||
MINRECSIZE | Minimum record size in that level of the index. | MSSMINRCSZ | INT4 | 10 | |||||
MAXRECSIZE | Maximum record size in that level of the index. | MSSMAXRCSZ | INT4 | 10 | |||||
AVGRECSIZE | Average record size (byte). | MSQAVRWSZ | DEC | 16(2) | |||||
FORWARDREC | No. of forwarded records in that index level or entire heap. | MSQIXFORRD | INT4 | 10 | |||||
EXTENTS | No. of extents in that index level or entire heap. | MSQIDXEXTS | INT4 | 10 | |||||
EXTSWITCH | No. of extent switches by traversing the index level. | MSQEXTSWIT | INT4 | 10 | |||||
AVGFRBYTES | Average number of free bytes on the pages scanned. | MSQAVFRBYT | DEC | 16(2) | |||||
AVGPGDENS | Average page density as percentage (the higher, the better). | MSQAVPGDEN | DEC | 16(2) | |||||
SCANDNSITY | Scan density of extents (100% is the best value). | MSQSCANDEN | DEC | 16(2) | |||||
BESTEXTCNT | Ideal no. of extent changes if all are contiguously linked. | MSQBESTEXT | INT4 | 10 | |||||
ACTEXTCNT | Number of extents scanned ( = extent switches +1). | MSQACTEXCT | INT4 | 10 | |||||
LOGIFRAG | Logical fragmentation in leaf-pages of an index. | MSQLOGFRAG | DEC | 16(2) | |||||
EXTFRAG | Extent fragmentation in scanning the leaf pages of an index | MSQEXTFRAG | DEC | 16(2) |
Key field | Non-key field |
How do I retrieve data from SAP structure MSQSHCONTG using ABAP code?
As MSQSHCONTG 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 MSQSHCONTG as there is no data to select.How to access SAP table MSQSHCONTG
Within an ECC or HANA version of SAP you can also view further information about MSQSHCONTG 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