SAP PERFORMANCE_TRACE_SUMMARY Function Module for









PERFORMANCE_TRACE_SUMMARY is a standard performance trace summary 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 summary FM, simply by entering the name PERFORMANCE_TRACE_SUMMARY into the relevant SAP transaction such as SE37 or SE38.

Function Group: SSQ0
Program Name: SAPLSSQ0
Main Program: SAPLSSQ0
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function PERFORMANCE_TRACE_SUMMARY 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_SUMMARY'"
EXPORTING
* START_DATE = 20000101 "
* TRACE_OFF = 'X' "
* CLIENT = ' ' "
* STAT_SUM_CHECK_NEW = 'X' "
* FILL_FULL_TAB = ' ' "
* PROVIDE_VALUES = ' ' "
* START_TIME = 000000 "
* END_DATE = 20091201 "
* END_TIME = 000000 "
* TRACE_USER = SY-UNAME "
* SQL_TRACE_EVA = 'X' "
* ENQ_TRACE_EVA = ' ' "
* RFC_TRACE_EVA = ' ' "
* BUF_TRACE_EVA = ' ' "

IMPORTING
SCIT_SQL_ANALYZE = "

TABLES
* STRACSUM_TAB = "Structure for Performance Trace Summary SQL Statements
* STRACRFC_TAB = "
* TRANS_ID_TAB = "
* STRACMSG_TAB = "Message Table

EXCEPTIONS
FILE_NOT_OPENABLE = 1 ERROR_EVALUATE_TIME = 10 ABORT = 2 NO_TRACE_RECORDS = 3 NO_ENQ_TRACE_EVALUATE = 4 NO_BUF_TRACE_EVALUATE = 5 NO_TRACE_EVALUATE = 6 WRONG_TRACE_EVALUATE = 7 ERROR_TRACE_OFF = 8 INTERNAL_ERROR = 9
.



IMPORTING Parameters details for PERFORMANCE_TRACE_SUMMARY

START_DATE -

Data type: SYSTDATLO
Default: 20000101
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRACE_OFF -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

CLIENT -

Data type: MANDT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

STAT_SUM_CHECK_NEW -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

FILL_FULL_TAB -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

PROVIDE_VALUES -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

START_TIME -

Data type: SYSTTIMLO
Default: 000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

END_DATE -

Data type: SYSTDATLO
Default: 20091201
Optional: Yes
Call by Reference: No ( called with pass by value option)

END_TIME -

Data type: SYSTTIMLO
Default: 000000
Optional: Yes
Call by Reference: No ( called with pass by value option)

TRACE_USER -

Data type: SY-UNAME
Default: SY-UNAME
Optional: Yes
Call by Reference: No ( called with pass by value option)

SQL_TRACE_EVA -

Data type: CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

ENQ_TRACE_EVA -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RFC_TRACE_EVA -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

BUF_TRACE_EVA -

Data type: CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for PERFORMANCE_TRACE_SUMMARY

SCIT_SQL_ANALYZE -

Data type: SCIT_SQL_ANALYZE
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for PERFORMANCE_TRACE_SUMMARY

STRACSUM_TAB - Structure for Performance Trace Summary SQL Statements

Data type: STRACSUMTAB
Optional: Yes
Call by Reference: Yes

STRACRFC_TAB -

Data type: STRACRFC
Optional: Yes
Call by Reference: Yes

TRANS_ID_TAB -

Data type: SAPWLSCTID
Optional: Yes
Call by Reference: Yes

STRACMSG_TAB - Message Table

Data type: STRACMSG
Optional: Yes
Call by Reference: Yes

EXCEPTIONS details

FILE_NOT_OPENABLE -

Data type:
Optional: No
Call by Reference: Yes

ERROR_EVALUATE_TIME -

Data type:
Optional: No
Call by Reference: Yes

ABORT -

Data type:
Optional: No
Call by Reference: Yes

NO_TRACE_RECORDS -

Data type:
Optional: No
Call by Reference: Yes

NO_ENQ_TRACE_EVALUATE -

Data type:
Optional: No
Call by Reference: Yes

NO_BUF_TRACE_EVALUATE -

Data type:
Optional: No
Call by Reference: Yes

NO_TRACE_EVALUATE -

Data type:
Optional: No
Call by Reference: Yes

WRONG_TRACE_EVALUATE -

Data type:
Optional: No
Call by Reference: Yes

ERROR_TRACE_OFF -

Data type:
Optional: No
Call by Reference: Yes

