SAP RRX_GRID_CMD_PROCESS Function Module for Execution of a drilldown function









RRX_GRID_CMD_PROCESS is a standard rrx grid cmd process SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Execution of a drilldown function 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 cmd process FM, simply by entering the name RRX_GRID_CMD_PROCESS 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_CMD_PROCESS 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_CMD_PROCESS'"Execution of a drilldown function
EXPORTING
I_HANDLE = "
* I_CMDID = 'SELC' "
* I_IOBJNM = "InfoObject Name If Processing on Filter Cell

IMPORTING
E_MAX_X = "
E_MAX_Y = "
E_KEEP_TOP = "
E_KEEP_BOT = "
E_SUBRC = "
E_N_WARNINGS = "
E_VAR_CHANGED = "Boolean
E_KEEP_LEFT = "Column coordinate
E_KEEP_RIGHT = "Column coordinate

TABLES
* E_T_CON = "Catalog of Conditions and Exceptions
* E_T_RANGES = "
* E_T_HRY_TYPES = "
* I_T_CMD_PARAMS = "Command Parameter
* 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
* E_T_DRILL = "Description of Expanded Status of (Univ.) Hierarchies
* E_T_DOC_LIST = "List of documents
* E_T_FAC = "Catalog of Parts of Conditions and Exceptions
* I_T_RANGES = "
* E_T_DIM = "Catalog of the dimensions
* E_T_MEM = "Catalog of the members of different dimensions
* E_T_CEL = "
* E_T_ATR = "
C_T_PRPTYS = "
* E_T_GRID = "

EXCEPTIONS
INHERITED_ERROR = 1 LAUNCH_URL = 10 NO_RECORD_FOUND = 2 TERMINATED_BY_USER = 3 NO_PROCESSING = 4 NO_CHANGE = 5 DBCL_NOSUPPORT = 6 NO_AUTHORIZATION = 7 X_MESSAGE = 8 SCREEN_CANCELED = 9
.



IMPORTING Parameters details for RRX_GRID_CMD_PROCESS

I_HANDLE -

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

I_CMDID -

Data type: RRX_MENU-CMDID
Default: 'SELC'
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_IOBJNM - InfoObject Name If Processing on Filter Cell

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

EXPORTING Parameters details for RRX_GRID_CMD_PROCESS

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_KEEP_TOP -

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

E_KEEP_BOT -

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

E_SUBRC -

Data type: RRX_MISC-SUBRC
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_VAR_CHANGED - Boolean

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

E_KEEP_LEFT - Column coordinate

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

E_KEEP_RIGHT - Column coordinate

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

TABLES Parameters details for RRX_GRID_CMD_PROCESS

E_T_CON - Catalog of Conditions and Exceptions

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

E_T_RANGES -

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

E_T_HRY_TYPES -

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

I_T_CMD_PARAMS - Command Parameter

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

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

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

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

E_T_DOC_LIST - List of documents

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

E_T_FAC - Catalog of Parts of Conditions and Exceptions

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

I_T_RANGES -

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

E_T_DIM - Catalog of the dimensions

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

E_T_MEM - Catalog of the members of different dimensions

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

E_T_CEL -

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

E_T_ATR -

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

C_T_PRPTYS -

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

E_T_GRID -

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

EXCEPTIONS details

INHERITED_ERROR -

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

LAUNCH_URL -

Data type:
Optional: No
Call by Reference: Yes

NO_RECORD_FOUND -

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

TERMINATED_BY_USER -

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)

NO_CHANGE -

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

DBCL_NOSUPPORT -

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

