SDBCMDSTAT SAP (SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL)) Structure details
Description: SAP DB: sysinfo.commandstatistics (Command Stats Shared SQL)
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 |
COMMANDID | SAP DB: Syskey | ADA_SYSK | CHAR | 16 | CHAR16 | ||||
INTERNAL | 3-Byte field | CHAR3 | CHAR | 3 | CHAR3 | ||||
HASHVALUE | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
HASHTBSLOT | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
STATUS | Character Field Length = 10 | CHAR10 | CHAR | 10 | CHAR10 | ||||
USERNAME | SAP DB: DBUser name | SDB_DBUSER | CHAR | 64 | SDB_DBUSER | ||||
SCHEMANAME | SAP DB: DBUser name | SDB_DBUSER | CHAR | 64 | SDB_DBUSER | ||||
SQLMODE | Character Field Length = 10 | CHAR10 | CHAR | 10 | CHAR10 | ||||
ISOLEVEL | 2 byte integer (signed) | INT2 | INT2 | 5 | INT2 | ||||
DATEFORMAT | Char 15 | CHAR15 | CHAR | 15 | CHAR15 | ||||
MASSCMD | 3-Byte field | CHAR3 | CHAR | 3 | CHAR3 | ||||
CODETYPE | Char 20 | CHAR20 | CHAR | 20 | CHAR20 | ||||
STMNTSIZE | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
S_SQLSTMNT | SAP DB: Start of SQL command | ADA_SSTMT | CHAR | 80 | CHAR80 | ||||
PLANSIZE | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
PREPCOUNT | SYSDBA.MONITOR.VALUE | ADA_VALUE | DEC | 20 | DEC20 | ||||
REFCOUNT | SYSDBA.MONITOR.VALUE | ADA_VALUE | DEC | 20 | DEC20 | ||||
CUREXECCNT | Natural Number | INT4 | INT4 | 10 | INT4 | ||||
EXEC_COUNT | SAP DB: Counter for command calls | ADA_CCNT | DEC | 20 | DEC20 | ||||
PREP_TIME | SAP DB: SQL command runtime in seconds | ADA_RTIM | DEC | 20(3) | DEC20_3 | ||||
EXEC_TIME | SAP DB: SQL command runtime in seconds | ADA_RTIM | DEC | 20(3) | DEC20_3 | ||||
AVGEXECTIM | SAP DB: SQL command runtime in seconds | ADA_RTIM | DEC | 20(3) | DEC20_3 | ||||
MINEXECTIM | SAP DB: SQL command runtime in seconds | ADA_RTIM | DEC | 20(3) | DEC20_3 | ||||
MAXEXECTIM | SAP DB: SQL command runtime in seconds | ADA_RTIM | DEC | 20(3) | DEC20_3 | ||||
ROWS_READ | SAP DB: Counter for rows read | ADA_READ | DEC | 20 | DEC20 | ||||
ROWS_QUAL | SAP DB: Counter for qualified rows | ADA_QUAL | DEC | 20 | DEC20 | ||||
VIRTUAL_R | SAP DB: Counter for virtual reads | ADA_VRDS | DEC | 20 | DEC20 | ||||
PHYS_READ | SAP DB: Counter for physical I/O access | ADA_PHIO | DEC | 20 | DEC20 | ||||
R_FETCHED | SAP DB: Counter for 'gotten' rows | ADA_RFET | DEC | 20 | DEC20 | ||||
VSUSPENDS | SAP DB: Counter for task suspensions | ADA_VSUS | DEC | 20 | DEC20 | ||||
VWAITS | SAP DB: Counter for SQL waits | ADA_VWAI | DEC | 20 | DEC20 | ||||
RQ_PEREXEC | SAP DB: Qualified rows per execution | ADA_RQPE | DEC | 20 | DEC20 | ||||
VR_PEREXEC | SAP DB: Number of page accesses per execution | ADA_VRPE | DEC | 20 | DEC20 | ||||
VR_PERLINE | SAP DB: Number of page accesses per row | ADA_VRPL | DEC | 20(2) | DEC20_2 | ||||
TABNAME | SDB Table Name | ADATABNAME | CHAR | 30 | CHAR30 | ||||
OPERATION | SAP DB: SQL operation | ADA_OP | CHAR | 10 | CHAR10 | ||||
TOTAL_IO | SYSDBA.MONITOR.VALUE | ADA_VALUE | DEC | 20 | DEC20 |
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 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