INTERNAL_ERROR -

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for PERFORMANCE_TRACE_SUMMARY 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_start_date  TYPE SYSTDATLO, "   20000101
lt_stracsum_tab  TYPE STANDARD TABLE OF STRACSUMTAB, "   
lv_scit_sql_analyze  TYPE SCIT_SQL_ANALYZE, "   
lv_file_not_openable  TYPE SCIT_SQL_ANALYZE, "   
lv_trace_off  TYPE CHAR1, "   'X'
lv_error_evaluate_time  TYPE CHAR1, "   
lv_client  TYPE MANDT, "   SPACE
lv_stat_sum_check_new  TYPE CHAR1, "   'X'
lv_fill_full_tab  TYPE CHAR1, "   SPACE
lv_provide_values  TYPE CHAR1, "   SPACE
lv_abort  TYPE CHAR1, "   
lv_start_time  TYPE SYSTTIMLO, "   000000
lt_stracrfc_tab  TYPE STANDARD TABLE OF STRACRFC, "   
lv_end_date  TYPE SYSTDATLO, "   20091201
lt_trans_id_tab  TYPE STANDARD TABLE OF SAPWLSCTID, "   
lv_no_trace_records  TYPE SAPWLSCTID, "   
lv_end_time  TYPE SYSTTIMLO, "   000000
lt_stracmsg_tab  TYPE STANDARD TABLE OF STRACMSG, "   
lv_no_enq_trace_evaluate  TYPE STRACMSG, "   
lv_trace_user  TYPE SY-UNAME, "   SY-UNAME
lv_no_buf_trace_evaluate  TYPE SY, "   
lv_sql_trace_eva  TYPE CHAR1, "   'X'
lv_no_trace_evaluate  TYPE CHAR1, "   
lv_enq_trace_eva  TYPE CHAR1, "   SPACE
lv_wrong_trace_evaluate  TYPE CHAR1, "   
lv_rfc_trace_eva  TYPE CHAR1, "   SPACE
lv_error_trace_off  TYPE CHAR1, "   
lv_buf_trace_eva  TYPE CHAR1, "   SPACE
lv_internal_error  TYPE CHAR1. "   

  CALL FUNCTION 'PERFORMANCE_TRACE_SUMMARY'  "
    EXPORTING
         START_DATE = lv_start_date
         TRACE_OFF = lv_trace_off
         CLIENT = lv_client
         STAT_SUM_CHECK_NEW = lv_stat_sum_check_new
         FILL_FULL_TAB = lv_fill_full_tab
         PROVIDE_VALUES = lv_provide_values
         START_TIME = lv_start_time
         END_DATE = lv_end_date
         END_TIME = lv_end_time
         TRACE_USER = lv_trace_user
         SQL_TRACE_EVA = lv_sql_trace_eva
         ENQ_TRACE_EVA = lv_enq_trace_eva
         RFC_TRACE_EVA = lv_rfc_trace_eva
         BUF_TRACE_EVA = lv_buf_trace_eva
    IMPORTING
         SCIT_SQL_ANALYZE = lv_scit_sql_analyze
    TABLES
         STRACSUM_TAB = lt_stracsum_tab
         STRACRFC_TAB = lt_stracrfc_tab
         TRANS_ID_TAB = lt_trans_id_tab
         STRACMSG_TAB = lt_stracmsg_tab
    EXCEPTIONS
        FILE_NOT_OPENABLE = 1
        ERROR_EVALUATE_TIME = 10
        ABORT = 2
        NO_TRACE_RECORDS = 3
        NO_ENQ_TRACE_EVALUATE = 4
        NO_BUF_TRACE_EVALUATE = 5
        NO_TRACE_EVALUATE = 6
        WRONG_TRACE_EVALUATE = 7
        ERROR_TRACE_OFF = 8
        INTERNAL_ERROR = 9
. " PERFORMANCE_TRACE_SUMMARY




ABAP code using 7.40 inline data declarations to call FM PERFORMANCE_TRACE_SUMMARY

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_start_date) = 20000101.
 
 
 
 
DATA(ld_trace_off) = 'X'.
 
 
DATA(ld_client) = ' '.
 
DATA(ld_stat_sum_check_new) = 'X'.
 
DATA(ld_fill_full_tab) = ' '.
 
DATA(ld_provide_values) = ' '.
 
 
DATA(ld_start_time) = 000000.
 
 
DATA(ld_end_date) = 20091201.
 
 
 
DATA(ld_end_time) = 000000.
 
 
 
"SELECT single UNAME FROM SY INTO @DATA(ld_trace_user).
DATA(ld_trace_user) = SY-UNAME.
 
 
DATA(ld_sql_trace_eva) = 'X'.
 
 
DATA(ld_enq_trace_eva) = ' '.
 
 
DATA(ld_rfc_trace_eva) = ' '.
 
 
DATA(ld_buf_trace_eva) = ' '.
 
 


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!