SAP Function Modules

RSVAREXIT_0SMD_15W SAP Function module - Interval of days last 30 days







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

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


Pattern for FM RSVAREXIT_0SMD_15W - RSVAREXIT 0SMD 15W





CALL FUNCTION 'RSVAREXIT_0SMD_15W' "Interval of days last 30 days
  EXPORTING
    i_vnam =                    " rszvnam       Name (ID) of a Report Variable
    i_vartyp =                  " rszvartyp     Type of a Report Variable
    i_iobjnm =                  " rsiobjnm      InfoObject
    i_s_cob_pro =               " rsd_s_cob_pro  InfoObject Properties (in Context of InfoCube / ODS Object)
    i_s_rkb1d =                 " rsr_s_rkb1d   Control Bar OLAP Processor
    i_s_rkb1f =                 " rro01_s_rkb1f
    i_thx_var =                 " rro01_thx_var  Table of All Variables
*   i_step =                    " i
  IMPORTING
    e_t_range =                 " rsr_t_rangesid
  EXCEPTIONS
    UNKNOWN_VARIABLE = 1        "
    UNEXPECTED_VARTYPE = 2      "
    INVALID_PERIV = 3           "
    VARIABLE_INITIAL = 4        "
    NO_PROCESSING = 5           "
    .  "  RSVAREXIT_0SMD_15W

ABAP code example for Function Module RSVAREXIT_0SMD_15W





The ABAP code below is a full code listing to execute function module RSVAREXIT_0SMD_15W 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_t_range  TYPE RSR_T_RANGESID .

DATA(ld_i_vnam) = 'Check type of data required'.
DATA(ld_i_vartyp) = 'Check type of data required'.
DATA(ld_i_iobjnm) = 'Check type of data required'.
DATA(ld_i_s_cob_pro) = 'Check type of data required'.
DATA(ld_i_s_rkb1d) = 'Check type of data required'.
DATA(ld_i_s_rkb1f) = 'Check type of data required'.
DATA(ld_i_thx_var) = 'Check type of data required'.
DATA(ld_i_step) = 'Check type of data required'. . CALL FUNCTION 'RSVAREXIT_0SMD_15W' EXPORTING i_vnam = ld_i_vnam i_vartyp = ld_i_vartyp i_iobjnm = ld_i_iobjnm i_s_cob_pro = ld_i_s_cob_pro i_s_rkb1d = ld_i_s_rkb1d i_s_rkb1f = ld_i_s_rkb1f i_thx_var = ld_i_thx_var * i_step = ld_i_step IMPORTING e_t_range = ld_e_t_range EXCEPTIONS UNKNOWN_VARIABLE = 1 UNEXPECTED_VARTYPE = 2 INVALID_PERIV = 3 VARIABLE_INITIAL = 4 NO_PROCESSING = 5 . " RSVAREXIT_0SMD_15W
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 ELSEIF SY-SUBRC EQ 3. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 4. "Exception "Add code for exception here ELSEIF SY-SUBRC EQ 5. "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_t_range  TYPE RSR_T_RANGESID ,
ld_i_vnam  TYPE RSZVNAM ,
ld_i_vartyp  TYPE RSZVARTYP ,
ld_i_iobjnm  TYPE RSIOBJNM ,
ld_i_s_cob_pro  TYPE RSD_S_COB_PRO ,
ld_i_s_rkb1d  TYPE RSR_S_RKB1D ,
ld_i_s_rkb1f  TYPE RRO01_S_RKB1F ,
ld_i_thx_var  TYPE RRO01_THX_VAR ,
ld_i_step  TYPE I .

ld_i_vnam = 'Check type of data required'.
ld_i_vartyp = 'Check type of data required'.
ld_i_iobjnm = 'Check type of data required'.
ld_i_s_cob_pro = 'Check type of data required'.
ld_i_s_rkb1d = 'Check type of data required'.
ld_i_s_rkb1f = 'Check type of data required'.
ld_i_thx_var = 'Check type of data required'.
ld_i_step = '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 RSVAREXIT_0SMD_15W or its description.