SAP Function Modules

RSDG_CUBE_DDIC_SAVE_GET SAP Function module - Save and / or collecting the DDIC objects of an InfoCube







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

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


Pattern for FM RSDG_CUBE_DDIC_SAVE_GET - RSDG CUBE DDIC SAVE GET





CALL FUNCTION 'RSDG_CUBE_DDIC_SAVE_GET' "Save and / or collecting the DDIC objects of an InfoCube
  EXPORTING
*   i_only_collect = RS_C_FALSE  " rs_bool      'X': only collect (not save) the DDIC Obj
*   i_progress = RS_C_TRUE      " rs_bool       Display Progress
*   i_langu = SY-LANGU          " sy-langu      Language of the texts in I_T_CUBET
    i_t_cube_iobj =             " rsd_t_cube_iobj  InfoObjects in InfoCube
*   i_t_cubet =                 " rsd_t_cubet   More InfoCube texts
*   i_t_dimet =                 " rsd_t_dimet   Additional dimension texts
*   i_t_dime_iobj =             " rsd_t_dime_iobj  Relation: Dimension - InfoObject
*   i_t_ic_val_iobj =           " rsd_t_ic_val_iobj  InfoObjects of the validation table
  IMPORTING
    e_t_mage =                  " rsdg_t_mage   DDIC objects that were created
    e_t_ddstorage =             " rsdu_t_ddstorage  List of indices for ADD_DDSTORAGE
    e_t_dd12v =                 " rsdg_t_dd12v  List of Indexes
    e_t_dd17v =                 " rsdg_t_dd17v  List of index fields
    e_t_msg =                   " rs_t_msg      Messages
    e_subrc =                   " sy-subrc      Return code: <> 0 = error
  CHANGING
    c_s_cube =                  " rsd_s_cube    InfoCube
*   c_t_dime =                  " rsd_t_dime    Dimensions
*   c_s_db_par =                " rsdg_s_db_par  DB parameter bar
    .  "  RSDG_CUBE_DDIC_SAVE_GET

ABAP code example for Function Module RSDG_CUBE_DDIC_SAVE_GET





The ABAP code below is a full code listing to execute function module RSDG_CUBE_DDIC_SAVE_GET 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_mage  TYPE RSDG_T_MAGE ,
ld_e_t_ddstorage  TYPE RSDU_T_DDSTORAGE ,
ld_e_t_dd12v  TYPE RSDG_T_DD12V ,
ld_e_t_dd17v  TYPE RSDG_T_DD17V ,
ld_e_t_msg  TYPE RS_T_MSG ,
ld_e_subrc  TYPE SY-SUBRC .

DATA(ld_c_s_cube) = 'Check type of data required'.
DATA(ld_c_t_dime) = 'Check type of data required'.
DATA(ld_c_s_db_par) = 'Check type of data required'.
DATA(ld_i_only_collect) = 'Check type of data required'.
DATA(ld_i_progress) = 'Check type of data required'.
DATA(ld_i_langu) = 'Check type of data required'.
DATA(ld_i_t_cube_iobj) = 'Check type of data required'.
DATA(ld_i_t_cubet) = 'Check type of data required'.
DATA(ld_i_t_dimet) = 'Check type of data required'.
DATA(ld_i_t_dime_iobj) = 'Check type of data required'.
DATA(ld_i_t_ic_val_iobj) = 'Check type of data required'. . CALL FUNCTION 'RSDG_CUBE_DDIC_SAVE_GET' EXPORTING * i_only_collect = ld_i_only_collect * i_progress = ld_i_progress * i_langu = ld_i_langu i_t_cube_iobj = ld_i_t_cube_iobj * i_t_cubet = ld_i_t_cubet * i_t_dimet = ld_i_t_dimet * i_t_dime_iobj = ld_i_t_dime_iobj * i_t_ic_val_iobj = ld_i_t_ic_val_iobj IMPORTING e_t_mage = ld_e_t_mage e_t_ddstorage = ld_e_t_ddstorage e_t_dd12v = ld_e_t_dd12v e_t_dd17v = ld_e_t_dd17v e_t_msg = ld_e_t_msg e_subrc = ld_e_subrc CHANGING c_s_cube = ld_c_s_cube * c_t_dime = ld_c_t_dime * c_s_db_par = ld_c_s_db_par . " RSDG_CUBE_DDIC_SAVE_GET
IF SY-SUBRC EQ 0. "All OK 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_s_cube  TYPE RSD_S_CUBE ,
ld_e_t_mage  TYPE RSDG_T_MAGE ,
ld_i_only_collect  TYPE RS_BOOL ,
ld_c_t_dime  TYPE RSD_T_DIME ,
ld_e_t_ddstorage  TYPE RSDU_T_DDSTORAGE ,
ld_i_progress  TYPE RS_BOOL ,
ld_c_s_db_par  TYPE RSDG_S_DB_PAR ,
ld_e_t_dd12v  TYPE RSDG_T_DD12V ,
ld_i_langu  TYPE SY-LANGU ,
ld_e_t_dd17v  TYPE RSDG_T_DD17V ,
ld_i_t_cube_iobj  TYPE RSD_T_CUBE_IOBJ ,
ld_e_t_msg  TYPE RS_T_MSG ,
ld_i_t_cubet  TYPE RSD_T_CUBET ,
ld_e_subrc  TYPE SY-SUBRC ,
ld_i_t_dimet  TYPE RSD_T_DIMET ,
ld_i_t_dime_iobj  TYPE RSD_T_DIME_IOBJ ,
ld_i_t_ic_val_iobj  TYPE RSD_T_IC_VAL_IOBJ .

ld_c_s_cube = 'Check type of data required'.
ld_i_only_collect = 'Check type of data required'.
ld_c_t_dime = 'Check type of data required'.
ld_i_progress = 'Check type of data required'.
ld_c_s_db_par = 'Check type of data required'.
ld_i_langu = 'Check type of data required'.
ld_i_t_cube_iobj = 'Check type of data required'.
ld_i_t_cubet = 'Check type of data required'.
ld_i_t_dimet = 'Check type of data required'.
ld_i_t_dime_iobj = 'Check type of data required'.
ld_i_t_ic_val_iobj = '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 RSDG_CUBE_DDIC_SAVE_GET or its description.