BM_F4_BENCHMARK 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 BM_F4_BENCHMARK into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
AFWBM_SERVICES
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'BM_F4_BENCHMARK' "Input Help for Benchmarks
EXPORTING
i_dynpprog = " sy-repid
i_dynpnr = " sy-dynnr Current Screen Number
i_dynprofield = " help_info-dynprofld Field Name
* i_stepl = 0 " sy-stepl Index of Current Step Loop Line
* i_only_ok = " afwch_flag Consistent Benchmarks Only
* i_valdate = " afwbm_valdate Date: Valid From (Inclusive)
EXCEPTIONS
INTERNAL_ERROR = 1 " Internal Error
. " BM_F4_BENCHMARK
The ABAP code below is a full code listing to execute function module BM_F4_BENCHMARK 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_i_dynpprog) = 'Check type of data required'.
DATA(ld_i_dynpnr) = 'some text here'.
DATA(ld_i_dynprofield) = some text here
DATA(ld_i_stepl) = 'some text here'.
DATA(ld_i_only_ok) = 'some text here'.
DATA(ld_i_valdate) = 'some text here'. . CALL FUNCTION 'BM_F4_BENCHMARK' EXPORTING i_dynpprog = ld_i_dynpprog i_dynpnr = ld_i_dynpnr i_dynprofield = ld_i_dynprofield * i_stepl = ld_i_stepl * i_only_ok = ld_i_only_ok * i_valdate = ld_i_valdate EXCEPTIONS INTERNAL_ERROR = 1 . " BM_F4_BENCHMARK
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ENDIF.
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_i_dynpprog | TYPE SY-REPID , |
| ld_i_dynpnr | TYPE SY-DYNNR , |
| ld_i_dynprofield | TYPE HELP_INFO-DYNPROFLD , |
| ld_i_stepl | TYPE SY-STEPL , |
| ld_i_only_ok | TYPE AFWCH_FLAG , |
| ld_i_valdate | TYPE AFWBM_VALDATE . |
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 BM_F4_BENCHMARK or its description.