SAP RSZ_COMPONENT_TREE_MULTI_GET Function Module for Selection of Components Using Tree OCX









RSZ_COMPONENT_TREE_MULTI_GET is a standard rsz component tree multi 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 Selection of Components Using Tree OCX 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 rsz component tree multi get FM, simply by entering the name RSZ_COMPONENT_TREE_MULTI_GET into the relevant SAP transaction such as SE37 or SE38.

Function Group: RZS2
Program Name: SAPLRZS2
Main Program: SAPLRZS2
Appliation area: B
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:



Function RSZ_COMPONENT_TREE_MULTI_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 'RSZ_COMPONENT_TREE_MULTI_GET'"Selection of Components Using Tree OCX
EXPORTING
* I_OBJVERS = RS_C_OBJVERS-ACTIVE "
* I_DEFTP = RZD1_C_DEFTP-REPORT "
* I_SCREEN_START_COLUM = 15 "
* I_SCREEN_START_LINE = 1 "
* I_SCREEN_END_COLUMN = 95 "
* I_SCREEN_END_LINE = 25 "
* I_TITLE = "Title in POPUP_TO_CONFIRM....
* I_TREE_HEADER = "
* I_OK_BUTTON_TEXT = "

IMPORTING
E_EVENT = "
E_T_SELECTED_COMP = "Selected Components
.



IMPORTING Parameters details for RSZ_COMPONENT_TREE_MULTI_GET

I_OBJVERS -

Data type: RS_OBJVERS
Default: RS_C_OBJVERS-ACTIVE
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_DEFTP -

Data type: RZD1_S_ELTDIR-DEFTP
Default: RZD1_C_DEFTP-REPORT
Optional: Yes
Call by Reference: No ( called with pass by value option)

I_SCREEN_START_COLUM -

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

I_SCREEN_START_LINE -

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

I_SCREEN_END_COLUMN -

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

I_SCREEN_END_LINE -

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

I_TITLE - Title in POPUP_TO_CONFIRM....

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

I_TREE_HEADER -

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

I_OK_BUTTON_TEXT -

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

EXPORTING Parameters details for RSZ_COMPONENT_TREE_MULTI_GET

E_EVENT -

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

E_T_SELECTED_COMP - Selected Components

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

Copy and paste ABAP code example for RSZ_COMPONENT_TREE_MULTI_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:
lv_e_event  TYPE RS_FCODE, "   
lv_i_objvers  TYPE RS_OBJVERS, "   RS_C_OBJVERS-ACTIVE
lv_i_deftp  TYPE RZD1_S_ELTDIR-DEFTP, "   RZD1_C_DEFTP-REPORT
lv_e_t_selected_comp  TYPE RZS2_T_SELECTED_COMP, "   
lv_i_screen_start_colum  TYPE RZS2_T_SELECTED_COMP, "   15
lv_i_screen_start_line  TYPE RZS2_T_SELECTED_COMP, "   1
lv_i_screen_end_column  TYPE RZS2_T_SELECTED_COMP, "   95
lv_i_screen_end_line  TYPE RZS2_T_SELECTED_COMP, "   25
lv_i_title  TYPE SPOP-TITEL, "   
lv_i_tree_header  TYPE TREEV_HDR-HEADING, "   
lv_i_ok_button_text  TYPE RSMPE-MENU. "   

  CALL FUNCTION 'RSZ_COMPONENT_TREE_MULTI_GET'  "Selection of Components Using Tree OCX
    EXPORTING
         I_OBJVERS = lv_i_objvers
         I_DEFTP = lv_i_deftp
         I_SCREEN_START_COLUM = lv_i_screen_start_colum
         I_SCREEN_START_LINE = lv_i_screen_start_line
         I_SCREEN_END_COLUMN = lv_i_screen_end_column
         I_SCREEN_END_LINE = lv_i_screen_end_line
         I_TITLE = lv_i_title
         I_TREE_HEADER = lv_i_tree_header
         I_OK_BUTTON_TEXT = lv_i_ok_button_text
    IMPORTING
         E_EVENT = lv_e_event
         E_T_SELECTED_COMP = lv_e_t_selected_comp
. " RSZ_COMPONENT_TREE_MULTI_GET




ABAP code using 7.40 inline data declarations to call FM RSZ_COMPONENT_TREE_MULTI_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.

 
DATA(ld_i_objvers) = RS_C_OBJVERS-ACTIVE.
 
"SELECT single DEFTP FROM RZD1_S_ELTDIR INTO @DATA(ld_i_deftp).
DATA(ld_i_deftp) = RZD1_C_DEFTP-REPORT.
 
 
DATA(ld_i_screen_start_colum) = 15.
 
DATA(ld_i_screen_start_line) = 1.
 
DATA(ld_i_screen_end_column) = 95.
 
DATA(ld_i_screen_end_line) = 25.
 
"SELECT single TITEL FROM SPOP INTO @DATA(ld_i_title).
 
"SELECT single HEADING FROM TREEV_HDR INTO @DATA(ld_i_tree_header).
 
"SELECT single MENU FROM RSMPE INTO @DATA(ld_i_ok_button_text).
 


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!