SAP Function Modules

PRC_PERFORMANCE_TEST SAP Function module - Testmodule for Performance







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

Associated Function Group: PRC_TEST
Released Date: Not Released
Processing type: Remote-Enabled
remote enabled module settings


Pattern for FM PRC_PERFORMANCE_TEST - PRC PERFORMANCE TEST





CALL FUNCTION 'PRC_PERFORMANCE_TEST' "Testmodule for Performance
  EXPORTING
*   iv_procedure_name =         " prct_pric_proc  Pricing Procedure
*   is_testdata =               " prct_testdata  master data for test scenarios
*   iv_delay =                  " prct_runtime  Laufzeit eines Aufrufes in Millisekunden
*   iv_wait_time =              " num1          Numeric 1-character
*   iv_statistical_items =      " int2          2 byte integer (signed)
*   iv_non_stat_items =         " int2          2 byte integer (signed)
*   iv_sim_events =             " seoclsname    Object Type Name
*   iv_write_statistics =       " xfeld         Checkbox
*   iv_write_conditions =       " xfeld         Checkbox
*   iv_step_for_header =        " numc2         Two digit number
*   iv_step_for_item1 =         " numc2         Natural number
*   iv_step_for_item2 =         " numc2         Natural number
*   iv_step_for_item3 =         " numc2         Natural number
*   iv_step_for_item4 =         " numc2         Natural number
*   iv_step_for_item5 =         " numc2         Natural number
    iv_output_mode =            " char1         Single-Character Flag
  IMPORTING
    ev_runtime =                " prct_runtime  Laufzeit eines Aufrufes in Millisekunden
    ev_checks_successful =      " int4          Natural number
    ev_checks_faulty =          " int4          Natural number
    .  "  PRC_PERFORMANCE_TEST

ABAP code example for Function Module PRC_PERFORMANCE_TEST





The ABAP code below is a full code listing to execute function module PRC_PERFORMANCE_TEST 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_ev_runtime  TYPE PRCT_RUNTIME ,
ld_ev_checks_successful  TYPE INT4 ,
ld_ev_checks_faulty  TYPE INT4 .

DATA(ld_iv_procedure_name) = 'Check type of data required'.
DATA(ld_is_testdata) = 'Check type of data required'.
DATA(ld_iv_delay) = 'Check type of data required'.
DATA(ld_iv_wait_time) = 'Check type of data required'.
DATA(ld_iv_statistical_items) = 'Check type of data required'.
DATA(ld_iv_non_stat_items) = 'Check type of data required'.
DATA(ld_iv_sim_events) = 'Check type of data required'.
DATA(ld_iv_write_statistics) = 'Check type of data required'.
DATA(ld_iv_write_conditions) = 'Check type of data required'.
DATA(ld_iv_step_for_header) = 'Check type of data required'.
DATA(ld_iv_step_for_item1) = 'Check type of data required'.
DATA(ld_iv_step_for_item2) = 'Check type of data required'.
DATA(ld_iv_step_for_item3) = 'Check type of data required'.
DATA(ld_iv_step_for_item4) = 'Check type of data required'.
DATA(ld_iv_step_for_item5) = 'Check type of data required'.
DATA(ld_iv_output_mode) = 'Check type of data required'. . CALL FUNCTION 'PRC_PERFORMANCE_TEST' EXPORTING * iv_procedure_name = ld_iv_procedure_name * is_testdata = ld_is_testdata * iv_delay = ld_iv_delay * iv_wait_time = ld_iv_wait_time * iv_statistical_items = ld_iv_statistical_items * iv_non_stat_items = ld_iv_non_stat_items * iv_sim_events = ld_iv_sim_events * iv_write_statistics = ld_iv_write_statistics * iv_write_conditions = ld_iv_write_conditions * iv_step_for_header = ld_iv_step_for_header * iv_step_for_item1 = ld_iv_step_for_item1 * iv_step_for_item2 = ld_iv_step_for_item2 * iv_step_for_item3 = ld_iv_step_for_item3 * iv_step_for_item4 = ld_iv_step_for_item4 * iv_step_for_item5 = ld_iv_step_for_item5 iv_output_mode = ld_iv_output_mode IMPORTING ev_runtime = ld_ev_runtime ev_checks_successful = ld_ev_checks_successful ev_checks_faulty = ld_ev_checks_faulty . " PRC_PERFORMANCE_TEST
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_ev_runtime  TYPE PRCT_RUNTIME ,
ld_iv_procedure_name  TYPE PRCT_PRIC_PROC ,
ld_ev_checks_successful  TYPE INT4 ,
ld_is_testdata  TYPE PRCT_TESTDATA ,
ld_ev_checks_faulty  TYPE INT4 ,
ld_iv_delay  TYPE PRCT_RUNTIME ,
ld_iv_wait_time  TYPE NUM1 ,
ld_iv_statistical_items  TYPE INT2 ,
ld_iv_non_stat_items  TYPE INT2 ,
ld_iv_sim_events  TYPE SEOCLSNAME ,
ld_iv_write_statistics  TYPE XFELD ,
ld_iv_write_conditions  TYPE XFELD ,
ld_iv_step_for_header  TYPE NUMC2 ,
ld_iv_step_for_item1  TYPE NUMC2 ,
ld_iv_step_for_item2  TYPE NUMC2 ,
ld_iv_step_for_item3  TYPE NUMC2 ,
ld_iv_step_for_item4  TYPE NUMC2 ,
ld_iv_step_for_item5  TYPE NUMC2 ,
ld_iv_output_mode  TYPE CHAR1 .

ld_iv_procedure_name = 'Check type of data required'.
ld_is_testdata = 'Check type of data required'.
ld_iv_delay = 'Check type of data required'.
ld_iv_wait_time = 'Check type of data required'.
ld_iv_statistical_items = 'Check type of data required'.
ld_iv_non_stat_items = 'Check type of data required'.
ld_iv_sim_events = 'Check type of data required'.
ld_iv_write_statistics = 'Check type of data required'.
ld_iv_write_conditions = 'Check type of data required'.
ld_iv_step_for_header = 'Check type of data required'.
ld_iv_step_for_item1 = 'Check type of data required'.
ld_iv_step_for_item2 = 'Check type of data required'.
ld_iv_step_for_item3 = 'Check type of data required'.
ld_iv_step_for_item4 = 'Check type of data required'.
ld_iv_step_for_item5 = 'Check type of data required'.
ld_iv_output_mode = '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 PRC_PERFORMANCE_TEST or its description.