RSTT_TRACE_EXECUTE is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.
See here to view full function module documentation and code listing, simply by entering the name RSTT_TRACE_EXECUTE into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RSTT_BATCH_CHECKING
Released Date:
Not Released
Processing type: Remote-Enabled
CALL FUNCTION 'RSTT_TRACE_EXECUTE' "Executes Trace Based on Trace Mode via RFC
EXPORTING
i_tracemode = " rstt_tracemode Trace Mode
i_traceguid = " rstt_guid Trace GUID
i_playvarid = " rstt_variantid Play Variant ID
* i_history_check = " rstt_flag Perform a test of error history?
* i_log_max_errorno = " rstt_int4 Maximum Number of Error Cells to Log for Each Check Position
* i_refvarid = " rstt_variantid Reference Data Variant
* i_tarea = " rstt_tarea Application Area
* i_objnm_data = " rstt_flag Collect object parameters?
* i_cguid = " rstt_guid GUID for Coverage Analysis
* i_refvartext = " rstt_lgtxt Reference Data Description
* i_actionguid = " rstt_guid Action GUID -> Storage in Cluster Table
* i_s_refparam = " rstt_s_refparam Parameters for Test Reference
* i_tjobguid = " rstt_guid GUID of Executing Job
* i_execuser = " rstt_tuser Executing User
* i_execlangu = " sylangu Executing System Language
* i_logguid = " rstt_guid GUID of Test Run
* i_vericlass = " classname Check Class of Context Verification
* i_old_msg_handling = " rstt_flag Old Message Processing
TABLES
e_t_mesg = " smesg Message Collector
* e_t_params = " rstt_s_params Parameter List
* e_t_error = " rstt_s_error_simple Error Table
* e_t_veri = " rstt_s_o05_d_tct List of Verification Parameters
* e_t_detail = " rstt_s_o06_d_tct List of Verification Data
* e_t_objnm = " rstt_s_objnm Structure for Meta, Structure, and Program Objects
* e_t_cvers = " rstt_s_cvers Structure for Version of Trace Coverage Analysis
* e_t_logattr = " rstt_s_logattr Attribute Entry for Test Result
* i_t_scanmsg = " rstt_s_msg Search list of messages
* CHANGING
* c_s_trun_state = " rstt_s_trun_state Status Parameters of a Test Run
. " RSTT_TRACE_EXECUTE
The ABAP code below is a full code listing to execute function module RSTT_TRACE_EXECUTE including all data declarations. The code uses 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 original method of declaring data variables up front. 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).
| it_e_t_mesg | TYPE STANDARD TABLE OF SMESG,"TABLES PARAM |
| wa_e_t_mesg | LIKE LINE OF it_e_t_mesg , |
| it_e_t_params | TYPE STANDARD TABLE OF RSTT_S_PARAMS,"TABLES PARAM |
| wa_e_t_params | LIKE LINE OF it_e_t_params , |
| it_e_t_error | TYPE STANDARD TABLE OF RSTT_S_ERROR_SIMPLE,"TABLES PARAM |
| wa_e_t_error | LIKE LINE OF it_e_t_error , |
| it_e_t_veri | TYPE STANDARD TABLE OF RSTT_S_O05_D_TCT,"TABLES PARAM |
| wa_e_t_veri | LIKE LINE OF it_e_t_veri , |
| it_e_t_detail | TYPE STANDARD TABLE OF RSTT_S_O06_D_TCT,"TABLES PARAM |
| wa_e_t_detail | LIKE LINE OF it_e_t_detail , |
| it_e_t_objnm | TYPE STANDARD TABLE OF RSTT_S_OBJNM,"TABLES PARAM |
| wa_e_t_objnm | LIKE LINE OF it_e_t_objnm , |
| it_e_t_cvers | TYPE STANDARD TABLE OF RSTT_S_CVERS,"TABLES PARAM |
| wa_e_t_cvers | LIKE LINE OF it_e_t_cvers , |
| it_e_t_logattr | TYPE STANDARD TABLE OF RSTT_S_LOGATTR,"TABLES PARAM |
| wa_e_t_logattr | LIKE LINE OF it_e_t_logattr , |
| it_i_t_scanmsg | TYPE STANDARD TABLE OF RSTT_S_MSG,"TABLES PARAM |
| wa_i_t_scanmsg | LIKE LINE OF it_i_t_scanmsg . |
The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.
DATA:
| ld_c_s_trun_state | TYPE RSTT_S_TRUN_STATE , |
| ld_i_tracemode | TYPE RSTT_TRACEMODE , |
| it_e_t_mesg | TYPE STANDARD TABLE OF SMESG , |
| wa_e_t_mesg | LIKE LINE OF it_e_t_mesg, |
| ld_i_traceguid | TYPE RSTT_GUID , |
| it_e_t_params | TYPE STANDARD TABLE OF RSTT_S_PARAMS , |
| wa_e_t_params | LIKE LINE OF it_e_t_params, |
| ld_i_playvarid | TYPE RSTT_VARIANTID , |
| it_e_t_error | TYPE STANDARD TABLE OF RSTT_S_ERROR_SIMPLE , |
| wa_e_t_error | LIKE LINE OF it_e_t_error, |
| ld_i_history_check | TYPE RSTT_FLAG , |
| it_e_t_veri | TYPE STANDARD TABLE OF RSTT_S_O05_D_TCT , |
| wa_e_t_veri | LIKE LINE OF it_e_t_veri, |
| ld_i_log_max_errorno | TYPE RSTT_INT4 , |
| it_e_t_detail | TYPE STANDARD TABLE OF RSTT_S_O06_D_TCT , |
| wa_e_t_detail | LIKE LINE OF it_e_t_detail, |
| ld_i_refvarid | TYPE RSTT_VARIANTID , |
| it_e_t_objnm | TYPE STANDARD TABLE OF RSTT_S_OBJNM , |
| wa_e_t_objnm | LIKE LINE OF it_e_t_objnm, |
| ld_i_tarea | TYPE RSTT_TAREA , |
| it_e_t_cvers | TYPE STANDARD TABLE OF RSTT_S_CVERS , |
| wa_e_t_cvers | LIKE LINE OF it_e_t_cvers, |
| ld_i_objnm_data | TYPE RSTT_FLAG , |
| it_e_t_logattr | TYPE STANDARD TABLE OF RSTT_S_LOGATTR , |
| wa_e_t_logattr | LIKE LINE OF it_e_t_logattr, |
| ld_i_cguid | TYPE RSTT_GUID , |
| it_i_t_scanmsg | TYPE STANDARD TABLE OF RSTT_S_MSG , |
| wa_i_t_scanmsg | LIKE LINE OF it_i_t_scanmsg, |
| ld_i_refvartext | TYPE RSTT_LGTXT , |
| ld_i_actionguid | TYPE RSTT_GUID , |
| ld_i_s_refparam | TYPE RSTT_S_REFPARAM , |
| ld_i_tjobguid | TYPE RSTT_GUID , |
| ld_i_execuser | TYPE RSTT_TUSER , |
| ld_i_execlangu | TYPE SYLANGU , |
| ld_i_logguid | TYPE RSTT_GUID , |
| ld_i_vericlass | TYPE CLASSNAME , |
| ld_i_old_msg_handling | TYPE RSTT_FLAG . |
Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSTT_TRACE_EXECUTE or its description.
RSTT_TRACE_EXECUTE - Executes Trace Based on Trace Mode via RFC RSTT_TRACE_CHECK_RFC - Test CATT Trace Across Systems (via RFC) RSTT_TRACE_BI_PORTAL_START - Transfer HTTP Requests for a Trace to BI Portal Processing RSTT_TRACE_BI_PORTAL_RECORD - Include HTTP Request in Call Sequence of Active Trace RSTT_TRACE_BI_PORTAL_INIT - Initialize Trace Execution from Portal Environment RSTT_TRACE_BI_PORTAL_GETREQ - Get HTTP Requests for Portal Trace