SAP Function Modules

RSCDS_CONDENSE_CUBE SAP Function module - Compresses the fact table of a spec. Cube(InfoCube or Aggreagte)







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

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


Pattern for FM RSCDS_CONDENSE_CUBE - RSCDS CONDENSE CUBE





CALL FUNCTION 'RSCDS_CONDENSE_CUBE' "Compresses the fact table of a spec. Cube(InfoCube or Aggreagte)
  EXPORTING
    i_cube =                    " rsdcube-infocube  Name of the INFOCUBES
*   i_aggr_cube = RS_C_FALSE    " rs_bool       If the Cube is a basis or aggregate cube?
    i_max_requid =              " rssid         Request ID up to which compression is performned
*   i_max_cnsid = 0             " rssid         Change-ID upto which compression is performed
*   i_null_elimination = RS_C_FALSE  " rs_bool  Zero elemination during compression?
*   i_update_ref_point = RS_C_TRUE  " rs_bool   For stocks: adapt marker
*   i_show_report = RS_C_FALSE  " rs_bool       Display generated sources?
  IMPORTING
    e_ins_cnt =                 " sy-dbcnt      Number of movement records into E-table
    e_ref_ins_cnt =             " sy-dbcnt      Number of inserted marker records in E-table
    e_del_cnt =                 " sy-dbcnt      Number of deleted records from F-Table
  CHANGING
    c_t_msg =                   " rs_t_msg      BW: Table with Messages (Application Log)
  EXCEPTIONS
    INHERITED_ERROR = 1         "               Error that has already been dealt with on a deeper level
    NOTHING_TO_DO = 2           "
    .  "  RSCDS_CONDENSE_CUBE

ABAP code example for Function Module RSCDS_CONDENSE_CUBE





The ABAP code below is a full code listing to execute function module RSCDS_CONDENSE_CUBE 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_ins_cnt  TYPE SY-DBCNT ,
ld_e_ref_ins_cnt  TYPE SY-DBCNT ,
ld_e_del_cnt  TYPE SY-DBCNT .

DATA(ld_c_t_msg) = 'Check type of data required'.

SELECT single INFOCUBE
FROM RSDCUBE
INTO @DATA(ld_i_cube).

DATA(ld_i_aggr_cube) = 'Check type of data required'.
DATA(ld_i_max_requid) = 'Check type of data required'.
DATA(ld_i_max_cnsid) = 'Check type of data required'.
DATA(ld_i_null_elimination) = 'Check type of data required'.
DATA(ld_i_update_ref_point) = 'Check type of data required'.
DATA(ld_i_show_report) = 'Check type of data required'. . CALL FUNCTION 'RSCDS_CONDENSE_CUBE' EXPORTING i_cube = ld_i_cube * i_aggr_cube = ld_i_aggr_cube i_max_requid = ld_i_max_requid * i_max_cnsid = ld_i_max_cnsid * i_null_elimination = ld_i_null_elimination * i_update_ref_point = ld_i_update_ref_point * i_show_report = ld_i_show_report IMPORTING e_ins_cnt = ld_e_ins_cnt e_ref_ins_cnt = ld_e_ref_ins_cnt e_del_cnt = ld_e_del_cnt CHANGING c_t_msg = ld_c_t_msg EXCEPTIONS INHERITED_ERROR = 1 NOTHING_TO_DO = 2 . " RSCDS_CONDENSE_CUBE
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.







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_c_t_msg  TYPE RS_T_MSG ,
ld_e_ins_cnt  TYPE SY-DBCNT ,
ld_i_cube  TYPE RSDCUBE-INFOCUBE ,
ld_e_ref_ins_cnt  TYPE SY-DBCNT ,
ld_i_aggr_cube  TYPE RS_BOOL ,
ld_e_del_cnt  TYPE SY-DBCNT ,
ld_i_max_requid  TYPE RSSID ,
ld_i_max_cnsid  TYPE RSSID ,
ld_i_null_elimination  TYPE RS_BOOL ,
ld_i_update_ref_point  TYPE RS_BOOL ,
ld_i_show_report  TYPE RS_BOOL .

ld_c_t_msg = 'Check type of data required'.

SELECT single INFOCUBE
FROM RSDCUBE
INTO ld_i_cube.

ld_i_aggr_cube = 'Check type of data required'.
ld_i_max_requid = 'Check type of data required'.
ld_i_max_cnsid = 'Check type of data required'.
ld_i_null_elimination = 'Check type of data required'.
ld_i_update_ref_point = 'Check type of data required'.
ld_i_show_report = '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 RSCDS_CONDENSE_CUBE or its description.