SAP Function Modules

RSDRT_TRACE_COMPARE SAP Function module - compares a given trace with a stored







RSDRT_TRACE_COMPARE 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 RSDRT_TRACE_COMPARE into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RSDRT
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSDRT_TRACE_COMPARE - RSDRT TRACE COMPARE





CALL FUNCTION 'RSDRT_TRACE_COMPARE' "compares a given trace with a stored
  EXPORTING
    i_infoprov =                " rsinfoprov    InfoProvider
    i_queries =                 " i             Number of Queries
    i_seed =                    " i             Initial Value for Random Number Generator
    i_t_qlog =                  " rsdrt_t_qlog  Table of (Test-) Query Log Information
*   i_perf_variation = 0        " i             max. Performace deviation in percent (0 = do not check)
*   i_show_always = RS_C_FALSE  " rs_bool       Display trace comparison always yes/no
*   i_trace_tests = RS_C_TRUE   " rs_bool       Write test result into Infocube
  IMPORTING
    e_identical =               " rs_bool       Traces identical yes/no
    e_t_qlog =                  " rsdrt_t_qlog  List of non-identical lines
  EXCEPTIONS
    NO_TRACE = 1                "               there is no saved trace for these parameters
    .  "  RSDRT_TRACE_COMPARE

ABAP code example for Function Module RSDRT_TRACE_COMPARE





The ABAP code below is a full code listing to execute function module RSDRT_TRACE_COMPARE 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:
ld_e_identical  TYPE RS_BOOL ,
ld_e_t_qlog  TYPE RSDRT_T_QLOG .

DATA(ld_i_infoprov) = 'Check type of data required'.
DATA(ld_i_queries) = 'Check type of data required'.
DATA(ld_i_seed) = 'Check type of data required'.
DATA(ld_i_t_qlog) = 'Check type of data required'.
DATA(ld_i_perf_variation) = 'Check type of data required'.
DATA(ld_i_show_always) = 'Check type of data required'.
DATA(ld_i_trace_tests) = 'Check type of data required'. . CALL FUNCTION 'RSDRT_TRACE_COMPARE' EXPORTING i_infoprov = ld_i_infoprov i_queries = ld_i_queries i_seed = ld_i_seed i_t_qlog = ld_i_t_qlog * i_perf_variation = ld_i_perf_variation * i_show_always = ld_i_show_always * i_trace_tests = ld_i_trace_tests IMPORTING e_identical = ld_e_identical e_t_qlog = ld_e_t_qlog EXCEPTIONS NO_TRACE = 1 . " RSDRT_TRACE_COMPARE
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here 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_e_identical  TYPE RS_BOOL ,
ld_i_infoprov  TYPE RSINFOPROV ,
ld_e_t_qlog  TYPE RSDRT_T_QLOG ,
ld_i_queries  TYPE I ,
ld_i_seed  TYPE I ,
ld_i_t_qlog  TYPE RSDRT_T_QLOG ,
ld_i_perf_variation  TYPE I ,
ld_i_show_always  TYPE RS_BOOL ,
ld_i_trace_tests  TYPE RS_BOOL .

ld_i_infoprov = 'Check type of data required'.
ld_i_queries = 'Check type of data required'.
ld_i_seed = 'Check type of data required'.
ld_i_t_qlog = 'Check type of data required'.
ld_i_perf_variation = 'Check type of data required'.
ld_i_show_always = 'Check type of data required'.
ld_i_trace_tests = '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 RSDRT_TRACE_COMPARE or its description.