SACC_TRACE SAP (Processed Trace Records) Structure details
Description: Processed Trace Records
Structure field list including key, data, relationships and ABAP select examples
SACC_TRACE 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 "Processed Trace Records" 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_SACC_TRACE TYPE SACC_TRACE.
The SACC_TRACE table consists of various fields, each holding specific information or linking keys about Processed Trace Records data available in SAP. These include TRANS_ID (Transaction GUID), TCODE (Transaction Code for Performance Trace Analysis), PID (Work Process Number for Performance Trace Analysis), PTYPE (Work Process Type for Performance Trace Analysis).. 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 SACC_TRACE 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 |
TRANS_ID | Transaction GUID | SQLTTRANID | CHAR | 32 | CHAR32 | ||||
TCODE | Transaction Code for Performance Trace Analysis | SQLTTCODE | CHAR | 20 | Assigned to domain | TCODE | |||
PID | Work Process Number for Performance Trace Analysis | SQLTPID | CHAR | 2 | CHAR2 | ||||
PTYPE | Work Process Type for Performance Trace Analysis | SQLTPTYPE | CHAR | 3 | WPTYP | ||||
CLIENT | Client in which performance trace is evaluated | SQLTCLIEN | CLNT | 3 | Assigned to domain | MANDT | |||
USER_L | User name for performance trace evaluation | SQLTUSER | CHAR | 12 | AS4USER | ||||
DATE | Recording Date of Trace Record | SACCDATE | DATS | 8 | SYDATS | ||||
TIME | Execution time for SQL trace | SQLTTIMECH | CHAR | 12 | CHAR12 | ||||
DURATION | Execution Time of an SQL Statement | SACCDURA | DEC | 16 | SACCDURAD | ||||
MODULE | Name of program that triggered SQL statement | SQLTPROG | CHAR | 40 | CHAR40 | ||||
TABNAME | Object used in trace statement | SQLTTABLE | CHAR | 30 | SQLTAS4TAB | ||||
OPERATION | Executed Operation | SQLTOPER | CHAR | 7 | CHAR7 | ||||
CURS | Cursor Number for the Logged SQL Statement | SQLTCURS | CHAR | 4 | CHAR4 | ||||
ARRAYSIZE | Array | SQLTASIZE | INT4 | 10 | INT4 | ||||
NO_OF_ROWS | Number of records | SQLTREC | INT4 | 10 | INT4 | ||||
SQL_RC | Return Code for Logged SQL Statement | SQLTRC | INT4 | 10 | INT4 | ||||
CON_NAME | Logical database connection name -> DBCON-CON_NAME | SQLTCON_N | CHAR | 5 | CHAR5 | ||||
CON_ID | Database Connection ID | SACCCONID | CHAR | 9 | CHAR9 | ||||
STATSTRWVAR | Statement String with Replaced Placeholders | SACCSTATWVAR | STRG | 0 | SACCSTRING | ||||
TRACE_TYPE | Trace Record Type | SACCTRACETYPE | CHAR | 1 | SACCTRACETYPED | ||||
TRECNUMBER | Trace Record Number | SACCTRECNUMBER | INT4 | 10 | |||||
EPP_ROOT_ID | EPP Root ID | SACC_EPP_ROOT_ID | CHAR | 32 | |||||
EPP_CONNECTION_ID | EPP Connection ID | SACC_EPP_CONN_ID | CHAR | 32 | |||||
EPP_CONNECTION_COUNTER | EPP Connection Counter | SACC_EPP_CONN_CNT | INT4 | 10 | |||||
STATSTR | Statement String with Placeholders | SACCSTAT | STRG | 0 | SACCSTRING | ||||
VARSTR | Variable String from the Trace Record | SACCVAR | STRG | 0 | SACCSTRING | ||||
OFFSTID | Offset of Statement IDs in Trace Record | SACCOFFSTID | INT4 | 10 | |||||
LSTATSTR | Length of the Statement String with Placeholders | SACCLSTATSTR | INT4 | 10 | SACCLSTATSTRD | ||||
NVAR | Number of Variables in Variable String | SACCLVARSTR | INT4 | 10 | SACCLVARSTRD | ||||
PSEC | Time value in raw statistics record | STA_TIMERE | INT4 | 10 | STAT_TIMI0 | ||||
LINKNUMBER | Link Number for Detail Records | SACCLINKNUMBER | INT4 | 10 | |||||
LINE_COLOR | Grid ALV Line Color | SACCCOLOR | CHAR | 4 | CHAR4 | ||||
COLOR_DEF | Grid ALV Line Color | SACCCOLOR | CHAR | 4 | CHAR4 |
Key field | Non-key field |
How do I retrieve data from SAP structure SACC_TRACE using ABAP code?
As SACC_TRACE 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 SACC_TRACE as there is no data to select.How to access SAP table SACC_TRACE
Within an ECC or HANA version of SAP you can also view further information about SACC_TRACE 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