SAP RSSM_SWITCH_ICUBE_TRANS_BATCH Function Module for Switch transactional cube for loading
RSSM_SWITCH_ICUBE_TRANS_BATCH is a standard rssm switch icube trans batch SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Switch transactional cube for loading 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 rssm switch icube trans batch FM, simply by entering the name RSSM_SWITCH_ICUBE_TRANS_BATCH into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSSM
Program Name: SAPLRSSM
Main Program: SAPLRSSM
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function RSSM_SWITCH_ICUBE_TRANS_BATCH 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 'RSSM_SWITCH_ICUBE_TRANS_BATCH'"Switch transactional cube for loading.
EXPORTING
I_INFOCUBE = "InfoCube
* I_NO_DIALOG = ' ' "Boolean
* I_SWITCH = ' ' "Boolean
EXCEPTIONS
CAN_NOT_SWITCH = 1 NO_TRANSACTIONAL_CUBE = 2 CUBE_NOT_EXIST = 3 NOT_ALLOWED = 4 NO_ACTIVE_CUBE = 5 INTERNAL_ERROR = 6 STILL_LOADING = 7 YELLOW_RED_REQUESTS_EXISTS = 8
IMPORTING Parameters details for RSSM_SWITCH_ICUBE_TRANS_BATCH
I_INFOCUBE - InfoCube
Data type: RSINFOCUBEOptional: No
Call by Reference: Yes
I_NO_DIALOG - Boolean
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
I_SWITCH - Boolean
Data type: RS_BOOLDefault: SPACE
Optional: Yes
Call by Reference: Yes
EXCEPTIONS details
CAN_NOT_SWITCH -
Data type:Optional: No
Call by Reference: Yes
NO_TRANSACTIONAL_CUBE -
Data type:Optional: No
Call by Reference: Yes
CUBE_NOT_EXIST -
Data type:Optional: No
Call by Reference: Yes
NOT_ALLOWED -
Data type:Optional: No
Call by Reference: Yes
NO_ACTIVE_CUBE -
Data type:Optional: No
Call by Reference: Yes
INTERNAL_ERROR -
Data type:Optional: No
Call by Reference: Yes
STILL_LOADING -
Data type:Optional: No
Call by Reference: Yes
YELLOW_RED_REQUESTS_EXISTS -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSSM_SWITCH_ICUBE_TRANS_BATCH 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_i_infocube | TYPE RSINFOCUBE, " | |||
| lv_can_not_switch | TYPE RSINFOCUBE, " | |||
| lv_i_no_dialog | TYPE RS_BOOL, " SPACE | |||
| lv_no_transactional_cube | TYPE RS_BOOL, " | |||
| lv_i_switch | TYPE RS_BOOL, " SPACE | |||
| lv_cube_not_exist | TYPE RS_BOOL, " | |||
| lv_not_allowed | TYPE RS_BOOL, " | |||
| lv_no_active_cube | TYPE RS_BOOL, " | |||
| lv_internal_error | TYPE RS_BOOL, " | |||
| lv_still_loading | TYPE RS_BOOL, " | |||
| lv_yellow_red_requests_exists | TYPE RS_BOOL. " |
|   CALL FUNCTION 'RSSM_SWITCH_ICUBE_TRANS_BATCH' "Switch transactional cube for loading |
| EXPORTING | ||
| I_INFOCUBE | = lv_i_infocube | |
| I_NO_DIALOG | = lv_i_no_dialog | |
| I_SWITCH | = lv_i_switch | |
| EXCEPTIONS | ||
| CAN_NOT_SWITCH = 1 | ||
| NO_TRANSACTIONAL_CUBE = 2 | ||
| CUBE_NOT_EXIST = 3 | ||
| NOT_ALLOWED = 4 | ||
| NO_ACTIVE_CUBE = 5 | ||
| INTERNAL_ERROR = 6 | ||
| STILL_LOADING = 7 | ||
| YELLOW_RED_REQUESTS_EXISTS = 8 | ||
| . " RSSM_SWITCH_ICUBE_TRANS_BATCH | ||
ABAP code using 7.40 inline data declarations to call FM RSSM_SWITCH_ICUBE_TRANS_BATCH
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_no_dialog) | = ' '. | |||
| DATA(ld_i_switch) | = ' '. | |||
Search for further information about these or an SAP related objects