RRS_SH_FROM_VREP_FILL 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 RRS_SH_FROM_VREP_FILL into the relevant SAP transaction such as SE37 or SE80.
Associated Function Group:
RRS2
Released Date:
Not Released
Processing type: Normal fucntion module
CALL FUNCTION 'RRS_SH_FROM_VREP_FILL' "Fills Variables in Table SH with Values from Table VREP
EXPORTING
i_thx_vrep = " rro01_thx_vrep
i_infocube = " rsd_infocube
* i_checkmode = RS_C_FALSE " rs_bool
* i_mostrecent = RS_C_FALSE " rsr_mostrecent
CHANGING
c_th_sh = " rrkg_th_sh
EXCEPTIONS
HIERARCHY_NOT_FOUND = 1 "
X_MESSAGE = 2 "
. " RRS_SH_FROM_VREP_FILL
The ABAP code below is a full code listing to execute function module RRS_SH_FROM_VREP_FILL 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_c_th_sh) = 'Check type of data required'.
DATA(ld_i_thx_vrep) = 'Check type of data required'.
DATA(ld_i_infocube) = 'Check type of data required'.
DATA(ld_i_checkmode) = 'Check type of data required'.
DATA(ld_i_mostrecent) = 'Check type of data required'. . CALL FUNCTION 'RRS_SH_FROM_VREP_FILL' EXPORTING i_thx_vrep = ld_i_thx_vrep i_infocube = ld_i_infocube * i_checkmode = ld_i_checkmode * i_mostrecent = ld_i_mostrecent CHANGING c_th_sh = ld_c_th_sh EXCEPTIONS HIERARCHY_NOT_FOUND = 1 X_MESSAGE = 2 . " RRS_SH_FROM_VREP_FILL
IF SY-SUBRC EQ 0. "All OK ELSEIF SY-SUBRC EQ 1. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 2. "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_c_th_sh | TYPE RRKG_TH_SH , |
| ld_i_thx_vrep | TYPE RRO01_THX_VREP , |
| ld_i_infocube | TYPE RSD_INFOCUBE , |
| ld_i_checkmode | TYPE RS_BOOL , |
| ld_i_mostrecent | TYPE RSR_MOSTRECENT . |
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 RRS_SH_FROM_VREP_FILL or its description.
RRS_SH_FROM_VREP_FILL - Fills Variables in Table SH with Values from Table VREP RRS_SHOW_SIMPLE_F4_HELP - Displays Simple Search Help RRS_SHOW_COMPLEX_F4_HELP - Displays Complex Search Help RRS_SHLP_EXIT_VARIABLE - Search help exit RRS_SHLP_EXIT_HELP_IN_HELP - Search help exit RRS_SET_PARAMETER_ID - BW: Set Parameter ID for Variables