SAP RRX_GRID_GET Function Module for Provides Output List for Excel in Grid, Ranges Format









RRX_GRID_GET is a standard rrx grid 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 Provides Output List for Excel in Grid, Ranges Format 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 rrx grid get FM, simply by entering the name RRX_GRID_GET into the relevant SAP transaction such as SE37 or SE38.

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



Function RRX_GRID_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 'RRX_GRID_GET'"Provides Output List for Excel in Grid, Ranges Format
EXPORTING
I_HANDLE = "

IMPORTING
E_MAX_X = "
E_MAX_Y = "
E_N_WARNINGS = "
E_SUBRC = "
E_VAR_CHANGED = "Boolean

TABLES
* C_T_CON = "Catalog of Conditions and Exceptions
* C_T_HRY_TYPES = "
* E_T_VAR = "Transfer structure for variables
* E_T_SYMBOLS = "Display information for hierarchies in Excel add-in
* E_T_TEXT = "Texts for the Excel Interface
* C_T_DRILL = "Description of Expanded Status of (Univ.) Hierarchies
* C_T_FAC = "Catalog of Parts of Conditions and Exceptions
* C_T_DIM = "Catalog of the dimensions
* C_T_ATR = "
* C_T_MEM = "Catalog of the members of different dimensions
* C_T_CEL = "
* I_T_PRPTYS = "
E_T_GRID = "
E_T_RANGES = "

EXCEPTIONS
INHERITED_ERROR = 1 NO_PROCESSING = 2 X_MESSAGE = 3 SCREEN_CANCELED = 4
.



IMPORTING Parameters details for RRX_GRID_GET

I_HANDLE -

Data type: RRX_MISC-HANDLE
Optional: No
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for RRX_GRID_GET

E_MAX_X -

Data type: RRX_GRID-X
Optional: No
Call by Reference: No ( called with pass by value option)

E_MAX_Y -

Data type: RRX_GRID-Y
Optional: No
Call by Reference: No ( called with pass by value option)

E_N_WARNINGS -

Data type: SY-LINCT
Optional: No
Call by Reference: No ( called with pass by value option)

E_SUBRC -

Data type: SY-SUBRC
Optional: No
Call by Reference: No ( called with pass by value option)

E_VAR_CHANGED - Boolean

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

TABLES Parameters details for RRX_GRID_GET

C_T_CON - Catalog of Conditions and Exceptions

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

C_T_HRY_TYPES -

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

E_T_VAR - Transfer structure for variables

Data type: RRX_X_VAR
Optional: Yes
Call by Reference: Yes

E_T_SYMBOLS - Display information for hierarchies in Excel add-in

Data type: RRX_SYMBOLS
Optional: Yes
Call by Reference: Yes

E_T_TEXT - Texts for the Excel Interface

Data type: RRX_TEXT
Optional: Yes
Call by Reference: Yes

C_T_DRILL - Description of Expanded Status of (Univ.) Hierarchies

Data type: RRX_X_DRILL
Optional: Yes
Call by Reference: Yes

C_T_FAC - Catalog of Parts of Conditions and Exceptions

Data type: RRX_X_FAC
Optional: Yes
Call by Reference: Yes

C_T_DIM - Catalog of the dimensions

Data type: RRX_X_DIM
Optional: Yes
Call by Reference: Yes

C_T_ATR -

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

C_T_MEM - Catalog of the members of different dimensions

Data type: RRX_X_MEM
Optional: Yes
Call by Reference: Yes

C_T_CEL -

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

I_T_PRPTYS -

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

E_T_GRID -

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

E_T_RANGES -

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

EXCEPTIONS details

INHERITED_ERROR -

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

NO_PROCESSING -

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

X_MESSAGE -

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

SCREEN_CANCELED - Variables Screen Canceled

Data type:
Optional: No
Call by Reference: Yes

