DBSTATHORA SAP (Actual size of tables on the database (history)) Table details
Description: Actual size of tables on the database (history)
Table field list including key, data, relationships and ABAP select examples
DBSTATHORA is a standard SAP Table which is used to store Actual size of tables on the database (history) data and is available within R/3 SAP systems depending on the version and release level.
The DBSTATHORA table consists of various fields, each holding specific information or linking keys about Actual size of tables on the database (history) data available in SAP. These include ANDAT (Analysis date (yyyymmddhhmm)), VWTYP (Type of Usage of Table Entry), AMETH (Analysis Method for Collecting Statistics), OPTIO (Sample Size for Collection of Statistics).. 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: Cannot Be Enhanced
SAP DBSTATHORA 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 |
TNAME | Table name | TNAME | CHAR | 30 | Assigned to domain | AS4TAB | |||
ANDAT | Analysis date (yyyymmddhhmm) | AM_DATE | CHAR | 12 | CHAR12 | ||||
VWTYP | Type of Usage of Table Entry | AM_VWTYP | CHAR | 2 | AM_VWTYPE | ||||
AMETH | Analysis Method for Collecting Statistics | AM_AMETH | CHAR | 4 | AM_AMETH | ||||
OPTIO | Sample Size for Collection of Statistics | AM_OPTIO | CHAR | 5 | CHAR5 | ||||
NROWS | Number of rows in a table | OROWS | DEC | 15 | DEC15 | ||||
OCCBL | Used blocks of a table in KB | UBLOCKS_KB | DEC | 11 | DEC11 | ||||
EMPBL | Empty blocks of a table in kb | EBLOCKS_KB | DEC | 11 | DEC11 | ||||
AFREE | Avg. freespace in a used data base block | OAVG_BFREE | INT4 | 10 | INT4 | ||||
CHAIN | Number of rows requiring block chaining | OCHAINED | DEC | 15 | DEC15 | ||||
AROWL | Average row length (Oracle result) | OAVG_ROW_L | DEC | 7 | DEC7_S | ||||
HWMBL | Empty blocks (kb) above High Water Mark | HWBLKS_KB | DEC | 11 | DEC11 | ||||
INDBS | Used blocks of an index-Btree (kb) | BBLOCKS_KB | DEC | 15 | DEC15 |
Key field | Non-key field |
How do I retrieve data from SAP table DBSTATHORA using ABAP code
The following ABAP code Example will allow you to do a basic selection on DBSTATHORA to SELECT all data from the tableDATA: WA_DBSTATHORA TYPE DBSTATHORA.
SELECT SINGLE *
FROM DBSTATHORA
INTO CORRESPONDING FIELDS OF WA_DBSTATHORA
WHERE...
How to access SAP table DBSTATHORA
Within an ECC or HANA version of SAP you can also view further information about DBSTATHORA 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