SAP RSDG_CUBE_DELETE Function Module for Deletes an InfoCube
RSDG_CUBE_DELETE is a standard rsdg cube delete SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Deletes 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 delete FM, simply by entering the name RSDG_CUBE_DELETE 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_DELETE 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_DELETE'"Deletes an InfoCube.
EXPORTING
I_INFOCUBE = "InfoCube
* I_WRITE_PROTOCOL = RS_C_TRUE "Write Log? (Indicator)
* I_PROGRESS = RS_C_TRUE "Show Progress (flag)
* I_WITH_IMPACT = RS_C_TRUE "Flag: with Impact-Execution
IMPORTING
E_SUBRC = "= 4 is not deleted,= 8 error deleting TADIR
E_T_MSG = "Messages
IMPORTING Parameters details for RSDG_CUBE_DELETE
I_INFOCUBE - InfoCube
Data type: RSD_S_CUBE-INFOCUBEOptional: No
Call by Reference: No ( called with pass by value option)
I_WRITE_PROTOCOL - Write Log? (Indicator)
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_PROGRESS - Show Progress (flag)
Data type: RS_BOOLDefault: RS_C_TRUE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_WITH_IMPACT - Flag: with Impact-Execution
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_DELETE
E_SUBRC - = 4 is not deleted,= 8 error deleting TADIR
Data type: SY-SUBRCOptional: No
Call by Reference: Yes
E_T_MSG - Messages
Data type: RS_T_MSGOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSDG_CUBE_DELETE 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 SY-SUBRC, " | |||
| lv_i_infocube | TYPE RSD_S_CUBE-INFOCUBE, " | |||
| lv_e_t_msg | TYPE RS_T_MSG, " | |||
| lv_i_write_protocol | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_progress | TYPE RS_BOOL, " RS_C_TRUE | |||
| lv_i_with_impact | TYPE RS_BOOL. " RS_C_TRUE |
|   CALL FUNCTION 'RSDG_CUBE_DELETE' "Deletes an InfoCube |
| EXPORTING | ||
| I_INFOCUBE | = lv_i_infocube | |
| I_WRITE_PROTOCOL | = lv_i_write_protocol | |
| I_PROGRESS | = lv_i_progress | |
| I_WITH_IMPACT | = lv_i_with_impact | |
| IMPORTING | ||
| E_SUBRC | = lv_e_subrc | |
| E_T_MSG | = lv_e_t_msg | |
| . " RSDG_CUBE_DELETE | ||
ABAP code using 7.40 inline data declarations to call FM RSDG_CUBE_DELETE
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.| "SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc). | ||||
| "SELECT single INFOCUBE FROM RSD_S_CUBE INTO @DATA(ld_i_infocube). | ||||
| DATA(ld_i_write_protocol) | = RS_C_TRUE. | |||
| DATA(ld_i_progress) | = RS_C_TRUE. | |||
| DATA(ld_i_with_impact) | = RS_C_TRUE. | |||
Search for further information about these or an SAP related objects