SAP RSDG_CUBE_DDIC_SAVE_GET Function Module for Save and / or collecting the DDIC objects of an InfoCube









RSDG_CUBE_DDIC_SAVE_GET is a standard rsdg cube ddic save get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Save and / or collecting the DDIC objects of an InfoCube processing and below is the pattern details for this FM, showing its interface including any import and export parameters, exceptions etc. there is also a full "cut and paste" ABAP pattern code example, along with implementation ABAP coding, documentation and contribution comments specific to this or related objects.


See here to view full function module documentation and code listing for rsdg cube ddic save get FM, simply by entering the name RSDG_CUBE_DDIC_SAVE_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSDG_CUBE_DB_WRITE
Program Name: SAPLRSDG_CUBE_DB_WRITE
Main Program: SAPLRSDG_CUBE_DB_WRITE
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSDG_CUBE_DDIC_SAVE_GET pattern details

In-order to call this FM within your sap programs, simply using the below ABAP pattern details to trigger the function call...or see the full ABAP code listing at the end of this article. You can simply cut and paste this code into your ABAP progrom as it is, including variable declarations.
CALL FUNCTION 'RSDG_CUBE_DDIC_SAVE_GET'"Save and / or collecting the DDIC objects of an InfoCube
EXPORTING
* I_ONLY_COLLECT = RS_C_FALSE "'X': only collect (not save) the DDIC Obj
* I_PROGRESS = RS_C_TRUE "Display Progress
* I_LANGU = SY-LANGU "Language of the texts in I_T_CUBET
I_T_CUBE_IOBJ = "InfoObjects in InfoCube
* I_T_CUBET = "More InfoCube texts
* I_T_DIMET = "Additional dimension texts
* I_T_DIME_IOBJ = "Relation: Dimension - InfoObject
* I_T_IC_VAL_IOBJ = "InfoObjects of the validation table

IMPORTING
E_T_MAGE = "DDIC objects that were created
E_T_DDSTORAGE = "List of indices for ADD_DDSTORAGE
E_T_DD12V = "List of Indexes
E_T_DD17V = "List of index fields
E_T_MSG = "Messages
E_SUBRC = "Return code: <> 0 = error

CHANGING
C_S_CUBE = "InfoCube
* C_T_DIME = "Dimensions
* C_S_DB_PAR = "DB parameter bar
.



IMPORTING Parameters details for RSDG_CUBE_DDIC_SAVE_GET

I_ONLY_COLLECT - 'X': only collect (not save) the DDIC Obj

Data type: RS_BOOL
Default: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_PROGRESS - Display Progress

Data type: RS_BOOL
Default: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_LANGU - Language of the texts in I_T_CUBET

Data type: SY-LANGU
Default: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_T_CUBE_IOBJ - InfoObjects in InfoCube

Data type: RSD_T_CUBE_IOBJ
Optional: No
Call by Reference: Yes

I_T_CUBET - More InfoCube texts

Data type: RSD_T_CUBET
Optional: Yes
Call by Reference: Yes

I_T_DIMET - Additional dimension texts

Data type: RSD_T_DIMET
Optional: Yes
Call by Reference: Yes

I_T_DIME_IOBJ - Relation: Dimension - InfoObject

Data type: RSD_T_DIME_IOBJ
Optional: Yes
Call by Reference: Yes

I_T_IC_VAL_IOBJ - InfoObjects of the validation table

Data type: RSD_T_IC_VAL_IOBJ
Optional: Yes
Call by Reference: Yes

EXPORTING Parameters details for RSDG_CUBE_DDIC_SAVE_GET

E_T_MAGE - DDIC objects that were created

Data type: RSDG_T_MAGE
Optional: No
Call by Reference: Yes

E_T_DDSTORAGE - List of indices for ADD_DDSTORAGE

Data type: RSDU_T_DDSTORAGE
Optional: No
Call by Reference: Yes

E_T_DD12V - List of Indexes

Data type: RSDG_T_DD12V
Optional: No
Call by Reference: Yes

E_T_DD17V - List of index fields

