SAP RSD_CUBE_MULTI_GET_ONLY_DB Function Module for Info about multiple InfoCubes (only DB fields -> fast access)
RSD_CUBE_MULTI_GET_ONLY_DB is a standard rsd cube multi get only db SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Info about multiple InfoCubes (only DB fields -> fast access) 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 rsd cube multi get only db FM, simply by entering the name RSD_CUBE_MULTI_GET_ONLY_DB into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSDG_CUBE_DB_READ
Program Name: SAPLRSDG_CUBE_DB_READ
Main Program: SAPLRSDG_CUBE_DB_READ
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:
Function RSD_CUBE_MULTI_GET_ONLY_DB 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 'RSD_CUBE_MULTI_GET_ONLY_DB'"Info about multiple InfoCubes (only DB fields -> fast access).
EXPORTING
* I_READ_ALL = RS_C_FALSE "Read All? (Indicator)
* I_T_INFOCUBE = "Table with InfoCubes
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "Version
* I_INCL_APPEND = RS_C_TRUE "With Appends
* I_CUBETYPE = 'B' "Type of InfoCube (base / aggregate)
* I_T_CUBETYPE = "List of Cube types
* I_WITH_ATR_NAV = RS_C_FALSE "Flag: with nav. attributes
IMPORTING
E_T_CUBE = "InfoCubes
E_T_CUBE_IOBJ = "InfoCubes - InfoObjects
E_T_DIME_IOBJ = "Dimensions - InfoObjects
E_T_IC_VAL_IOBJ = "InfoObjects in the validity table of the Cube
E_T_CUBE_PART = "Used InfoCubes in a Multicube
EXCEPTIONS
ILLEGAL_INPUT = 1
IMPORTING Parameters details for RSD_CUBE_MULTI_GET_ONLY_DB
I_READ_ALL - Read All? (Indicator)
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T_INFOCUBE - Table with InfoCubes
Data type: RSD_T_C30Optional: Yes
Call by Reference: No ( called with pass by value option)
I_OBJVERS - Version
Data type: RS_OBJVERSDefault: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_INCL_APPEND - With Appends
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CUBETYPE - Type of InfoCube (base / aggregate)
Data type: RSD_S_CUBE-CUBETYPEDefault: 'B'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_T_CUBETYPE - List of Cube types
Data type: RSD_T_CUBETYPEOptional: Yes
Call by Reference: No ( called with pass by value option)
I_WITH_ATR_NAV - Flag: with nav. attributes
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSD_CUBE_MULTI_GET_ONLY_DB
E_T_CUBE - InfoCubes
Data type: RSD_T_CUBEOptional: No
Call by Reference: Yes
E_T_CUBE_IOBJ - InfoCubes - InfoObjects
Data type: RSD_T_CUBE_IOBJOptional: No
Call by Reference: Yes
E_T_DIME_IOBJ - Dimensions - InfoObjects
Data type: RSD_T_DIME_IOBJOptional: No
Call by Reference: Yes
E_T_IC_VAL_IOBJ - InfoObjects in the validity table of the Cube
Data type: RSD_T_IC_VAL_IOBJOptional: No
Call by Reference: Yes
E_T_CUBE_PART - Used InfoCubes in a Multicube
Data type: RSD_T_CUBE_PARTOptional: No
Call by Reference: Yes
EXCEPTIONS details
ILLEGAL_INPUT - Invalid Entry
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSD_CUBE_MULTI_GET_ONLY_DB 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_e_t_cube | TYPE RSD_T_CUBE, " | |||
lv_i_read_all | TYPE RS_BOOL, " RS_C_FALSE | |||
lv_illegal_input | TYPE RS_BOOL, " | |||
lv_i_t_infocube | TYPE RSD_T_C30, " | |||
lv_e_t_cube_iobj | TYPE RSD_T_CUBE_IOBJ, " | |||
lv_i_objvers | TYPE RS_OBJVERS, " RS_C_OBJVERS-ACTIVE | |||
lv_e_t_dime_iobj | TYPE RSD_T_DIME_IOBJ, " | |||
lv_i_incl_append | TYPE RS_BOOL, " RS_C_TRUE | |||
lv_e_t_ic_val_iobj | TYPE RSD_T_IC_VAL_IOBJ, " | |||
lv_i_cubetype | TYPE RSD_S_CUBE-CUBETYPE, " 'B' | |||
lv_e_t_cube_part | TYPE RSD_T_CUBE_PART, " | |||
lv_i_t_cubetype | TYPE RSD_T_CUBETYPE, " | |||
lv_i_with_atr_nav | TYPE RS_BOOL. " RS_C_FALSE |
  CALL FUNCTION 'RSD_CUBE_MULTI_GET_ONLY_DB' "Info about multiple InfoCubes (only DB fields -> fast access) |
EXPORTING | ||
I_READ_ALL | = lv_i_read_all | |
I_T_INFOCUBE | = lv_i_t_infocube | |
I_OBJVERS | = lv_i_objvers | |
I_INCL_APPEND | = lv_i_incl_append | |
I_CUBETYPE | = lv_i_cubetype | |
I_T_CUBETYPE | = lv_i_t_cubetype | |
I_WITH_ATR_NAV | = lv_i_with_atr_nav | |
IMPORTING | ||
E_T_CUBE | = lv_e_t_cube | |
E_T_CUBE_IOBJ | = lv_e_t_cube_iobj | |
E_T_DIME_IOBJ | = lv_e_t_dime_iobj | |
E_T_IC_VAL_IOBJ | = lv_e_t_ic_val_iobj | |
E_T_CUBE_PART | = lv_e_t_cube_part | |
EXCEPTIONS | ||
ILLEGAL_INPUT = 1 | ||
. " RSD_CUBE_MULTI_GET_ONLY_DB |
ABAP code using 7.40 inline data declarations to call FM RSD_CUBE_MULTI_GET_ONLY_DB
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_read_all) | = RS_C_FALSE. | |||
DATA(ld_i_objvers) | = RS_C_OBJVERS-ACTIVE. | |||
DATA(ld_i_incl_append) | = RS_C_TRUE. | |||
"SELECT single CUBETYPE FROM RSD_S_CUBE INTO @DATA(ld_i_cubetype). | ||||
DATA(ld_i_cubetype) | = 'B'. | |||
DATA(ld_i_with_atr_nav) | = RS_C_FALSE. | |||
Search for further information about these or an SAP related objects