DB6PMSQ SAP (DB6: Snapshot SQL Cache) Structure details
Description: DB6: Snapshot SQL Cache
Structure field list including key, data, relationships and ABAP select examples
DB6PMSQ 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 "DB6: Snapshot SQL Cache" 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_DB6PMSQ TYPE DB6PMSQ.
The DB6PMSQ table consists of various fields, each holding specific information or linking keys about DB6: Snapshot SQL Cache data available in SAP. These include PARTITN (Partition Number), ARTIF_KEY (artif_key: Artificial Key for Uniqueness), CALLERFLAG (Who Has Called this Program), DBMSTRTTME (DB6: Timestamp (Format: YYYYMMDDHHMMSS)).. 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 DB6PMSQ 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 |
COMPTIME | DB6: Timestamp (Format: YYYYMMDDHHMMSS) | DB6TSTAMP | CHAR | 14 | |||||
PARTITN | Partition Number | 0 | |||||||
ARTIF_KEY | artif_key: Artificial Key for Uniqueness | 0 | |||||||
CALLERFLAG | Who Has Called this Program | 0 | |||||||
DBMSTRTTME | DB6: Timestamp (Format: YYYYMMDDHHMMSS) | DB6TSTAMP | CHAR | 14 | |||||
PRGVERS | Version of Program Inserted this Row | 0 | |||||||
NUM_EXECUT | num_executions: Number of Executions | 0 | |||||||
NUM_COMPIL | num_compilations: Number of Compilations | 0 | |||||||
PREPTWORST | prep_time_worst: Worst Preparation Time (ms) | 0 | |||||||
PREPTBEST | prep_time_best: Best Preparation Time (ms) | 0 | |||||||
INT_RW_DEL | int_rows_deleted: Rows Deleted | 0 | |||||||
INT_RW_INS | int_rows_inserted: Rows Inserted | 0 | |||||||
RW_READ | rows_read: Rows Read | 0 | |||||||
INT_RW_UPD | int_rows_updated: Rows Updated | 0 | |||||||
RW_WRITTEN | rows_written: Rows Written | 0 | |||||||
STMT_SORTS | stmt_sorts: Statement Sorts | 0 | |||||||
TOTEXETS | total_exec_time_s: Total Execution Time (sec) | 0 | |||||||
TOTEXETMS | total_exec_time_ms: Total Execution Time (ms) | 0 | |||||||
TOTUSRCTS | tot_u_cpu_time_s: Total User CPU Time (sec) | 0 | |||||||
TOTUSRCTMS | tot_u_cpu_time_ms: Total User CPU Time (ms) | 0 | |||||||
TOTSYSCTS | tot_s_cpu_time_s: Total System CPU Time (sec) | 0 | |||||||
TOTSYSCTMS | tot_s_cpu_time_ms: Total System CPU Time (ms) | 0 | |||||||
DB_NAME | DB6: General identifier | DB6IDENT | CHAR | 20 | |||||
PL_D_LRS | pool_data_l_reads | 0 | |||||||
PL_D_PRS | pool_data_p_reads | 0 | |||||||
PL_I_LRS | pool_index_l_reads | 0 | |||||||
PL_I_PRS | pool_index_p_reads | 0 | |||||||
PL_TD_LRS | pool_temp_data_l_reads | 0 | |||||||
PL_TD_PRS | pool_temp_data_p_reads | 0 | |||||||
PL_TI_LRS | pool_temp_index_l_reads | 0 | |||||||
PL_TI_PRS | pool_temp_index_p_reads | 0 | |||||||
SORT_OVERFLOWS | sort_overflows | 0 | |||||||
TOTAL_SORT_TIME | total_sort_time | 0 | |||||||
PL_XDA_LRS | pool_xda_l_reads | 0 | |||||||
PL_XDA_PRS | pool_xda_p_reads | 0 | |||||||
PL_TEMP_XDA_LRS | pool_temp_xda_l_reads | 0 | |||||||
PL_TEMP_XDA_PRS | pool_temp_Xda_p_reads | 0 | |||||||
STATS_FABRICATE_TIME | 0 | ||||||||
SYNC_RUNSTATS_TIME | 0 | ||||||||
ROWS_RETURNED | 0 | ||||||||
STMT_PKGCACHE_ID | 0 | ||||||||
INSERT_TIMESTAMP | DB6: Timestamp (Format: YYYYMMDDHHMMSS) | DB6TSTAMP | CHAR | 14 | |||||
STMT_LEN | stmt_txtln: Length Field of LCHR stmt_txt | 0 | |||||||
STMT_TEXT | stmt_text: SQL Statement | 0 |
Key field | Non-key field |
How do I retrieve data from SAP structure DB6PMSQ using ABAP code?
As DB6PMSQ 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 DB6PMSQ as there is no data to select.How to access SAP table DB6PMSQ
Within an ECC or HANA version of SAP you can also view further information about DB6PMSQ 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