Data type: RSDG_T_DD17V
Optional: No
Call by Reference: Yes

E_T_MSG - Messages

Data type: RS_T_MSG
Optional: No
Call by Reference: Yes

E_SUBRC - Return code: <> 0 = error

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

CHANGING Parameters details for RSDG_CUBE_DDIC_SAVE_GET

C_S_CUBE - InfoCube

Data type: RSD_S_CUBE
Optional: No
Call by Reference: Yes

C_T_DIME - Dimensions

Data type: RSD_T_DIME
Optional: Yes
Call by Reference: Yes

C_S_DB_PAR - DB parameter bar

Data type: RSDG_S_DB_PAR
Optional: Yes
Call by Reference: Yes

Copy and paste ABAP code example for RSDG_CUBE_DDIC_SAVE_GET Function Module

The ABAP code below is a full code listing to execute function module POPUP_TO_CONFIRM including all data declarations. The code uses the original data declarations rather than 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 newer method of declaring data variables on the fly. 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), which i why i have stuck to the origianl for this example.

DATA:
lv_c_s_cube  TYPE RSD_S_CUBE, "   
lv_e_t_mage  TYPE RSDG_T_MAGE, "   
lv_i_only_collect  TYPE RS_BOOL, "   RS_C_FALSE
lv_c_t_dime  TYPE RSD_T_DIME, "   
lv_i_progress  TYPE RS_BOOL, "   RS_C_TRUE
lv_e_t_ddstorage  TYPE RSDU_T_DDSTORAGE, "   
lv_i_langu  TYPE SY-LANGU, "   SY-LANGU
lv_e_t_dd12v  TYPE RSDG_T_DD12V, "   
lv_c_s_db_par  TYPE RSDG_S_DB_PAR, "   
lv_e_t_dd17v  TYPE RSDG_T_DD17V, "   
lv_i_t_cube_iobj  TYPE RSD_T_CUBE_IOBJ, "   
lv_e_t_msg  TYPE RS_T_MSG, "   
lv_i_t_cubet  TYPE RSD_T_CUBET, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_i_t_dimet  TYPE RSD_T_DIMET, "   
lv_i_t_dime_iobj  TYPE RSD_T_DIME_IOBJ, "   
lv_i_t_ic_val_iobj  TYPE RSD_T_IC_VAL_IOBJ. "   

  CALL FUNCTION 'RSDG_CUBE_DDIC_SAVE_GET'  "Save and / or collecting the DDIC objects of an InfoCube
    EXPORTING
         I_ONLY_COLLECT = lv_i_only_collect
         I_PROGRESS = lv_i_progress
         I_LANGU = lv_i_langu
         I_T_CUBE_IOBJ = lv_i_t_cube_iobj
         I_T_CUBET = lv_i_t_cubet
         I_T_DIMET = lv_i_t_dimet
         I_T_DIME_IOBJ = lv_i_t_dime_iobj
         I_T_IC_VAL_IOBJ = lv_i_t_ic_val_iobj
    IMPORTING
         E_T_MAGE = lv_e_t_mage
         E_T_DDSTORAGE = lv_e_t_ddstorage
         E_T_DD12V = lv_e_t_dd12v
         E_T_DD17V = lv_e_t_dd17v
         E_T_MSG = lv_e_t_msg
         E_SUBRC = lv_e_subrc
    CHANGING
         C_S_CUBE = lv_c_s_cube
         C_T_DIME = lv_c_t_dime
         C_S_DB_PAR = lv_c_s_db_par
. " RSDG_CUBE_DDIC_SAVE_GET




ABAP code using 7.40 inline data declarations to call FM RSDG_CUBE_DDIC_SAVE_GET

The below ABAP code uses the newer in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. Please note some of the newer syntax below, such as the @DATA is not available until 4.70 EHP 8.

 
 
DATA(ld_i_only_collect) = RS_C_FALSE.
 
 
DATA(ld_i_progress) = RS_C_TRUE.
 
 
"SELECT single LANGU FROM SY INTO @DATA(ld_i_langu).
DATA(ld_i_langu) = SY-LANGU.
 
 
 
 
 
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!