SAP RSDPL_CUBE_DATA_READ Function Module for DM-API: Read Transaction Data of a Cube









RSDPL_CUBE_DATA_READ is a standard rsdpl cube data read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for DM-API: Read Transaction Data of a Cube 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 rsdpl cube data read FM, simply by entering the name RSDPL_CUBE_DATA_READ into the relevant SAP transaction such as SE37 or SE38.

Function Group: RSDPL
Program Name: SAPLRSDPL
Main Program: SAPLRSDPL
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function RSDPL_CUBE_DATA_READ 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 'RSDPL_CUBE_DATA_READ'"DM-API: Read Transaction Data of a Cube
EXPORTING
I_INFOCUBE = "InfoCube
I_REFERENCE_DATE = "Key Date
I_S_RFCMODE = "DM API: RFC Mode
I_S_DELTAMODE = "DM API: Load mode

IMPORTING
E_TABLENAME = "DM API: Table Name

TABLES
I_T_CHA = "Characteristic Table
I_T_KYF = "Key Figure Table
I_T_RANGE = "Selection Range Table
E_T_COLUMN = "DM API: DB Table Description

EXCEPTIONS
INFOCUBE_ERROR = 1 DELTAMODE_ERROR = 2 DELTA_EMPTY = 3 INHERITED_ERROR = 4
.



IMPORTING Parameters details for RSDPL_CUBE_DATA_READ

I_INFOCUBE - InfoCube

Data type: RSDP0_INFOCUBE
Optional: No
Call by Reference: No ( called with pass by value option)

I_REFERENCE_DATE - Key Date

Data type: RSDP0_REFDATE
Optional: No
Call by Reference: No ( called with pass by value option)

I_S_RFCMODE - DM API: RFC Mode

Data type: RSDP0_S_RFCMODE
Optional: No
Call by Reference: No ( called with pass by value option)

I_S_DELTAMODE - DM API: Load mode

Data type: RSDP0_S_DELTAMODE
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RSDPL_CUBE_DATA_READ

E_TABLENAME - DM API: Table Name

Data type: RSDP0_TABLENAME
Optional: No
Call by Reference: No ( called with pass by value option)

TABLES Parameters details for RSDPL_CUBE_DATA_READ

I_T_CHA - Characteristic Table

Data type: RSDP0_T_CHA
Optional: No
Call by Reference: Yes

I_T_KYF - Key Figure Table

Data type: RSDP0_T_KYF
Optional: No
Call by Reference: Yes

I_T_RANGE - Selection Range Table

Data type: RSDRI_T_RANGE_RFC
Optional: No
Call by Reference: Yes

E_T_COLUMN - DM API: DB Table Description

Data type: RSDP0_T_COLUMN
Optional: No
Call by Reference: Yes

EXCEPTIONS details

INFOCUBE_ERROR - Invalid InfoCube

Data type:
Optional: No
Call by Reference: Yes

DELTAMODE_ERROR - Error in delta mode specification

Data type:
Optional: No
Call by Reference: Yes

DELTA_EMPTY - Request Not Executed; Delta is Empty

Data type:
Optional: No
Call by Reference: Yes

INHERITED_ERROR - Error in Called Routine

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RSDPL_CUBE_DATA_READ 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_i_t_cha  TYPE STANDARD TABLE OF RSDP0_T_CHA, "   
lv_i_infocube  TYPE RSDP0_INFOCUBE, "   
lv_e_tablename  TYPE RSDP0_TABLENAME, "   
lv_infocube_error  TYPE RSDP0_TABLENAME, "   
lt_i_t_kyf  TYPE STANDARD TABLE OF RSDP0_T_KYF, "   
lv_deltamode_error  TYPE RSDP0_T_KYF, "   
lv_i_reference_date  TYPE RSDP0_REFDATE, "   
lt_i_t_range  TYPE STANDARD TABLE OF RSDRI_T_RANGE_RFC, "   
lv_delta_empty  TYPE RSDRI_T_RANGE_RFC, "   
lv_i_s_rfcmode  TYPE RSDP0_S_RFCMODE, "   
lt_e_t_column  TYPE STANDARD TABLE OF RSDP0_T_COLUMN, "   
lv_i_s_deltamode  TYPE RSDP0_S_DELTAMODE, "   
lv_inherited_error  TYPE RSDP0_S_DELTAMODE. "   

  CALL FUNCTION 'RSDPL_CUBE_DATA_READ'  "DM-API: Read Transaction Data of a Cube
    EXPORTING
         I_INFOCUBE = lv_i_infocube
         I_REFERENCE_DATE = lv_i_reference_date
         I_S_RFCMODE = lv_i_s_rfcmode
         I_S_DELTAMODE = lv_i_s_deltamode
    IMPORTING
         E_TABLENAME = lv_e_tablename
    TABLES
         I_T_CHA = lt_i_t_cha
         I_T_KYF = lt_i_t_kyf
         I_T_RANGE = lt_i_t_range
         E_T_COLUMN = lt_e_t_column
    EXCEPTIONS
        INFOCUBE_ERROR = 1
        DELTAMODE_ERROR = 2
        DELTA_EMPTY = 3
        INHERITED_ERROR = 4
. " RSDPL_CUBE_DATA_READ




ABAP code using 7.40 inline data declarations to call FM RSDPL_CUBE_DATA_READ

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.

 
 
 
 
 
 
 
 
 
 
 
 
 


Search for further information about these or an SAP related objects



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!