SAP Function Modules

RSZ_COMPONENT_TREE_GET SAP Function module - Selection of Components Using Tree OCX







RSZ_COMPONENT_TREE_GET is a standard SAP function module available within R/3 SAP systems depending on your version and release level. Below is the pattern details for this FM showing its interface including any import and export parameters, exceptions etc as well as any documentation contributions (Comments) specific to the object.

See here to view full function module documentation and code listing, simply by entering the name RSZ_COMPONENT_TREE_GET into the relevant SAP transaction such as SE37 or SE80.

Associated Function Group: RZS2
Released Date: Not Released
Processing type: Normal fucntion module
Normal function module settings


Pattern for FM RSZ_COMPONENT_TREE_GET - RSZ COMPONENT TREE GET





CALL FUNCTION 'RSZ_COMPONENT_TREE_GET' "Selection of Components Using Tree OCX
* EXPORTING
*   i_objvers = RS_C_OBJVERS-ACTIVE  " rs_objvers
*   i_deftp = RZD1_C_DEFTP-REPORT  " rzd1_s_eltdir-deftp
*   i_screen_start_colum = 15   "
*   i_screen_start_line = 1     "
*   i_screen_end_column = 95    "
*   i_screen_end_line = 25      "
*   i_title =                   " spop-titel    Title in POPUP_TO_CONFIRM....
*   i_tree_header =             " treev_hdr-heading
*   i_ok_button_text =          " rsmpe-menu
*   i_exclude_definition = RS_C_TRUE  " rs_bool
*   i_exclude_new = RS_C_TRUE   " rs_bool
  IMPORTING
    e_infocube =                " rsd_infocube
    e_compid =                  " rzd1_compid
    e_compuid =                 " rsz_uid
    e_genuniid =                " rsz_uid
    e_comp_txt =                " rs_txtlg
    e_infocube_txt =            " rs_txtlg
    e_event =                   " rs_fcode
    .  "  RSZ_COMPONENT_TREE_GET

ABAP code example for Function Module RSZ_COMPONENT_TREE_GET





The ABAP code below is a full code listing to execute function module RSZ_COMPONENT_TREE_GET including all data declarations. The code uses 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 original method of declaring data variables up front. 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).

DATA:
ld_e_infocube  TYPE RSD_INFOCUBE ,
ld_e_compid  TYPE RZD1_COMPID ,
ld_e_compuid  TYPE RSZ_UID ,
ld_e_genuniid  TYPE RSZ_UID ,
ld_e_comp_txt  TYPE RS_TXTLG ,
ld_e_infocube_txt  TYPE RS_TXTLG ,
ld_e_event  TYPE RS_FCODE .

DATA(ld_i_objvers) = 'Check type of data required'.

DATA(ld_i_deftp) = some text here
DATA(ld_i_screen_start_colum) = 'some text here'.
DATA(ld_i_screen_start_line) = 'some text here'.
DATA(ld_i_screen_end_column) = 'some text here'.
DATA(ld_i_screen_end_line) = 'some text here'.

DATA(ld_i_title) = some text here

DATA(ld_i_tree_header) = some text here

DATA(ld_i_ok_button_text) = some text here
DATA(ld_i_exclude_definition) = 'Check type of data required'.
DATA(ld_i_exclude_new) = 'Check type of data required'. . CALL FUNCTION 'RSZ_COMPONENT_TREE_GET' * EXPORTING * i_objvers = ld_i_objvers * i_deftp = ld_i_deftp * i_screen_start_colum = ld_i_screen_start_colum * i_screen_start_line = ld_i_screen_start_line * i_screen_end_column = ld_i_screen_end_column * i_screen_end_line = ld_i_screen_end_line * i_title = ld_i_title * i_tree_header = ld_i_tree_header * i_ok_button_text = ld_i_ok_button_text * i_exclude_definition = ld_i_exclude_definition * i_exclude_new = ld_i_exclude_new IMPORTING e_infocube = ld_e_infocube e_compid = ld_e_compid e_compuid = ld_e_compuid e_genuniid = ld_e_genuniid e_comp_txt = ld_e_comp_txt e_infocube_txt = ld_e_infocube_txt e_event = ld_e_event . " RSZ_COMPONENT_TREE_GET
IF SY-SUBRC EQ 0. "All OK ENDIF.







ABAP code to compare 7.40 inline data declaration with original syntax

The below ABAP code uses the older none in-line data declarations. This allows you to see the coding differences/benefits of the later inline syntax. It may also be useful if you are using an older version of SAP as some of the newer syntax above, such as the @DATA is not available until 4.70 EHP 8.

DATA:
ld_e_infocube  TYPE RSD_INFOCUBE ,
ld_i_objvers  TYPE RS_OBJVERS ,
ld_e_compid  TYPE RZD1_COMPID ,
ld_i_deftp  TYPE RZD1_S_ELTDIR-DEFTP ,
ld_e_compuid  TYPE RSZ_UID ,
ld_i_screen_start_colum  TYPE STRING ,
ld_e_genuniid  TYPE RSZ_UID ,
ld_i_screen_start_line  TYPE STRING ,
ld_e_comp_txt  TYPE RS_TXTLG ,
ld_i_screen_end_column  TYPE STRING ,
ld_e_infocube_txt  TYPE RS_TXTLG ,
ld_i_screen_end_line  TYPE STRING ,
ld_e_event  TYPE RS_FCODE ,
ld_i_title  TYPE SPOP-TITEL ,
ld_i_tree_header  TYPE TREEV_HDR-HEADING ,
ld_i_ok_button_text  TYPE RSMPE-MENU ,
ld_i_exclude_definition  TYPE RS_BOOL ,
ld_i_exclude_new  TYPE RS_BOOL .

ld_i_objvers = 'Check type of data required'.

ld_i_deftp = some text here
ld_i_screen_start_colum = 'some text here'.
ld_i_screen_start_line = 'some text here'.
ld_i_screen_end_column = 'some text here'.
ld_i_screen_end_line = 'some text here'.

ld_i_title = some text here

ld_i_tree_header = some text here

ld_i_ok_button_text = some text here
ld_i_exclude_definition = 'Check type of data required'.
ld_i_exclude_new = 'Check type of data required'.

Contribute (Add Comments)

Please help keep this info upto date and use the comments section below to add useful hints, tips and information specific to this SAP function. This will then be available for you and other users to easily find by simply searching on the object name RSZ_COMPONENT_TREE_GET or its description.