Copy and paste ABAP code example for RRX_GRID_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_c_t_con  TYPE STANDARD TABLE OF RRX_CON, "   
lv_e_max_x  TYPE RRX_GRID-X, "   
lv_i_handle  TYPE RRX_MISC-HANDLE, "   
lv_inherited_error  TYPE RRX_MISC, "   
lt_c_t_hry_types  TYPE STANDARD TABLE OF RRX_HRY_TYPES, "   
lt_e_t_var  TYPE STANDARD TABLE OF RRX_X_VAR, "   
lt_e_t_symbols  TYPE STANDARD TABLE OF RRX_SYMBOLS, "   
lt_e_t_text  TYPE STANDARD TABLE OF RRX_TEXT, "   
lt_c_t_drill  TYPE STANDARD TABLE OF RRX_X_DRILL, "   
lt_c_t_fac  TYPE STANDARD TABLE OF RRX_X_FAC, "   
lv_e_max_y  TYPE RRX_GRID-Y, "   
lv_no_processing  TYPE RRX_GRID, "   
lt_c_t_dim  TYPE STANDARD TABLE OF RRX_X_DIM, "   
lv_x_message  TYPE RRX_X_DIM, "   
lv_e_n_warnings  TYPE SY-LINCT, "   
lt_c_t_atr  TYPE STANDARD TABLE OF RRX_ATR, "   
lv_e_subrc  TYPE SY-SUBRC, "   
lv_screen_canceled  TYPE SY, "   
lt_c_t_mem  TYPE STANDARD TABLE OF RRX_X_MEM, "   
lv_e_var_changed  TYPE RS_BOOL, "   
lt_c_t_cel  TYPE STANDARD TABLE OF RRX_CEL, "   
lt_i_t_prptys  TYPE STANDARD TABLE OF RRX_PROPERTIES, "   
lt_e_t_grid  TYPE STANDARD TABLE OF RRX_GRID, "   
lt_e_t_ranges  TYPE STANDARD TABLE OF RRX_RANGES. "   

  CALL FUNCTION 'RRX_GRID_GET'  "Provides Output List for Excel in Grid, Ranges Format
    EXPORTING
         I_HANDLE = lv_i_handle
    IMPORTING
         E_MAX_X = lv_e_max_x
         E_MAX_Y = lv_e_max_y
         E_N_WARNINGS = lv_e_n_warnings
         E_SUBRC = lv_e_subrc
         E_VAR_CHANGED = lv_e_var_changed
    TABLES
         C_T_CON = lt_c_t_con
         C_T_HRY_TYPES = lt_c_t_hry_types
         E_T_VAR = lt_e_t_var
         E_T_SYMBOLS = lt_e_t_symbols
         E_T_TEXT = lt_e_t_text
         C_T_DRILL = lt_c_t_drill
         C_T_FAC = lt_c_t_fac
         C_T_DIM = lt_c_t_dim
         C_T_ATR = lt_c_t_atr
         C_T_MEM = lt_c_t_mem
         C_T_CEL = lt_c_t_cel
         I_T_PRPTYS = lt_i_t_prptys
         E_T_GRID = lt_e_t_grid
         E_T_RANGES = lt_e_t_ranges
    EXCEPTIONS
        INHERITED_ERROR = 1
        NO_PROCESSING = 2
        X_MESSAGE = 3
        SCREEN_CANCELED = 4
. " RRX_GRID_GET




ABAP code using 7.40 inline data declarations to call FM RRX_GRID_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 X FROM RRX_GRID INTO @DATA(ld_e_max_x).
 
"SELECT single HANDLE FROM RRX_MISC INTO @DATA(ld_i_handle).
 
 
 
 
 
 
 
 
"SELECT single Y FROM RRX_GRID INTO @DATA(ld_e_max_y).
 
 
 
 
"SELECT single LINCT FROM SY INTO @DATA(ld_e_n_warnings).
 
 
"SELECT single SUBRC FROM SY INTO @DATA(ld_e_subrc).
 
 
 
 
 
 
 
 


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!