/BCV/D_QSTAT SAP (Query Statistics) Table details
Dictionary Type: Table
Description: Query Statistics
Description: Query Statistics
Table field list including key, data, relationships and ABAP select examples
/BCV/D_QSTAT is a standard SAP Table which is used to store Query Statistics data and is available within R/3 SAP systems depending on the version and release level.
The /BCV/D_QSTAT table consists of various fields, each holding specific information or linking keys about Query Statistics data available in SAP. These include QUERY_ID (Query ID), EXCTIME_MIN (Minimum Processing Time of the Query), EXCTIME_MAX (Maximum Processing Time of the Query), EXCTIME_AVG (Average Processing Time of the Query).. 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: Can be enhanced (character-type or numeric)
SAP /BCV/D_QSTAT 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 |
MANDT | Client | MANDT | CLNT | 3 | Assigned to domain | MANDT | |||
QUERY_ID | Query ID | /BCV/QRM_QUERY_ID | CHAR | 32 | /BCV/C_QHEAD | /BCV/QRM_QUERY_ID | /BCV/DMZ_QUERY_ID | ||
EXCTIME_MIN | Minimum Processing Time of the Query | /BCV/QRM_ST_EXCTIME_MIN | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
EXCTIME_MAX | Maximum Processing Time of the Query | /BCV/QRM_ST_EXCTIME_MAX | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
EXCTIME_AVG | Average Processing Time of the Query | /BCV/QRM_ST_EXCTIME_AVG | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
EXCTIME_LAST | Last Processing Time of the Query | /BCV/QRM_ST_EXCTIME_LAST | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
EXCDATE_FIRST | First Processing Date of the Query | /BCV/QRM_ST_EXCDATE_FIRST | DATS | 8 | /BCV/QRM_ST_EXCDATE | ||||
EXCDATE_LAST | Last Processing Date of the Query | /BCV/QRM_ST_EXCDATE_LAST | DATS | 8 | /BCV/QRM_ST_EXCDATE | ||||
EXC_COUNT | Number of Query Executions | /BCV/QRM_ST_EXC_COUNT | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
ERROR_COUNT | Number of Erroneous Query Executions | /BCV/QRM_ST_ERROR_COUNT | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
CACHE_HIT_COUNT | Number of Successful Reads from Results Cache | /BCV/QRM_ST_CACHE_HIT_COUNT | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
RECORDS_MIN | Minimum Number of Retrieved Result Records | /BCV/QRM_ST_RECORDS_MIN | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
RECORDS_MAX | Maximum Number of Retrieved Result Records | /BCV/QRM_ST_RECORDS_MAX | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
RECORDS_AVG | Average Number of Retrieved Result Records | /BCV/QRM_ST_RECORDS_AVG | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
RECORDS_LAST | Last Number of Retrieved Result Records | /BCV/QRM_ST_RECORDS_LAST | INT4 | 10 | /BCV/QRM_ST_NUMBER | ||||
TIMEPERREC_MIN | Minimum Processing Time per Results Record (in Milliseconds) | /BCV/QRM_ST_TIMEPERREC_MIN | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
TIMEPERREC_MAX | Maximum Processing Time per Results Record (in Milliseconds) | /BCV/QRM_ST_TIMEPERREC_MAX | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
TIMEPERREC_AVG | Average Processing Time per Results Record (in Milliseconds) | /BCV/QRM_ST_TIMEPERREC_AVG | DEC | 15(3) | /BCV/QRM_ST_RUNTIME | ||||
TIMEPERREC_LAST | Last Processing Time per Results Record (in Milliseconds) | /BCV/QRM_ST_TIMEPERREC_LAST | DEC | 15(3) | /BCV/QRM_ST_RUNTIME |
Key field | Non-key field |
How do I retrieve data from SAP table /BCV/D_QSTAT using ABAP code
The following ABAP code Example will allow you to do a basic selection on /BCV/D_QSTAT to SELECT all data from the tableDATA: WA_/BCV/D_QSTAT TYPE /BCV/D_QSTAT.
SELECT SINGLE *
FROM /BCV/D_QSTAT
INTO CORRESPONDING FIELDS OF WA_/BCV/D_QSTAT
WHERE...
How to access SAP table /BCV/D_QSTAT
Within an ECC or HANA version of SAP you can also view further information about /BCV/D_QSTAT 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