SAP Function Modules

RSDRT_INFOCUBE_DATA_MULTIPLY SAP Function module - Multiplication of existing InfoCube data







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

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


Pattern for FM RSDRT_INFOCUBE_DATA_MULTIPLY - RSDRT INFOCUBE DATA MULTIPLY





CALL FUNCTION 'RSDRT_INFOCUBE_DATA_MULTIPLY' "Multiplication of existing InfoCube data
  EXPORTING
    i_infocube =                " rsinfoprov    InfoCube
*   i_facttab_from = 'F'        " rsdu_facttabtp  Fact table for reading
*   i_facttab_to = 'F'          " rsdu_facttabtp  Fact table for writing
*   i_new_rows = 100            " i             Number of new records
*   i_packagesize = 50000       " i             Size of internal processing packages
*   i_random_seed = 0           " i             Initial value of random generator (0=clock based)
*   i_pdim_set_0 = RS_C_UNKNOWN  " rs_bool      Setting P-dimensions-IDs to 0 yes/no?
*   i_debug = RS_C_FALSE        " rs_bool       Debug mode on/off?
  IMPORTING
    e_count =                   " i             Number of actually written sets
  EXCEPTIONS
    ILLEGAL_INPUT = 1           "               Incorrect Input Parameter
    READ_ERROR = 2              "               Error Reading Data
    WRITE_ERROR = 3             "               Write Error
    .  "  RSDRT_INFOCUBE_DATA_MULTIPLY

ABAP code example for Function Module RSDRT_INFOCUBE_DATA_MULTIPLY





The ABAP code below is a full code listing to execute function module RSDRT_INFOCUBE_DATA_MULTIPLY 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_count  TYPE I .

DATA(ld_i_infocube) = 'Check type of data required'.
DATA(ld_i_facttab_from) = 'Check type of data required'.
DATA(ld_i_facttab_to) = 'Check type of data required'.
DATA(ld_i_new_rows) = 'Check type of data required'.
DATA(ld_i_packagesize) = 'Check type of data required'.
DATA(ld_i_random_seed) = 'Check type of data required'.
DATA(ld_i_pdim_set_0) = 'Check type of data required'.
DATA(ld_i_debug) = 'Check type of data required'. . CALL FUNCTION 'RSDRT_INFOCUBE_DATA_MULTIPLY' EXPORTING i_infocube = ld_i_infocube * i_facttab_from = ld_i_facttab_from * i_facttab_to = ld_i_facttab_to * i_new_rows = ld_i_new_rows * i_packagesize = ld_i_packagesize * i_random_seed = ld_i_random_seed * i_pdim_set_0 = ld_i_pdim_set_0 * i_debug = ld_i_debug IMPORTING e_count = ld_e_count EXCEPTIONS ILLEGAL_INPUT = 1 READ_ERROR = 2 WRITE_ERROR = 3 . " RSDRT_INFOCUBE_DATA_MULTIPLY
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 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_count  TYPE I ,
ld_i_infocube  TYPE RSINFOPROV ,
ld_i_facttab_from  TYPE RSDU_FACTTABTP ,
ld_i_facttab_to  TYPE RSDU_FACTTABTP ,
ld_i_new_rows  TYPE I ,
ld_i_packagesize  TYPE I ,
ld_i_random_seed  TYPE I ,
ld_i_pdim_set_0  TYPE RS_BOOL ,
ld_i_debug  TYPE RS_BOOL .

ld_i_infocube = 'Check type of data required'.
ld_i_facttab_from = 'Check type of data required'.
ld_i_facttab_to = 'Check type of data required'.
ld_i_new_rows = 'Check type of data required'.
ld_i_packagesize = 'Check type of data required'.
ld_i_random_seed = 'Check type of data required'.
ld_i_pdim_set_0 = 'Check type of data required'.
ld_i_debug = '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 RSDRT_INFOCUBE_DATA_MULTIPLY or its description.