SDBCMDSTAT SAP (SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL)) Structure details

Dictionary Type: Structure
Description: SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL)




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




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

SDBCMDSTAT 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 "SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL)" 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_SDBCMDSTAT TYPE SDBCMDSTAT.

The SDBCMDSTAT table consists of various fields, each holding specific information or linking keys about SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL) data available in SAP. These include INTERNAL (3-Byte field), HASHVALUE (Natural Number), HASHTBSLOT (Natural Number), STATUS (Character Field Length = 10).. 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 SDBCMDSTAT 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
COMMANDIDSAP DB: Syskey ADA_SYSKCHAR16CHAR16
INTERNAL3-Byte field CHAR3CHAR3CHAR3
HASHVALUENatural Number INT4INT410INT4
HASHTBSLOTNatural Number INT4INT410INT4
STATUSCharacter Field Length = 10 CHAR10CHAR10CHAR10
USERNAMESAP DB: DBUser name SDB_DBUSERCHAR64SDB_DBUSER
SCHEMANAMESAP DB: DBUser name SDB_DBUSERCHAR64SDB_DBUSER
SQLMODECharacter Field Length = 10 CHAR10CHAR10CHAR10
ISOLEVEL2 byte integer (signed) INT2INT25INT2
DATEFORMATChar 15 CHAR15CHAR15CHAR15
MASSCMD3-Byte field CHAR3CHAR3CHAR3
CODETYPEChar 20 CHAR20CHAR20CHAR20
STMNTSIZENatural Number INT4INT410INT4
S_SQLSTMNTSAP DB: Start of SQL command ADA_SSTMTCHAR80CHAR80
PLANSIZENatural Number INT4INT410INT4
PREPCOUNTSYSDBA.MONITOR.VALUE ADA_VALUEDEC20DEC20
REFCOUNTSYSDBA.MONITOR.VALUE ADA_VALUEDEC20DEC20
CUREXECCNTNatural Number INT4INT410INT4
EXEC_COUNTSAP DB: Counter for command calls ADA_CCNTDEC20DEC20
PREP_TIMESAP DB: SQL command runtime in seconds ADA_RTIMDEC20(3) DEC20_3
EXEC_TIMESAP DB: SQL command runtime in seconds ADA_RTIMDEC20(3) DEC20_3
AVGEXECTIMSAP DB: SQL command runtime in seconds ADA_RTIMDEC20(3) DEC20_3
MINEXECTIMSAP DB: SQL command runtime in seconds ADA_RTIMDEC20(3) DEC20_3
MAXEXECTIMSAP DB: SQL command runtime in seconds ADA_RTIMDEC20(3) DEC20_3
ROWS_READSAP DB: Counter for rows read ADA_READDEC20DEC20
ROWS_QUALSAP DB: Counter for qualified rows ADA_QUALDEC20DEC20
VIRTUAL_RSAP DB: Counter for virtual reads ADA_VRDSDEC20DEC20
PHYS_READSAP DB: Counter for physical I/O access ADA_PHIODEC20DEC20
R_FETCHEDSAP DB: Counter for 'gotten' rows ADA_RFETDEC20DEC20
VSUSPENDSSAP DB: Counter for task suspensions ADA_VSUSDEC20DEC20
VWAITSSAP DB: Counter for SQL waits ADA_VWAIDEC20DEC20
RQ_PEREXECSAP DB: Qualified rows per execution ADA_RQPEDEC20DEC20
VR_PEREXECSAP DB: Number of page accesses per execution ADA_VRPEDEC20DEC20
VR_PERLINESAP DB: Number of page accesses per row ADA_VRPLDEC20(2) DEC20_2
TABNAMESDB Table Name ADATABNAMECHAR30CHAR30
OPERATIONSAP DB: SQL operation ADA_OPCHAR10CHAR10
TOTAL_IOSYSDBA.MONITOR.VALUE ADA_VALUEDEC20DEC20

Key field Non-key field



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

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

How to access SAP table SDBCMDSTAT

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