/SDF/SQLHIST SAP (SQL Monitor: Delta records for top SQL statements) Table details

Dictionary Type: Table
Description: SQL Monitor: Delta records for top SQL statements




ABAP Code to SELECT data from /SDF/SQLHIST
Related tables to /SDF/SQLHIST
Access table /SDF/SQLHIST




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

/SDF/SQLHIST is a standard SAP Table which is used to store SQL Monitor: Delta records for top SQL statements data and is available within R/3 SAP systems depending on the version and release level.

The /SDF/SQLHIST table consists of various fields, each holding specific information or linking keys about SQL Monitor: Delta records for top SQL statements data available in SAP. These include PROGNAME (ABAP Program Name), PROGKIND (SQL Monitor: Program Kind), PROCTYPE (SQL Monitor: Processing Block Type), PROCNAME (SQL Monitor: Processing Block Name).. 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 empty
Display/Maintenance via tcode SM30: Display/Maintenance Allowed but with Restrictions
SAP enhancement categories: Cannot Be Enhanced


SAP /SDF/SQLHIST 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
TIMESTAMPTimestamp for SQLM Data Collection /SDF/SQLTIMESTAMPDEC15TSTLC/SDF/SQLTIMESTAMP
PROGNAMEABAP Program Name PROGNAMECHAR40PROGNAME
PROGKINDSQL Monitor: Program Kind /SDF/ZQLMPROGKINDCHAR1/SDF/ZQLMPROGKIND
PROCTYPESQL Monitor: Processing Block Type /SDF/ZQLMPROCTYPECHAR4
PROCNAMESQL Monitor: Processing Block Name /SDF/ZQLMPROCNAMECHAR93
PROCLINESQL Monitor: Line Number in Processing Block /SDF/ZQLMPROCLINEINT410
RUNLEVELSQL Monitor: Run Mode /SDF/ZQLMRUNLEVELCHAR1/SDF/ZQLMRUNLEVEL
ROOTTYPESQL Monitor: Request Type /SDF/ZQLMROOTTYPECHAR1/SDF/ZQLMROOTTYPE
ROOTNAMESQL Monitor: Request Entry Point (Transaction, etc.) /SDF/ZQLMROOTNAMECHAR60
STMTKINDSQL Monitor: SQL Operation /SDF/ZQLMSTMTKINDCHAR1/SDF/ZQLMSTMTKIND
TABLENAMESQL Monitor: Table Name /SDF/ZQLMTABLENAMECHAR16DBOBJ_NAME
HASHHash Value (160 Bits) HASH160XRAW20
INCLUDEABAP Program Name PROGNAMECHAR40PROGNAME
LINENatural Number INT4INT410INT4
PGMIDProgram ID in Requests and Tasks PGMIDCHAR4PGMID
OBJECTObject Type TROBJTYPECHAR4OBJECTSCTSOBJECT
OBJ_NAMEObject Name in Object Directory SOBJ_NAMECHAR40SOBJ_NAME
DEVCLASSPackage DEVCLASSCHAR30Assigned to domainDEVCLASSDVCDEVCLASS
XCNTSQL Monitor: Total Number of Executions /SDF/SQLMEXECNTDEC31/SDF/ZQLMINTEGER
RCNTSQL Monitor: Internal Sessions Affected /SDF/SQLMROLLAREACNTDEC31/SDF/ZQLMINTEGER
XCNTRCNTSQL Monitor: Executions per Internal Sessions /SDF/ZQLMEXECNTROLLAREACNTDEC31(3) /SDF/ZQLMDECIMAL3
RTMINSQL Monitor: Minimum Value of Execution Time /SDF/ZQLMRUNTIMEMINDEC31(3) /SDF/ZQLMRUNTIME
RTMAXSQL Monitor: Maximum Value of Execution Time /SDF/ZQLMRUNTIMEMAXDEC31(3) /SDF/ZQLMRUNTIME
RTCNTSQL Monitor: Count /SDF/SQLMRUNTIMECNTDEC31/SDF/ZQLMINTEGER
RTSUMSQL Monitor: Total Execution Time /SDF/ZQLMRUNTIMESUMDEC31(3) /SDF/ZQLMRUNTIME
RTSQSSQL Monitor: Runtime Sum of Squares /SDF/ZQLMRUNTIMESQSDEC31(6) /SDF/ZQLMDECIMAL6
RTAVGSQL Monitor: Mean Value of Execution Time /SDF/ZQLMRUNTIMEAVGDEC31(3) /SDF/ZQLMRUNTIME
RTDEVSQL Monitor: Standard Deviation of Execution Time /SDF/ZQLMRUNTIMEDEVDEC31(3) /SDF/ZQLMRUNTIME
DBMINSQL Monitor: Minimum Value of Fetched / Modified Records /SDF/ZQLMDBCOUNTMININT410
DBMAXSQL Monitor: Maximum Value of Fetched / Modified Records /SDF/ZQLMDBCOUNTMAXINT410
DBCNTSQL Monitor: DB Count Count /SDF/SQLMDBCOUNTCNTDEC31/SDF/ZQLMINTEGER
DBSUMSQL Monitor: Total Fetched or Modified Records /SDF/ZQLMDBCOUNTSUMDEC31/SDF/ZQLMINTEGER
DBSQSSQL Monitor: DB Count Sum of Squares /SDF/ZQLMDBCOUNTSQSDEC31/SDF/ZQLMINTEGER
DBAVGSQL Monitor: Mean Value of Fetched / Modified Records /SDF/ZQLMDBCOUNTAVGDEC31(3) /SDF/ZQLMDECIMAL3
DBDEVSQL Monitor: Standard Deviation of Fetched / Modif. Records /SDF/ZQLMDBCOUNTDEVDEC31(3) /SDF/ZQLMDECIMAL3
DDATE Last RTM Collection Datum0
DTIME Last RTM Collection Time0

Key field Non-key field



How do I retrieve data from SAP table /SDF/SQLHIST using ABAP code

The following ABAP code Example will allow you to do a basic selection on /SDF/SQLHIST to SELECT all data from the table
DATA: WA_/SDF/SQLHIST TYPE /SDF/SQLHIST.

SELECT SINGLE *
FROM /SDF/SQLHIST
INTO CORRESPONDING FIELDS OF WA_/SDF/SQLHIST
WHERE...

How to access SAP table /SDF/SQLHIST

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