SAP Function Modules

RSTT_TRACE_EXECUTE SAP Function module - Executes Trace Based on Trace Mode via RFC







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
remote enabled module settings


Pattern for FM RSTT_TRACE_EXECUTE - RSTT TRACE EXECUTE





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

ABAP code example for Function Module 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).

DATA:
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 .

DATA(ld_c_s_trun_state) = 'Check type of data required'.
DATA(ld_i_tracemode) = 'Check type of data required'.
DATA(ld_i_traceguid) = 'Check type of data required'.
DATA(ld_i_playvarid) = 'Check type of data required'.
DATA(ld_i_history_check) = 'Check type of data required'.
DATA(ld_i_log_max_errorno) = 'Check type of data required'.
DATA(ld_i_refvarid) = 'Check type of data required'.
DATA(ld_i_tarea) = 'Check type of data required'.
DATA(ld_i_objnm_data) = 'Check type of data required'.
DATA(ld_i_cguid) = 'Check type of data required'.
DATA(ld_i_refvartext) = 'Check type of data required'.
DATA(ld_i_actionguid) = 'Check type of data required'.
DATA(ld_i_s_refparam) = 'Check type of data required'.
DATA(ld_i_tjobguid) = 'Check type of data required'.
DATA(ld_i_execuser) = 'Check type of data required'.
DATA(ld_i_execlangu) = 'Check type of data required'.
DATA(ld_i_logguid) = 'Check type of data required'.
DATA(ld_i_vericlass) = 'Check type of data required'.
DATA(ld_i_old_msg_handling) = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_mesg to it_e_t_mesg.

"populate fields of struture and append to itab
append wa_e_t_params to it_e_t_params.

"populate fields of struture and append to itab
append wa_e_t_error to it_e_t_error.

"populate fields of struture and append to itab
append wa_e_t_veri to it_e_t_veri.

"populate fields of struture and append to itab
append wa_e_t_detail to it_e_t_detail.

"populate fields of struture and append to itab
append wa_e_t_objnm to it_e_t_objnm.

"populate fields of struture and append to itab
append wa_e_t_cvers to it_e_t_cvers.

"populate fields of struture and append to itab
append wa_e_t_logattr to it_e_t_logattr.

"populate fields of struture and append to itab
append wa_i_t_scanmsg to it_i_t_scanmsg. . CALL FUNCTION 'RSTT_TRACE_EXECUTE' EXPORTING i_tracemode = ld_i_tracemode i_traceguid = ld_i_traceguid i_playvarid = ld_i_playvarid * i_history_check = ld_i_history_check * i_log_max_errorno = ld_i_log_max_errorno * i_refvarid = ld_i_refvarid * i_tarea = ld_i_tarea * i_objnm_data = ld_i_objnm_data * i_cguid = ld_i_cguid * i_refvartext = ld_i_refvartext * i_actionguid = ld_i_actionguid * i_s_refparam = ld_i_s_refparam * i_tjobguid = ld_i_tjobguid * i_execuser = ld_i_execuser * i_execlangu = ld_i_execlangu * i_logguid = ld_i_logguid * i_vericlass = ld_i_vericlass * i_old_msg_handling = ld_i_old_msg_handling TABLES e_t_mesg = it_e_t_mesg * e_t_params = it_e_t_params * e_t_error = it_e_t_error * e_t_veri = it_e_t_veri * e_t_detail = it_e_t_detail * e_t_objnm = it_e_t_objnm * e_t_cvers = it_e_t_cvers * e_t_logattr = it_e_t_logattr * i_t_scanmsg = it_i_t_scanmsg * CHANGING * c_s_trun_state = ld_c_s_trun_state . " RSTT_TRACE_EXECUTE
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

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 .

ld_c_s_trun_state = 'Check type of data required'.
ld_i_tracemode = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_mesg to it_e_t_mesg.
ld_i_traceguid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_params to it_e_t_params.
ld_i_playvarid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_error to it_e_t_error.
ld_i_history_check = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_veri to it_e_t_veri.
ld_i_log_max_errorno = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_detail to it_e_t_detail.
ld_i_refvarid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_objnm to it_e_t_objnm.
ld_i_tarea = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_cvers to it_e_t_cvers.
ld_i_objnm_data = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_e_t_logattr to it_e_t_logattr.
ld_i_cguid = 'Check type of data required'.

"populate fields of struture and append to itab
append wa_i_t_scanmsg to it_i_t_scanmsg.
ld_i_refvartext = 'Check type of data required'.
ld_i_actionguid = 'Check type of data required'.
ld_i_s_refparam = 'Check type of data required'.
ld_i_tjobguid = 'Check type of data required'.
ld_i_execuser = 'Check type of data required'.
ld_i_execlangu = 'Check type of data required'.
ld_i_logguid = 'Check type of data required'.
ld_i_vericlass = 'Check type of data required'.
ld_i_old_msg_handling = 'Check type of data required'.

Contribute (Add Comments)

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.