RREX_VARIABLE_EXIT 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 RREX_VARIABLE_EXIT into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RREX
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RREX_VARIABLE_EXIT' "SAP Exit for Variables
EXPORTING
i_vnam = " rszglobv-vnam Name (ID) of a Report Variable
i_vartyp = " rszglobv-vartyp Type of a Report Variable
i_vparsel = " rszglobv-vparsel Parameter selection: Single value, interval, selection opt.
i_iobjnm = " rszglobv-iobjnm InfoObject
i_s_cob_pro = " rsd_s_cob_pro
i_s_rkb1d = " rsr_s_rkb1d
i_s_rkb1f = " rro01_s_rkb1f
i_thx_var = " rro01_thx_var
* i_step = " i
IMPORTING
e_t_range = " rsr_t_rangesid
e_meeht = " rszglobv-meeht Unit key
e_mefac = " rszglobv-mefac Quantity exponent
e_waers = " rszglobv-waers Currency Key
e_whfac = " rszglobv-whfac Currency exponent
e_no_screen = " rs_bool Set variable to invisible on variable screen
e_check_again = " rs_bool Process again in exit step 2
EXCEPTIONS
UNKNOWN_VARIABLE = 1 "
UNEXPECTED_VARTYPE = 2 "
INVALID_PERIV = 3 "
NO_REPLACEMENT = 4 "
. " RREX_VARIABLE_EXIT
The ABAP code below is a full code listing to execute function module RREX_VARIABLE_EXIT 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).
| ld_e_t_range | TYPE RSR_T_RANGESID , |
| ld_e_meeht | TYPE RSZGLOBV-MEEHT , |
| ld_e_mefac | TYPE RSZGLOBV-MEFAC , |
| ld_e_waers | TYPE RSZGLOBV-WAERS , |
| ld_e_whfac | TYPE RSZGLOBV-WHFAC , |
| ld_e_no_screen | TYPE RS_BOOL , |
| ld_e_check_again | TYPE RS_BOOL . |
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_t_range | TYPE RSR_T_RANGESID , |
| ld_i_vnam | TYPE RSZGLOBV-VNAM , |
| ld_e_meeht | TYPE RSZGLOBV-MEEHT , |
| ld_i_vartyp | TYPE RSZGLOBV-VARTYP , |
| ld_e_mefac | TYPE RSZGLOBV-MEFAC , |
| ld_i_vparsel | TYPE RSZGLOBV-VPARSEL , |
| ld_e_waers | TYPE RSZGLOBV-WAERS , |
| ld_i_iobjnm | TYPE RSZGLOBV-IOBJNM , |
| ld_e_whfac | TYPE RSZGLOBV-WHFAC , |
| ld_i_s_cob_pro | TYPE RSD_S_COB_PRO , |
| ld_e_no_screen | TYPE RS_BOOL , |
| ld_i_s_rkb1d | TYPE RSR_S_RKB1D , |
| ld_e_check_again | TYPE RS_BOOL , |
| ld_i_s_rkb1f | TYPE RRO01_S_RKB1F , |
| ld_i_thx_var | TYPE RRO01_THX_VAR , |
| ld_i_step | TYPE I . |
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 RREX_VARIABLE_EXIT or its description.
RREX_VARIABLE_EXIT - SAP Exit for Variables RREX_BBS_OLTP_EXIT - SAP Exit for RRI: Mapping Before Switch to OLTP RREX_BBS_EXIT - SAP Exit for RRI Field Mapping RRDR_CREATE_HRNP_LINKS - Drag & Relate URLs for an InfoObject, System, and Multiple Keys RRBA_NUMBER_RANGE_RESET - Sets Value of Number Range Object to "0" RRBA_NUMBER_INTERVAL_CREATE_NA - Generates Interval for Number Range Object in Correct Client