SAP PERFORMANCE_TRACE_GET_RECORDS Function Module for
PERFORMANCE_TRACE_GET_RECORDS is a standard performance trace get records SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.
See here to view full function module documentation and code listing for performance trace get records FM, simply by entering the name PERFORMANCE_TRACE_GET_RECORDS into the relevant SAP transaction such as SE37 or SE38.
Function Group: SSQ0ACC
Program Name: SAPLSSQ0ACC
Main Program: SAPLSSQ0ACC
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function PERFORMANCE_TRACE_GET_RECORDS pattern details
In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.CALL FUNCTION 'PERFORMANCE_TRACE_GET_RECORDS'".
EXPORTING
* FILENAME = "
* CONNECTION_RANGE = "
* CONNECTION_ID_RANGE = "
* WP_ID_RANGE = "
* TRANSID_RANGE = "
* ROOT_ID_RANGE = "
* CONN_ID_RANGE = "
* CONN_CNT_RANGE = "
* CLIENT = ' ' "
* MAX_RECORDS = "
* SQL_GET = 'X' "
* START_DATE = 20000101 "
* ENQ_GET = ' ' "
* RFC_GET = ' ' "
* HTTP_GET = ' ' "
* BUF_GET = ' ' "
* STACK_GET = ' ' "
* RAW_GET = ' ' "
* PROGRESS_SHOW = ' ' "
* POPUP_SEND = ' ' "
* START_TIME = 000000 "
* END_DATE = 20091201 "
* END_TIME = 000000 "
* USER_RANGE = "
* OBJECT_RANGE = "
* DURATION_RANGE = "
* OPERATION_RANGE = "
IMPORTING
TRACE_RECORDS = "
ENQ_RECORDS = "
BUF_RECORDS = "
RFC_RECORDS = "
HTTP_RECORDS = "
RAW_RECORDS = "
STACK_RECORDS = "
EXCEPTIONS
FILE_NOT_OPENABLE = 1 ABORT = 2 NO_TRACE_TYPE_SELECTED = 3 ERROR_EVALUATE_TIME = 4 SHOW_FOUND_RECORDS = 5 READ_ERROR = 6
IMPORTING Parameters details for PERFORMANCE_TRACE_GET_RECORDS
FILENAME -
Data type: SACC_FILENOptional: Yes
Call by Reference: No ( called with pass by value option)
CONNECTION_RANGE -
Data type: SACCT_CONNECTION_RANGEOptional: Yes
Call by Reference: Yes
CONNECTION_ID_RANGE -
Data type: SACCT_CONNECTION_ID_RANGEOptional: Yes
Call by Reference: Yes
WP_ID_RANGE -
Data type: SACCT_WP_ID_RANGEOptional: Yes
Call by Reference: Yes
TRANSID_RANGE -
Data type: SACCT_TRANS_ID_RANGEOptional: Yes
Call by Reference: Yes
ROOT_ID_RANGE -
Data type: SACCT_EPP_ROOT_ID_RANGEOptional: Yes
Call by Reference: Yes
CONN_ID_RANGE -
Data type: SACCT_EPP_CONN_ID_RANGEOptional: Yes
Call by Reference: Yes
CONN_CNT_RANGE -
Data type: SACCT_EPP_CONN_CNT_RANGEOptional: Yes
Call by Reference: Yes
CLIENT -
Data type: MANDTDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
MAX_RECORDS -
Data type: TRACERECORDSOptional: Yes
Call by Reference: No ( called with pass by value option)
SQL_GET -
Data type: BOOLE_DDefault: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
START_DATE -
Data type: SYSTDATLODefault: 20000101
Optional: No
Call by Reference: No ( called with pass by value option)
ENQ_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RFC_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
HTTP_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
BUF_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
STACK_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
RAW_GET -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
PROGRESS_SHOW -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
POPUP_SEND -
Data type: BOOLE_DDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
START_TIME -
Data type: SYSTTIMLODefault: 000000
Optional: No
Call by Reference: No ( called with pass by value option)
END_DATE -
Data type: SYSTDATLODefault: 20091201
Optional: No
Call by Reference: No ( called with pass by value option)
END_TIME -
Data type: SYSTTIMLODefault: 000000
Optional: No
Call by Reference: No ( called with pass by value option)
USER_RANGE -
Data type: SACCT_USER_RANGEOptional: Yes
Call by Reference: Yes
OBJECT_RANGE -
Data type: SACCT_OBJECT_RANGEOptional: Yes
Call by Reference: Yes
DURATION_RANGE -
Data type: SACCT_DURATION_RANGEOptional: Yes
Call by Reference: Yes
OPERATION_RANGE -
Data type: SACCT_OPERATION_RANGEOptional: Yes
Call by Reference: Yes
EXPORTING Parameters details for PERFORMANCE_TRACE_GET_RECORDS
TRACE_RECORDS -
Data type: SACCTRACEALVOptional: No
Call by Reference: Yes
ENQ_RECORDS -
Data type: ENQ_TABLEOptional: No
Call by Reference: Yes
BUF_RECORDS -
Data type: BUF_TABLEOptional: No
Call by Reference: Yes
RFC_RECORDS -
Data type: SACCT_RFCOptional: No
Call by Reference: Yes
HTTP_RECORDS -
Data type: SACCT_HTTPOptional: No
Call by Reference: Yes
RAW_RECORDS -
Data type: SACCT_RAW_RECORDOptional: No
Call by Reference: Yes
STACK_RECORDS -
Data type: SACC_STACK_TOptional: No
Call by Reference: Yes
EXCEPTIONS details
FILE_NOT_OPENABLE -
Data type:Optional: No
Call by Reference: Yes
ABORT -
Data type:Optional: No
Call by Reference: Yes
NO_TRACE_TYPE_SELECTED -
Data type:Optional: No
Call by Reference: Yes
ERROR_EVALUATE_TIME -
Data type:Optional: No
Call by Reference: Yes
SHOW_FOUND_RECORDS -
Data type:Optional: No
Call by Reference: Yes
READ_ERROR -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for PERFORMANCE_TRACE_GET_RECORDS Function Module
The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than the latest in-line data DECLARATION SYNTAX but I have included an ABAP code snippet at the end to show how declarations would look using the newer method of declaring data variables on the fly. This will allow you to compare and fully understand the new inline method. Please note some of the newer syntax such as the @DATA is not available until a later 4.70 service pack (SP8), which i why i have stuck to the origianl for this example.| DATA: | ||||
| lv_filename | TYPE SACC_FILEN, " | |||
| lv_trace_records | TYPE SACCTRACEALV, " | |||
| lv_file_not_openable | TYPE SACCTRACEALV, " | |||
| lv_connection_range | TYPE SACCT_CONNECTION_RANGE, " | |||
| lv_connection_id_range | TYPE SACCT_CONNECTION_ID_RANGE, " | |||
| lv_wp_id_range | TYPE SACCT_WP_ID_RANGE, " | |||
| lv_transid_range | TYPE SACCT_TRANS_ID_RANGE, " | |||
| lv_root_id_range | TYPE SACCT_EPP_ROOT_ID_RANGE, " | |||
| lv_conn_id_range | TYPE SACCT_EPP_CONN_ID_RANGE, " | |||
| lv_conn_cnt_range | TYPE SACCT_EPP_CONN_CNT_RANGE, " | |||
| lv_client | TYPE MANDT, " SPACE | |||
| lv_max_records | TYPE TRACERECORDS, " | |||
| lv_sql_get | TYPE BOOLE_D, " 'X' | |||
| lv_abort | TYPE BOOLE_D, " | |||
| lv_start_date | TYPE SYSTDATLO, " 20000101 | |||
| lv_enq_records | TYPE ENQ_TABLE, " | |||
| lv_enq_get | TYPE BOOLE_D, " SPACE | |||
| lv_rfc_get | TYPE BOOLE_D, " SPACE | |||
| lv_http_get | TYPE BOOLE_D, " SPACE | |||
| lv_buf_get | TYPE BOOLE_D, " SPACE | |||
| lv_stack_get | TYPE BOOLE_D, " SPACE | |||
| lv_raw_get | TYPE BOOLE_D, " SPACE | |||
| lv_progress_show | TYPE BOOLE_D, " SPACE | |||
| lv_popup_send | TYPE BOOLE_D, " SPACE | |||
| lv_start_time | TYPE SYSTTIMLO, " 000000 | |||
| lv_buf_records | TYPE BUF_TABLE, " | |||
| lv_no_trace_type_selected | TYPE BUF_TABLE, " | |||
| lv_end_date | TYPE SYSTDATLO, " 20091201 | |||
| lv_rfc_records | TYPE SACCT_RFC, " | |||
| lv_error_evaluate_time | TYPE SACCT_RFC, " | |||
| lv_end_time | TYPE SYSTTIMLO, " 000000 | |||
| lv_http_records | TYPE SACCT_HTTP, " | |||
| lv_show_found_records | TYPE SACCT_HTTP, " | |||
| lv_read_error | TYPE SACCT_HTTP, " | |||
| lv_user_range | TYPE SACCT_USER_RANGE, " | |||
| lv_raw_records | TYPE SACCT_RAW_RECORD, " | |||
| lv_object_range | TYPE SACCT_OBJECT_RANGE, " | |||
| lv_stack_records | TYPE SACC_STACK_T, " | |||
| lv_duration_range | TYPE SACCT_DURATION_RANGE, " | |||
| lv_operation_range | TYPE SACCT_OPERATION_RANGE. " |
|   CALL FUNCTION 'PERFORMANCE_TRACE_GET_RECORDS' " |
| EXPORTING | ||
| FILENAME | = lv_filename | |
| CONNECTION_RANGE | = lv_connection_range | |
| CONNECTION_ID_RANGE | = lv_connection_id_range | |
| WP_ID_RANGE | = lv_wp_id_range | |
| TRANSID_RANGE | = lv_transid_range | |
| ROOT_ID_RANGE | = lv_root_id_range | |
| CONN_ID_RANGE | = lv_conn_id_range | |
| CONN_CNT_RANGE | = lv_conn_cnt_range | |
| CLIENT | = lv_client | |
| MAX_RECORDS | = lv_max_records | |
| SQL_GET | = lv_sql_get | |
| START_DATE | = lv_start_date | |
| ENQ_GET | = lv_enq_get | |
| RFC_GET | = lv_rfc_get | |
| HTTP_GET | = lv_http_get | |
| BUF_GET | = lv_buf_get | |
| STACK_GET | = lv_stack_get | |
| RAW_GET | = lv_raw_get | |
| PROGRESS_SHOW | = lv_progress_show | |
| POPUP_SEND | = lv_popup_send | |
| START_TIME | = lv_start_time | |
| END_DATE | = lv_end_date | |
| END_TIME | = lv_end_time | |
| USER_RANGE | = lv_user_range | |
| OBJECT_RANGE | = lv_object_range | |
| DURATION_RANGE | = lv_duration_range | |
| OPERATION_RANGE | = lv_operation_range | |
| IMPORTING | ||
| TRACE_RECORDS | = lv_trace_records | |
| ENQ_RECORDS | = lv_enq_records | |
| BUF_RECORDS | = lv_buf_records | |
| RFC_RECORDS | = lv_rfc_records | |
| HTTP_RECORDS | = lv_http_records | |
| RAW_RECORDS | = lv_raw_records | |
| STACK_RECORDS | = lv_stack_records | |
| EXCEPTIONS | ||
| FILE_NOT_OPENABLE = 1 | ||
| ABORT = 2 | ||
| NO_TRACE_TYPE_SELECTED = 3 | ||
| ERROR_EVALUATE_TIME = 4 | ||
| SHOW_FOUND_RECORDS = 5 | ||
| READ_ERROR = 6 | ||
| . " PERFORMANCE_TRACE_GET_RECORDS | ||
ABAP code using 7.40 inline data declarations to call FM PERFORMANCE_TRACE_GET_RECORDS
The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.| DATA(ld_client) | = ' '. | |||
| DATA(ld_sql_get) | = 'X'. | |||
| DATA(ld_start_date) | = 20000101. | |||
| DATA(ld_enq_get) | = ' '. | |||
| DATA(ld_rfc_get) | = ' '. | |||
| DATA(ld_http_get) | = ' '. | |||
| DATA(ld_buf_get) | = ' '. | |||
| DATA(ld_stack_get) | = ' '. | |||
| DATA(ld_raw_get) | = ' '. | |||
| DATA(ld_progress_show) | = ' '. | |||
| DATA(ld_popup_send) | = ' '. | |||
| DATA(ld_start_time) | = 000000. | |||
| DATA(ld_end_date) | = 20091201. | |||
| DATA(ld_end_time) | = 000000. | |||
Search for further information about these or an SAP related objects