NO_AUTHORIZATION -

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_CMD_PROCESS 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_max_x  TYPE RRX_GRID-X, "   
lt_e_t_con  TYPE STANDARD TABLE OF RRX_CON, "   
lv_i_handle  TYPE RRX_MISC-HANDLE, "   
lv_inherited_error  TYPE RRX_MISC, "   
lt_e_t_ranges  TYPE STANDARD TABLE OF RRX_RANGES, "   
lv_launch_url  TYPE RRX_RANGES, "   
lt_e_t_hry_types  TYPE STANDARD TABLE OF RRX_HRY_TYPES, "   
lt_i_t_cmd_params  TYPE STANDARD TABLE OF RRX_S_W3QUERY, "   
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_e_t_drill  TYPE STANDARD TABLE OF RRX_X_DRILL, "   
lt_e_t_doc_list  TYPE STANDARD TABLE OF RRX_DOC_LIST, "   
lv_e_max_y  TYPE RRX_GRID-Y, "   
lt_e_t_fac  TYPE STANDARD TABLE OF RRX_X_FAC, "   
lv_i_cmdid  TYPE RRX_MENU-CMDID, "   'SELC'
lv_no_record_found  TYPE RRX_MENU, "   
lv_i_iobjnm  TYPE RSIOBJNM, "   
lv_e_keep_top  TYPE RRX_GRID-Y, "   
lt_i_t_ranges  TYPE STANDARD TABLE OF RRX_RANGES, "   
lv_terminated_by_user  TYPE RRX_RANGES, "   
lt_e_t_dim  TYPE STANDARD TABLE OF RRX_X_DIM, "   
lv_e_keep_bot  TYPE RRX_GRID-Y, "   
lv_no_processing  TYPE RRX_GRID, "   
lv_e_subrc  TYPE RRX_MISC-SUBRC, "   
lt_e_t_mem  TYPE STANDARD TABLE OF RRX_X_MEM, "   
lv_no_change  TYPE RRX_X_MEM, "   
lt_e_t_cel  TYPE STANDARD TABLE OF RRX_CEL, "   
lv_e_n_warnings  TYPE SY-LINCT, "   
lv_dbcl_nosupport  TYPE SY, "   
lt_e_t_atr  TYPE STANDARD TABLE OF RRX_ATR, "   
lv_e_var_changed  TYPE RS_BOOL, "   
lv_no_authorization  TYPE RS_BOOL, "   
lv_x_message  TYPE RS_BOOL, "   
lt_c_t_prptys  TYPE STANDARD TABLE OF RRX_PROPERTIES, "   
lv_e_keep_left  TYPE RRX_GRID-X, "   
lt_e_t_grid  TYPE STANDARD TABLE OF RRX_GRID, "   
lv_e_keep_right  TYPE RRX_GRID-X, "   
lv_screen_canceled  TYPE RRX_GRID. "   

  CALL FUNCTION 'RRX_GRID_CMD_PROCESS'  "Execution of a drilldown function
    EXPORTING
         I_HANDLE = lv_i_handle
         I_CMDID = lv_i_cmdid
         I_IOBJNM = lv_i_iobjnm
    IMPORTING
         E_MAX_X = lv_e_max_x
         E_MAX_Y = lv_e_max_y
         E_KEEP_TOP = lv_e_keep_top
         E_KEEP_BOT = lv_e_keep_bot
         E_SUBRC = lv_e_subrc
         E_N_WARNINGS = lv_e_n_warnings
         E_VAR_CHANGED = lv_e_var_changed
         E_KEEP_LEFT = lv_e_keep_left
         E_KEEP_RIGHT = lv_e_keep_right
    TABLES
         E_T_CON = lt_e_t_con
         E_T_RANGES = lt_e_t_ranges
         E_T_HRY_TYPES = lt_e_t_hry_types
         I_T_CMD_PARAMS = lt_i_t_cmd_params
         E_T_VAR = lt_e_t_var
         E_T_SYMBOLS = lt_e_t_symbols
         E_T_TEXT = lt_e_t_text
         E_T_DRILL = lt_e_t_drill
         E_T_DOC_LIST = lt_e_t_doc_list
         E_T_FAC = lt_e_t_fac
         I_T_RANGES = lt_i_t_ranges
         E_T_DIM = lt_e_t_dim
         E_T_MEM = lt_e_t_mem
         E_T_CEL = lt_e_t_cel
         E_T_ATR = lt_e_t_atr
         C_T_PRPTYS = lt_c_t_prptys
         E_T_GRID = lt_e_t_grid
    EXCEPTIONS
        INHERITED_ERROR = 1
        LAUNCH_URL = 10
        NO_RECORD_FOUND = 2
        TERMINATED_BY_USER = 3
        NO_PROCESSING = 4
        NO_CHANGE = 5
        DBCL_NOSUPPORT = 6
        NO_AUTHORIZATION = 7
        X_MESSAGE = 8
        SCREEN_CANCELED = 9
. " RRX_GRID_CMD_PROCESS




ABAP code using 7.40 inline data declarations to call FM RRX_GRID_CMD_PROCESS

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 CMDID FROM RRX_MENU INTO @DATA(ld_i_cmdid).
DATA(ld_i_cmdid) = 'SELC'.
 
 
 
"SELECT single Y FROM RRX_GRID INTO @DATA(ld_e_keep_top).
 
 
 
 
"SELECT single Y FROM RRX_GRID INTO @DATA(ld_e_keep_bot).
 
 
"SELECT single SUBRC FROM RRX_MISC INTO @DATA(ld_e_subrc).
 
 
 
 
"SELECT single LINCT FROM SY INTO @DATA(ld_e_n_warnings).
 
 
 
 
 
 
 
"SELECT single X FROM RRX_GRID INTO @DATA(ld_e_keep_left).
 
 
"SELECT single X FROM RRX_GRID INTO @DATA(ld_e_keep_right).
 
 


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!