SAP RSDG_CUBE_SAVE_FLAGS Function Module for Sets additional flags of an InfoCube
RSDG_CUBE_SAVE_FLAGS is a standard rsdg cube save flags SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Sets additional flags 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 save flags FM, simply by entering the name RSDG_CUBE_SAVE_FLAGS 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_SAVE_FLAGS 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_SAVE_FLAGS'"Sets additional flags of an InfoCube.
EXPORTING
I_INFOCUBE = "InfoCube
* I_SET_MOLAP = RS_C_FALSE "Flag: Setting the MOLAP flags
* I_MOLAP = "MOLAP Flag
* I_SET_EDSFL = RS_C_FALSE "Flag: Setting the Exp.DataSourceFlags
* I_EDSFL = "Exp.DataSourceFlag
* I_WITH_CTS = RS_C_TRUE "= 'X' with transport Connection
* I_WITH_ENQUEUE = RS_C_TRUE "= 'X' with a short timeout
IMPORTING
E_SUBRC = "= 0: Save done
EXCEPTIONS
INFOCUBE_NOT_IN_ACTIVE_VERSION = 1
IMPORTING Parameters details for RSDG_CUBE_SAVE_FLAGS
I_INFOCUBE - InfoCube
Data type: RSD_INFOCUBEOptional: No
Call by Reference: Yes
I_SET_MOLAP - Flag: Setting the MOLAP flags
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_MOLAP - MOLAP Flag
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_SET_EDSFL - Flag: Setting the Exp.DataSourceFlags
Data type: RS_BOOLDefault: RS_C_FALSE
Optional: Yes
Call by Reference: Yes
I_EDSFL - Exp.DataSourceFlag
Data type: RS_BOOLOptional: Yes
Call by Reference: Yes
I_WITH_CTS - = 'X' with transport Connection
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
I_WITH_ENQUEUE - = 'X' with a short timeout
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: Yes
EXPORTING Parameters details for RSDG_CUBE_SAVE_FLAGS
E_SUBRC - = 0: Save done
Data type: SYSUBRCOptional: No
Call by Reference: Yes
EXCEPTIONS details
INFOCUBE_NOT_IN_ACTIVE_VERSION - nfoCube is not active in version available
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for RSDG_CUBE_SAVE_FLAGS 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_subrc | TYPE SYSUBRC, " | |||
| lv_i_infocube | TYPE RSD_INFOCUBE, " | |||
| lv_infocube_not_in_active_version | TYPE RSD_INFOCUBE, " | |||
| lv_i_set_molap | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_molap | TYPE RS_BOOL, " | |||
| lv_i_set_edsfl | TYPE RS_BOOL, " RS_C_FALSE | |||
| lv_i_edsfl | TYPE RS_BOOL, " | |||
| lv_i_with_cts | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_with_enqueue | TYPE RS_BOOL. " RS_C_TRUE |
|   CALL FUNCTION 'RSDG_CUBE_SAVE_FLAGS' "Sets additional flags of an InfoCube |
| EXPORTING | ||
| I_INFOCUBE | = lv_i_infocube | |
| I_SET_MOLAP | = lv_i_set_molap | |
| I_MOLAP | = lv_i_molap | |
| I_SET_EDSFL | = lv_i_set_edsfl | |
| I_EDSFL | = lv_i_edsfl | |
| I_WITH_CTS | = lv_i_with_cts | |
| I_WITH_ENQUEUE | = lv_i_with_enqueue | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| EXCEPTIONS | ||
| INFOCUBE_NOT_IN_ACTIVE_VERSION = 1 | ||
| . " RSDG_CUBE_SAVE_FLAGS | ||
ABAP code using 7.40 inline data declarations to call FM RSDG_CUBE_SAVE_FLAGS
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_set_molap) | = RS_C_FALSE. | |||
| DATA(ld_i_set_edsfl) | = RS_C_FALSE. | |||
| DATA(ld_i_with_cts) | = RS_C_TRUE. | |||
| DATA(ld_i_with_enqueue) | = RS_C_TRUE. | |||
Search for further information about these or an SAP related objects