SAP RSAPO_CUBE_GET Function Module for Obsolete. Use BAPI_CUBE_GETDETAIL
RSAPO_CUBE_GET is a standard rsapo cube get SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Obsolete. Use BAPI_CUBE_GETDETAIL 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 rsapo cube get FM, simply by entering the name RSAPO_CUBE_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: RSAPO
Program Name: SAPLRSAPO
Main Program: SAPLRSAPO
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:

Function RSAPO_CUBE_GET 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 'RSAPO_CUBE_GET'"Obsolete. Use BAPI_CUBE_GETDETAIL.
EXPORTING
I_INFOCUBE = "InfoCube Name
IMPORTING
E_TIMESTMP = "Time when Infocube was last changed
TABLES
* E_T_CHARS = "InfoCube Characteristics
* E_T_DIMS = "InfoCube Dimensions
* E_T_KEYFS = "InfoCube Key Figures
* E_T_UNITS = "Units Used in Infocube
* E_T_TIMES = "
EXCEPTIONS
INFOCUBE_NOT_FOUND = 1 ERROR_READING_INFOCATALOG = 2 ILLEGAL_INPUT = 3 INHERITED_ERROR = 4 FUNCTION_OUT_OF_DATE = 5
IMPORTING Parameters details for RSAPO_CUBE_GET
I_INFOCUBE - InfoCube Name
Data type: RSAPO_INT_DIMS-INFOCUBEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for RSAPO_CUBE_GET
E_TIMESTMP - Time when Infocube was last changed
Data type: RSUPDINFO-TIMESTMPCUBEOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for RSAPO_CUBE_GET
E_T_CHARS - InfoCube Characteristics
Data type: RSAPO_INT_CHARSOptional: Yes
Call by Reference: Yes
E_T_DIMS - InfoCube Dimensions
Data type: RSAPO_INT_DIMSOptional: Yes
Call by Reference: Yes
E_T_KEYFS - InfoCube Key Figures
Data type: RSAPO_INT_KEYFSOptional: Yes
Call by Reference: Yes
E_T_UNITS - Units Used in Infocube
Data type: RSAPO_INT_UNITSOptional: Yes
Call by Reference: Yes
E_T_TIMES -
Data type: RSAPO_INT_TIMESOptional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
INFOCUBE_NOT_FOUND -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ERROR_READING_INFOCATALOG -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
ILLEGAL_INPUT -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
INHERITED_ERROR -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
FUNCTION_OUT_OF_DATE -
Data type:Optional: No
Call by Reference: Yes
Copy and paste ABAP code example for RSAPO_CUBE_GET 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: | ||||
| lt_e_t_chars | TYPE STANDARD TABLE OF RSAPO_INT_CHARS, " | |||
| lv_e_timestmp | TYPE RSUPDINFO-TIMESTMPCUBE, " | |||
| lv_i_infocube | TYPE RSAPO_INT_DIMS-INFOCUBE, " | |||
| lv_infocube_not_found | TYPE RSAPO_INT_DIMS, " | |||
| lt_e_t_dims | TYPE STANDARD TABLE OF RSAPO_INT_DIMS, " | |||
| lv_error_reading_infocatalog | TYPE RSAPO_INT_DIMS, " | |||
| lt_e_t_keyfs | TYPE STANDARD TABLE OF RSAPO_INT_KEYFS, " | |||
| lv_illegal_input | TYPE RSAPO_INT_KEYFS, " | |||
| lt_e_t_units | TYPE STANDARD TABLE OF RSAPO_INT_UNITS, " | |||
| lv_inherited_error | TYPE RSAPO_INT_UNITS, " | |||
| lt_e_t_times | TYPE STANDARD TABLE OF RSAPO_INT_TIMES, " | |||
| lv_function_out_of_date | TYPE RSAPO_INT_TIMES. " |
|   CALL FUNCTION 'RSAPO_CUBE_GET' "Obsolete. Use BAPI_CUBE_GETDETAIL |
| EXPORTING | ||
| I_INFOCUBE | = lv_i_infocube | |
| IMPORTING | ||
| E_TIMESTMP | = lv_e_timestmp | |
| TABLES | ||
| E_T_CHARS | = lt_e_t_chars | |
| E_T_DIMS | = lt_e_t_dims | |
| E_T_KEYFS | = lt_e_t_keyfs | |
| E_T_UNITS | = lt_e_t_units | |
| E_T_TIMES | = lt_e_t_times | |
| EXCEPTIONS | ||
| INFOCUBE_NOT_FOUND = 1 | ||
| ERROR_READING_INFOCATALOG = 2 | ||
| ILLEGAL_INPUT = 3 | ||
| INHERITED_ERROR = 4 | ||
| FUNCTION_OUT_OF_DATE = 5 | ||
| . " RSAPO_CUBE_GET | ||
ABAP code using 7.40 inline data declarations to call FM RSAPO_CUBE_GET
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 TIMESTMPCUBE FROM RSUPDINFO INTO @DATA(ld_e_timestmp). | ||||
| "SELECT single INFOCUBE FROM RSAPO_INT_DIMS INTO @DATA(ld_i_infocube). | ||||
Search for further information about these or an SAP related objects