SAP STREE_CHECK_REFERED_NODE_GENER Function Module for Checks on Which Nodes a Reference Exists
STREE_CHECK_REFERED_NODE_GENER is a standard stree check refered node gener SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for Checks on Which Nodes a Reference Exists 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 stree check refered node gener FM, simply by entering the name STREE_CHECK_REFERED_NODE_GENER into the relevant SAP transaction such as SE37 or SE38.
Function Group: SHI2
Program Name: SAPLSHI2
Main Program: SAPLSHI2
Appliation area: S
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function STREE_CHECK_REFERED_NODE_GENER 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_CHECK_REFERED_NODE_GENER'"Checks on Which Nodes a Reference Exists.
EXPORTING
TABLE_NAME = "
IMPORTING
MESSAGE = "
TABLES
NODE_LIST_TO_CHECK = "
NODES_WHICH_ARE_REFERED_TO = "
IMPORTING Parameters details for STREE_CHECK_REFERED_NODE_GENER
TABLE_NAME -
Data type: TTREETYPE-DB_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STREE_CHECK_REFERED_NODE_GENER
MESSAGE -
Data type: HIER_MESSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for STREE_CHECK_REFERED_NODE_GENER
NODE_LIST_TO_CHECK -
Data type: HIER_IFACEOptional: No
Call by Reference: No ( called with pass by value option)
NODES_WHICH_ARE_REFERED_TO -
Data type: HIER_IFACEOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for STREE_CHECK_REFERED_NODE_GENER 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, " | |||
| lv_table_name | TYPE TTREETYPE-DB_TABLE, " | |||
| lt_node_list_to_check | TYPE STANDARD TABLE OF HIER_IFACE, " | |||
| lt_nodes_which_are_refered_to | TYPE STANDARD TABLE OF HIER_IFACE. " |
|   CALL FUNCTION 'STREE_CHECK_REFERED_NODE_GENER' "Checks on Which Nodes a Reference Exists |
| EXPORTING | ||
| TABLE_NAME | = lv_table_name | |
| IMPORTING | ||
| MESSAGE | = lv_message | |
| TABLES | ||
| NODE_LIST_TO_CHECK | = lt_node_list_to_check | |
| NODES_WHICH_ARE_REFERED_TO | = lt_nodes_which_are_refered_to | |
| . " STREE_CHECK_REFERED_NODE_GENER | ||
ABAP code using 7.40 inline data declarations to call FM STREE_CHECK_REFERED_NODE_GENER
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 DB_TABLE FROM TTREETYPE INTO @DATA(ld_table_name). | ||||
Search for further information about these or an SAP related objects