SAP RSDG_CUBE_CHECK_DDIC Function Module for Checks/lists DDIC objects of an InfoCube
RSDG_CUBE_CHECK_DDIC is a standard rsdg cube check ddic SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks/lists 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 check ddic FM, simply by entering the name RSDG_CUBE_CHECK_DDIC 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_CHECK_DDIC 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_CHECK_DDIC'"Checks/lists DDIC objects of an InfoCube.
EXPORTING
I_INFOCUBE = "InfoCube
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "to be read version
* I_GET_ONLY = RS_C_FALSE "only collect without state check
* I_READ_CUBE = RS_C_TRUE "Read Cube(if C_T_ ... is not given)
IMPORTING
E_T_MAGE = "DDIC Objects
E_T_DD12V = "List of Indexes
E_T_DD17V = "List of index fields
E_T_MSG = "Messages
E_S_DB_PAR = "DB parameter bar
E_SUBRC = "ReturnCode <> 0: InfoCube is not active
CHANGING
* C_S_CUBE = "field list: InfoCube
* C_T_CUBE_IOBJ = "InfoObjects in InfoCube
* C_T_DIME = "Dimensions
* C_T_CUBE_DIME = "Relation: InfoCube - Dimension
* C_T_DIME_IOBJ = "Relation: Dimension - InfoObject
* C_T_IC_VAL_IOBJ = "InfoObjects of the validation table
EXCEPTIONS
INFOCUBE_NOT_FOUND = 1
IMPORTING Parameters details for RSDG_CUBE_CHECK_DDIC
I_INFOCUBE - InfoCube
Data type: RSD_INFOCUBEOptional: No
Call by Reference: No ( called with pass by value option)
I_OBJVERS - to be read version
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_GET_ONLY - only collect without state check
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_READ_CUBE - Read Cube(if C_T_ ... is not given)
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSDG_CUBE_CHECK_DDIC
E_T_MAGE - DDIC Objects
Data type: RSDG_T_MAGEOptional: No
Call by Reference: Yes
E_T_DD12V - List of Indexes
Data type: RSDG_T_DD12VOptional: No
Call by Reference: Yes
E_T_DD17V - List of index fields
Data type: RSDG_T_DD17VOptional: No
Call by Reference: Yes
E_T_MSG - Messages
Data type: RS_T_MSGOptional: No
Call by Reference: Yes
E_S_DB_PAR - DB parameter bar
Data type: RSDG_S_DB_PAROptional: No
Call by Reference: Yes
E_SUBRC - ReturnCode <> 0: InfoCube is not active
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
CHANGING Parameters details for RSDG_CUBE_CHECK_DDIC
C_S_CUBE - field list: InfoCube
Data type: RSD_S_CUBEOptional: Yes
Call by Reference: Yes
C_T_CUBE_IOBJ - InfoObjects in InfoCube
Data type: RSD_T_CUBE_IOBJOptional: Yes
Call by Reference: Yes
C_T_DIME - Dimensions
Data type: RSD_T_DIMEOptional: Yes
Call by Reference: Yes
C_T_CUBE_DIME - Relation: InfoCube - Dimension
Data type: RSD_T_CUBE_DIMEOptional: Yes
Call by Reference: Yes
C_T_DIME_IOBJ - Relation: Dimension - InfoObject
Data type: RSD_T_DIME_IOBJOptional: Yes
Call by Reference: Yes
C_T_IC_VAL_IOBJ - InfoObjects of the validation table
Data type: RSD_T_IC_VAL_IOBJOptional: Yes
Call by Reference: Yes
EXCEPTIONS details
INFOCUBE_NOT_FOUND - InfoCube not found
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSDG_CUBE_CHECK_DDIC 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_infocube | TYPE RSD_INFOCUBE, " | |||
lv_infocube_not_found | TYPE RSD_INFOCUBE, " | |||
lv_e_t_dd12v | TYPE RSDG_T_DD12V, " | |||
lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
lv_c_t_cube_iobj | TYPE RSD_T_CUBE_IOBJ, " | |||
lv_c_t_dime | TYPE RSD_T_DIME, " | |||
lv_e_t_dd17v | TYPE RSDG_T_DD17V, " | |||
lv_i_get_only | TYPE RS_BOOL, " RS_C_FALSE | |||
lv_e_t_msg | TYPE RS_T_MSG, " | |||
lv_i_read_cube | TYPE RS_BOOL, " RS_C_TRUE | |||
lv_c_t_cube_dime | TYPE RSD_T_CUBE_DIME, " | |||
lv_e_s_db_par | TYPE RSDG_S_DB_PAR, " | |||
lv_c_t_dime_iobj | TYPE RSD_T_DIME_IOBJ, " | |||
lv_e_subrc | TYPE SY-SUBRC, " | |||
lv_c_t_ic_val_iobj | TYPE RSD_T_IC_VAL_IOBJ. " |
  CALL FUNCTION 'RSDG_CUBE_CHECK_DDIC' "Checks/lists DDIC objects of an InfoCube |
EXPORTING | ||
I_INFOCUBE | = lv_i_infocube | |
I_OBJVERS | = lv_i_objvers | |
I_GET_ONLY | = lv_i_get_only | |
I_READ_CUBE | = lv_i_read_cube | |
IMPORTING | ||
E_T_MAGE | = lv_e_t_mage | |
E_T_DD12V | = lv_e_t_dd12v | |
E_T_DD17V | = lv_e_t_dd17v | |
E_T_MSG | = lv_e_t_msg | |
E_S_DB_PAR | = lv_e_s_db_par | |
E_SUBRC | = lv_e_subrc | |
CHANGING | ||
C_S_CUBE | = lv_c_s_cube | |
C_T_CUBE_IOBJ | = lv_c_t_cube_iobj | |
C_T_DIME | = lv_c_t_dime | |
C_T_CUBE_DIME | = lv_c_t_cube_dime | |
C_T_DIME_IOBJ | = lv_c_t_dime_iobj | |
C_T_IC_VAL_IOBJ | = lv_c_t_ic_val_iobj | |
EXCEPTIONS | ||
INFOCUBE_NOT_FOUND = 1 | ||
. " RSDG_CUBE_CHECK_DDIC |
ABAP code using 7.40 inline data declarations to call FM RSDG_CUBE_CHECK_DDIC
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_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
DATA(ld_i_get_only) | = RS_C_FALSE. | |||
DATA(ld_i_read_cube) | = RS_C_TRUE. | |||
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
Search for further information about these or an SAP related objects