DB6PMSQ SAP (DB6: Snapshot SQL Cache) Structure details

Dictionary Type: Structure
Description: DB6: Snapshot SQL Cache




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




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
COMPTIMEDB6: Timestamp (Format: YYYYMMDDHHMMSS) DB6TSTAMPCHAR14
PARTITN Partition Number0
ARTIF_KEY artif_key: Artificial Key for Uniqueness0
CALLERFLAG Who Has Called this Program0
DBMSTRTTMEDB6: Timestamp (Format: YYYYMMDDHHMMSS) DB6TSTAMPCHAR14
PRGVERS Version of Program Inserted this Row0
NUM_EXECUT num_executions: Number of Executions0
NUM_COMPIL num_compilations: Number of Compilations0
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 Deleted0
INT_RW_INS int_rows_inserted: Rows Inserted0
RW_READ rows_read: Rows Read0
INT_RW_UPD int_rows_updated: Rows Updated0
RW_WRITTEN rows_written: Rows Written0
STMT_SORTS stmt_sorts: Statement Sorts0
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_NAMEDB6: General identifier DB6IDENTCHAR20
PL_D_LRS pool_data_l_reads0
PL_D_PRS pool_data_p_reads0
PL_I_LRS pool_index_l_reads0
PL_I_PRS pool_index_p_reads0
PL_TD_LRS pool_temp_data_l_reads0
PL_TD_PRS pool_temp_data_p_reads0
PL_TI_LRS pool_temp_index_l_reads0
PL_TI_PRS pool_temp_index_p_reads0
SORT_OVERFLOWS sort_overflows0
TOTAL_SORT_TIME total_sort_time0
PL_XDA_LRS pool_xda_l_reads0
PL_XDA_PRS pool_xda_p_reads0
PL_TEMP_XDA_LRS pool_temp_xda_l_reads0
PL_TEMP_XDA_PRS pool_temp_Xda_p_reads0
STATS_FABRICATE_TIME 0
SYNC_RUNSTATS_TIME 0
ROWS_RETURNED 0
STMT_PKGCACHE_ID 0
INSERT_TIMESTAMPDB6: Timestamp (Format: YYYYMMDDHHMMSS) DB6TSTAMPCHAR14
STMT_LEN stmt_txtln: Length Field of LCHR stmt_txt0
STMT_TEXT stmt_text: SQL Statement0

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 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!