SAP STREE_FILTER_COPY Function Module for
STREE_FILTER_COPY is a standard stree filter copy 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 filter copy FM, simply by entering the name STREE_FILTER_COPY into the relevant SAP transaction such as SE37 or SE38.
Function Group: SHI6
Program Name: SAPLSHI6
Main Program: SAPLSHI6
Appliation area:
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function STREE_FILTER_COPY 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_FILTER_COPY'".
EXPORTING
OLD_FILTER_ID = "
* NEW_FILTER_ID = "
* NEW_FILTER_TOPNODE = ' ' "Unique ID - 32 Characters
NEW_FILTER_DESCR = "Explanatory text
* NEW_MASTERLANGUAGE = SY-LANGU "SAP R/3 System, Current Language
NEW_PARENT_STRUCTURE = "
* NEW_TRANSPORT_ORDER = ' ' "Request/Task
* NEW_DEVELOPMENT_CLASS = ' ' "Package
* NO_TRANSPORT_CHECK = ' ' "Flag with Values ' ' and 'X'
IMPORTING
EV_NEW_FILTER_ID = "
MESSAGE = "Transfer structure for messages
TABLES
NODE_MAPPING_TABLE = "Mapping Between Node IDs
IMPORTING Parameters details for STREE_FILTER_COPY
OLD_FILTER_ID -
Data type: TTREE-IDOptional: No
Call by Reference: No ( called with pass by value option)
NEW_FILTER_ID -
Data type: TTREE-IDOptional: Yes
Call by Reference: No ( called with pass by value option)
NEW_FILTER_TOPNODE - Unique ID - 32 Characters
Data type: TTREE-NODE_IDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEW_FILTER_DESCR - Explanatory text
Data type: TTREET-TEXTOptional: No
Call by Reference: No ( called with pass by value option)
NEW_MASTERLANGUAGE - SAP R/3 System, Current Language
Data type: SY-LANGUDefault: SY-LANGU
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEW_PARENT_STRUCTURE -
Data type: TTREE-IDOptional: No
Call by Reference: No ( called with pass by value option)
NEW_TRANSPORT_ORDER - Request/Task
Data type: KO200-TRKORRDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NEW_DEVELOPMENT_CLASS - Package
Data type: KO200-DEVCLASSDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
NO_TRANSPORT_CHECK - Flag with Values ' ' and 'X'
Data type: HIER_YESNODefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STREE_FILTER_COPY
EV_NEW_FILTER_ID -
Data type: TTREE-IDOptional: No
Call by Reference: No ( called with pass by value option)
MESSAGE - Transfer structure for messages
Data type: HIER_MESSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for STREE_FILTER_COPY
NODE_MAPPING_TABLE - Mapping Between Node IDs
Data type: BMNODEMAPOptional: No
Call by Reference: Yes
Copy and paste ABAP code example for STREE_FILTER_COPY 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_old_filter_id | TYPE TTREE-ID, " | |||
| lv_ev_new_filter_id | TYPE TTREE-ID, " | |||
| lt_node_mapping_table | TYPE STANDARD TABLE OF BMNODEMAP, " | |||
| lv_message | TYPE HIER_MESS, " | |||
| lv_new_filter_id | TYPE TTREE-ID, " | |||
| lv_new_filter_topnode | TYPE TTREE-NODE_ID, " SPACE | |||
| lv_new_filter_descr | TYPE TTREET-TEXT, " | |||
| lv_new_masterlanguage | TYPE SY-LANGU, " SY-LANGU | |||
| lv_new_parent_structure | TYPE TTREE-ID, " | |||
| lv_new_transport_order | TYPE KO200-TRKORR, " SPACE | |||
| lv_new_development_class | TYPE KO200-DEVCLASS, " SPACE | |||
| lv_no_transport_check | TYPE HIER_YESNO. " SPACE |
|   CALL FUNCTION 'STREE_FILTER_COPY' " |
| EXPORTING | ||
| OLD_FILTER_ID | = lv_old_filter_id | |
| NEW_FILTER_ID | = lv_new_filter_id | |
| NEW_FILTER_TOPNODE | = lv_new_filter_topnode | |
| NEW_FILTER_DESCR | = lv_new_filter_descr | |
| NEW_MASTERLANGUAGE | = lv_new_masterlanguage | |
| NEW_PARENT_STRUCTURE | = lv_new_parent_structure | |
| NEW_TRANSPORT_ORDER | = lv_new_transport_order | |
| NEW_DEVELOPMENT_CLASS | = lv_new_development_class | |
| NO_TRANSPORT_CHECK | = lv_no_transport_check | |
| IMPORTING | ||
| EV_NEW_FILTER_ID | = lv_ev_new_filter_id | |
| MESSAGE | = lv_message | |
| TABLES | ||
| NODE_MAPPING_TABLE | = lt_node_mapping_table | |
| . " STREE_FILTER_COPY | ||
ABAP code using 7.40 inline data declarations to call FM STREE_FILTER_COPY
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 ID FROM TTREE INTO @DATA(ld_old_filter_id). | ||||
| "SELECT single ID FROM TTREE INTO @DATA(ld_ev_new_filter_id). | ||||
| "SELECT single ID FROM TTREE INTO @DATA(ld_new_filter_id). | ||||
| "SELECT single NODE_ID FROM TTREE INTO @DATA(ld_new_filter_topnode). | ||||
| DATA(ld_new_filter_topnode) | = ' '. | |||
| "SELECT single TEXT FROM TTREET INTO @DATA(ld_new_filter_descr). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_new_masterlanguage). | ||||
| DATA(ld_new_masterlanguage) | = SY-LANGU. | |||
| "SELECT single ID FROM TTREE INTO @DATA(ld_new_parent_structure). | ||||
| "SELECT single TRKORR FROM KO200 INTO @DATA(ld_new_transport_order). | ||||
| DATA(ld_new_transport_order) | = ' '. | |||
| "SELECT single DEVCLASS FROM KO200 INTO @DATA(ld_new_development_class). | ||||
| DATA(ld_new_development_class) | = ' '. | |||
| DATA(ld_no_transport_check) | = ' '. | |||
Search for further information about these or an SAP related objects