TST04 SAP (Statistics: Structure for data base information display) Structure details

Dictionary Type: Structure
Description: Statistics: Structure for data base information display




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




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

TST04 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 "Statistics: Structure for data base information display" 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_TST04 TYPE TST04.

The TST04 table consists of various fields, each holding specific information or linking keys about Statistics: Structure for data base information display data available in SAP. These include DB_NAME (Name of database), DB_THREAD (Database instance thread ID), DB_INSTANC (Database instance (OPS)), DB_SERVER (Name of database 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: S - System table, maint. only by SAP, change = modification
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP TST04 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
DB_NAMEName of database DB_NAMECHAR3CHAR3
DB_THREADDatabase instance thread ID DB_THREADCHAR8CHAR8
DB_INSTANCDatabase instance (OPS) DB_INSTANCCHAR16CHAR16
DB_SERVERName of database server DB_SERVCHAR16CHAR16
CURR_TIMECurrent time of query CURR_TIMETIMS6T
CURR_DATECurrent date at time of query CURR_DATEDATS8DATS
DB_UP_TIMETime of database start DB_UP_TIMETIMS6T
DB_UP_DATEDate of database start DB_UP_DATEDATS8DATS
THREAD_STADB thread status DBTHREADSTCHAR6CHAR6
SAPDBHOSTSAPDBHOST SAPDBHOSTCHAR32CHAR32
VERSIONOracle: Release ORAVERSIONCHAR17CHAR17
ELAPSED_TIOracle: Elapsed time since database startup (sec) ELAPSED_TICHAR14CHAR14
ARCHIVEROracle: Status of archive writer (stopped/started/failed) ARCHIVERCHAR7CHAR7
LOG_SWITCHOracle: Log_switch_wait (Archive log/Clear log/Checkpoint) LOG_SWITCHCHAR11CHAR11
BUFSIZEDatabase Buffer Pool Size BUFSIZECHAR14CHAR14
BUFREADSDatabase buffer reads BUFREADSCHAR14CHAR14
BUFQUALQuality of data base buffer pool BUFQUALCHAR6CHAR6
BUFPWRITESPhysical writes BUFPWRITESCHAR14CHAR14
BUFPREADSPhysical reads BUFPREADSCHAR14CHAR14
BUFWAITSBuffer busy waits BUFWAITSCHAR14CHAR14
BUFWTIMEBuffer busy wait time BUFWTIMECHAR14CHAR14
DICTSIZEDictionary cache size DICTSIZECHAR14CHAR14
DDQUALQuality of Data Dictionary cache DD_QUALITYCHAR6CHAR6
GETRATIOGetratio of SQLAREA in ORACLE7 GETRATIOCHAR6CHAR6
PINRATIOPinratio of SQLAREA in ORACLE7 PINRATIOCHAR6CHAR6
LOGSIZERedo log buffer size LOGSIZECHAR14CHAR14
LOGENTRIESRedo log buffer entries LOGENTRIESCHAR14CHAR14
LOGALLOCRedo log buffer allocation retries LOGALLOCCHAR14CHAR14
LOGFAULTAllocation error rate of redo log buffer LOGFAULTCHAR14CHAR14
USERCALLSUser calls USERCALLSCHAR14CHAR14
RECURCALLSRecursive calls RECURCALLSCHAR14CHAR14
COMMITSCommits COMMITSCHAR14CHAR14
PARSESParses PARSESCHAR14CHAR14
ROLLBACKSRollbacks ROLLBACKSCHAR14CHAR14
LOGWRITESRedo log writes LOGWRITESCHAR14CHAR14
LOGWTIMERedo log write time LOGWTIMECHAR14CHAR14
LOGBLOCKSRedo log blocks written LOGBLOCKSCHAR14CHAR14
LOGWSIZERedo log write size LOGWSIZECHAR14CHAR14
LOGLATCHRedo log latching time LOGLATCHCHAR14CHAR14
SCANSHORTShort table scans SCANSHORTCHAR14CHAR14
SCANLONGLong table scans SCANLONGCHAR14CHAR14
SCANROWSTable scan rows SCANROWSCHAR14CHAR14
SCANBLOCKSTable scan blocks SCANBLOCKSCHAR14CHAR14
FETCHROWIDTable fetch by row ID FETCHROWIDCHAR14CHAR14
FETCHCONTTable fetch continued row FETCHCONTCHAR14CHAR14
SORTMEMSort memory SORTMEMCHAR14CHAR14
SORTDISKSort disk SORTDISKCHAR14CHAR14
SORTROWSSort rows SORTROWSCHAR14CHAR14
CPUUSAGEDatabase CPU usage CPUUSAGECHAR14CHAR14
CPUCALLSCPU usage when call started CPUCALLSCHAR14CHAR14
CPURECURSRecursive CPU usage CPURECURSCHAR14CHAR14
CPUPARSEParse Time CPU CPUPARSECHAR14CHAR14
USERTORECratio of user to recursive calls in oracle 7 monitor USERTORECCHAR5CHAR5
READCALLRAratio of reads to user calls in 0racle 7 READCALLRACHAR5CHAR5
DD_GETSv$rowcache.gets DD_GETSCHAR20CHAR20
DD_GET_MISv$rowcache.getmisses DD_GET_MISCHAR20CHAR20
CONSISTGETconsistent gets CONSISTGETCHAR20CHAR20
GLOBLCKCONGlobal lock converts GLOBLCKCONCHAR20CHAR20
LCKHITRATILock hit ratio LCKHITRATICHAR6CHAR6
DBWRCROSSIDBWR cross instance writes DBWRCROSSICHAR24CHAR24
PINGWRITESPing/write ratio PINGWRITESCHAR6CHAR6
SQLRELOADSSQL area reloads (%) from v$librarycache SQLRELOADSCHAR14CHAR14
REDO_WAITRedo log space wait time (s) from v$sysstat REDO_WAITCHAR14CHAR14
REDO_PROBLRedo log file problems (from v$logfiles) REDO_PROBLCHAR14CHAR14
CPU_TIMEOracle: Total CPU time used by Oracle (sec) CPU_TIME_CHAR14CHAR14
WAIT_TOTALOracle: Total wait time (from V$System_Event) (sec) WAIT_TOTALCHAR14CHAR14
WAIT_BUSYOracle: Busy wait time (from V$System_Event) (sec) WAIT_BUSYCHAR14CHAR14
SESS_BUSYOracle: Sessions busy (%) SESS_BUSYCHAR14CHAR14
CPU_BUSYOracle: CPU usage by Oracle (%) CPU_BUSYCHAR14CHAR14
RESP_TIMEOracle: Time per user call (ms) RESP_TIMECHAR14CHAR14
CPU_COUNTNumber of CPUs CPU_COUNTCHAR6CHAR6

Key field Non-key field



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

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

How to access SAP table TST04

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