SAP STREE_EXTERNAL_SEARCH Function Module for









STREE_EXTERNAL_SEARCH is a standard stree external search SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used to perform a specific ABAP function and below is the pattern details, 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 stree external search FM, simply by entering the name STREE_EXTERNAL_SEARCH into the relevant SAP transaction such as SE37 or SE38.

Function Group: SHI21
Program Name: SAPLSHI21
Main Program: SAPLSHI21
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Remote-Enabled
Update:



Function STREE_EXTERNAL_SEARCH 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 'STREE_EXTERNAL_SEARCH'"
EXPORTING
* DISPLAY_F4_POPUP = 'X' "
* RESULT_DISPLAY_DEVCLASS = ' ' "Single-Character Flag
* RESULT_DISPLAY_RESPONSIBLE = ' ' "Single-Character Flag
* RESULT_DISPLAY_LAST_USER = ' ' "
* RESULT_DISPLAY_LAST_DATE = ' ' "
* RESULT_DISPLAY_LAST_RELEASE = ' ' "
* RESULT_DISPLAY_FIRST_USER = ' ' "
* RESULT_DISPLAY_FIRST_DATE = ' ' "
* RESULT_DISPLAY_FIRST_RELEASE = ' ' "
* MULTIPLE_SELECTION = ' ' "
* DEFAULT_VALUE_TEXT = ' ' "
* TITLE_OF_WINDOW = ' ' "
* TITLE_OF_FRAME1 = ' ' "
* TITLE_OF_FRAME2 = ' ' "
* TITLE_OF_F4_POPUP = ' ' "
* RESULT_DISPLAY_ALL_SEL_PARAMET = ' ' "
* RESULT_DISPLAY_TREE_TYPE = ' ' "

IMPORTING
MESSAGE = "
SELECTED_TREE_HEADER = "
SELECTED_TREE_TEXT = "

TABLES
* STRUCTURE_TYPES = "
* STRUCTURES_FOUND = "
* SELECTED_FIELDS = "
* EXCLUDED_STRUCTURE_IDS = "
* SELECTED_TREE_HEADERS = "
* SELECTED_TREE_TEXTS = "
.



IMPORTING Parameters details for STREE_EXTERNAL_SEARCH

DISPLAY_F4_POPUP -

Data type: HIER_TYPES-CHAR1
Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_DEVCLASS - Single-Character Flag

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_RESPONSIBLE - Single-Character Flag

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_LAST_USER -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_LAST_DATE -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_LAST_RELEASE -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_FIRST_USER -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_FIRST_DATE -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_FIRST_RELEASE -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

MULTIPLE_SELECTION -

Data type: HIER_TYPES-CHAR1
Default: ' '
Optional: Yes
Call by Reference: No ( called with pass by value option)

DEFAULT_VALUE_TEXT -

Data type: HIER_TYPES-TEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_OF_WINDOW -

Data type: HIER_TYPES-TEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_OF_FRAME1 -

Data type: HIER_TYPES-TEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_OF_FRAME2 -

Data type: HIER_TYPES-TEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

TITLE_OF_F4_POPUP -

Data type: HIER_TYPES-TEXT
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_ALL_SEL_PARAMET -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

RESULT_DISPLAY_TREE_TYPE -

Data type: HIER_TYPES-CHAR1
Default: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)

EXPORTING Parameters details for STREE_EXTERNAL_SEARCH

MESSAGE -

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

SELECTED_TREE_HEADER -

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

SELECTED_TREE_TEXT -

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

TABLES Parameters details for STREE_EXTERNAL_SEARCH

STRUCTURE_TYPES -

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

STRUCTURES_FOUND -

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

SELECTED_FIELDS -

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

EXCLUDED_STRUCTURE_IDS -

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

SELECTED_TREE_HEADERS -

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

SELECTED_TREE_TEXTS -

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

Copy and paste ABAP code example for STREE_EXTERNAL_SEARCH 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_message  TYPE HIER_MESS, "   
lt_structure_types  TYPE STANDARD TABLE OF TTREETYPE, "   
lv_display_f4_popup  TYPE HIER_TYPES-CHAR1, "   'X'
lv_result_display_devclass  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_responsible  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_last_user  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_last_date  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_last_release  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_first_user  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_first_date  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_first_release  TYPE HIER_TYPES-CHAR1, "   SPACE
lt_structures_found  TYPE STANDARD TABLE OF HIER_TRF4, "   
lv_multiple_selection  TYPE HIER_TYPES-CHAR1, "   ' '
lv_selected_tree_header  TYPE TTREE, "   
lt_selected_fields  TYPE STANDARD TABLE OF HELP_VALUE, "   
lv_default_value_text  TYPE HIER_TYPES-TEXT, "   SPACE
lv_selected_tree_text  TYPE TTREET-TEXT, "   
lv_title_of_window  TYPE HIER_TYPES-TEXT, "   SPACE
lt_excluded_structure_ids  TYPE STANDARD TABLE OF HIER_STRUC, "   
lv_title_of_frame1  TYPE HIER_TYPES-TEXT, "   SPACE
lt_selected_tree_headers  TYPE STANDARD TABLE OF TTREE, "   
lv_title_of_frame2  TYPE HIER_TYPES-TEXT, "   SPACE
lt_selected_tree_texts  TYPE STANDARD TABLE OF TTREET, "   
lv_title_of_f4_popup  TYPE HIER_TYPES-TEXT, "   SPACE
lv_result_display_all_sel_paramet  TYPE HIER_TYPES-CHAR1, "   SPACE
lv_result_display_tree_type  TYPE HIER_TYPES-CHAR1. "   SPACE

  CALL FUNCTION 'STREE_EXTERNAL_SEARCH'  "
    EXPORTING
         DISPLAY_F4_POPUP = lv_display_f4_popup
         RESULT_DISPLAY_DEVCLASS = lv_result_display_devclass
         RESULT_DISPLAY_RESPONSIBLE = lv_result_display_responsible
         RESULT_DISPLAY_LAST_USER = lv_result_display_last_user
         RESULT_DISPLAY_LAST_DATE = lv_result_display_last_date
         RESULT_DISPLAY_LAST_RELEASE = lv_result_display_last_release
         RESULT_DISPLAY_FIRST_USER = lv_result_display_first_user
         RESULT_DISPLAY_FIRST_DATE = lv_result_display_first_date
         RESULT_DISPLAY_FIRST_RELEASE = lv_result_display_first_release
         MULTIPLE_SELECTION = lv_multiple_selection
         DEFAULT_VALUE_TEXT = lv_default_value_text
         TITLE_OF_WINDOW = lv_title_of_window
         TITLE_OF_FRAME1 = lv_title_of_frame1
         TITLE_OF_FRAME2 = lv_title_of_frame2
         TITLE_OF_F4_POPUP = lv_title_of_f4_popup
         RESULT_DISPLAY_ALL_SEL_PARAMET = lv_result_display_all_sel_paramet
         RESULT_DISPLAY_TREE_TYPE = lv_result_display_tree_type
    IMPORTING
         MESSAGE = lv_message
         SELECTED_TREE_HEADER = lv_selected_tree_header
         SELECTED_TREE_TEXT = lv_selected_tree_text
    TABLES
         STRUCTURE_TYPES = lt_structure_types
         STRUCTURES_FOUND = lt_structures_found
         SELECTED_FIELDS = lt_selected_fields
         EXCLUDED_STRUCTURE_IDS = lt_excluded_structure_ids
         SELECTED_TREE_HEADERS = lt_selected_tree_headers
         SELECTED_TREE_TEXTS = lt_selected_tree_texts
. " STREE_EXTERNAL_SEARCH




ABAP code using 7.40 inline data declarations to call FM STREE_EXTERNAL_SEARCH

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 CHAR1 FROM HIER_TYPES INTO @DATA(ld_display_f4_popup).
DATA(ld_display_f4_popup) = 'X'.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_devclass).
DATA(ld_result_display_devclass) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_responsible).
DATA(ld_result_display_responsible) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_last_user).
DATA(ld_result_display_last_user) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_last_date).
DATA(ld_result_display_last_date) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_last_release).
DATA(ld_result_display_last_release) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_first_user).
DATA(ld_result_display_first_user) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_first_date).
DATA(ld_result_display_first_date) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_first_release).
DATA(ld_result_display_first_release) = ' '.
 
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_multiple_selection).
DATA(ld_multiple_selection) = ' '.
 
 
 
"SELECT single TEXT FROM HIER_TYPES INTO @DATA(ld_default_value_text).
DATA(ld_default_value_text) = ' '.
 
"SELECT single TEXT FROM TTREET INTO @DATA(ld_selected_tree_text).
 
"SELECT single TEXT FROM HIER_TYPES INTO @DATA(ld_title_of_window).
DATA(ld_title_of_window) = ' '.
 
 
"SELECT single TEXT FROM HIER_TYPES INTO @DATA(ld_title_of_frame1).
DATA(ld_title_of_frame1) = ' '.
 
 
"SELECT single TEXT FROM HIER_TYPES INTO @DATA(ld_title_of_frame2).
DATA(ld_title_of_frame2) = ' '.
 
 
"SELECT single TEXT FROM HIER_TYPES INTO @DATA(ld_title_of_f4_popup).
DATA(ld_title_of_f4_popup) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_all_sel_paramet).
DATA(ld_result_display_all_sel_paramet) = ' '.
 
"SELECT single CHAR1 FROM HIER_TYPES INTO @DATA(ld_result_display_tree_type).
DATA(ld_result_display_tree_type) = ' '.
 


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!