SAP STREE_READ_NODE_GENER Function Module for
STREE_READ_NODE_GENER is a standard stree read 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 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 read node gener FM, simply by entering the name STREE_READ_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_READ_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_READ_NODE_GENER'".
EXPORTING
STRUCTURE_ID = "
NODE_ID = "
* EXTENSION = "
TABLE_NAME = "
* READ_REFERENCES = 'X' "Single-Character Flag
* READ_TEXT = 'X' "Single-Character Flag
IMPORTING
NODE_INFO = "
NODE_TEXT = "
TABLES
NODE_REFERENCES = "
IMPORTING Parameters details for STREE_READ_NODE_GENER
STRUCTURE_ID -
Data type: TTREE-IDOptional: No
Call by Reference: No ( called with pass by value option)
NODE_ID -
Data type: HIER_IFACE-NODE_IDOptional: No
Call by Reference: No ( called with pass by value option)
EXTENSION -
Data type: HIER_IFACE-EXTENSIONOptional: Yes
Call by Reference: No ( called with pass by value option)
TABLE_NAME -
Data type: TTREETYPE-DB_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
READ_REFERENCES - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_TEXT - Single-Character Flag
Data type: CHAR1Default: 'X'
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for STREE_READ_NODE_GENER
NODE_INFO -
Data type: HIER_IFACEOptional: No
Call by Reference: No ( called with pass by value option)
NODE_TEXT -
Data type: HIER_TEXTSOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for STREE_READ_NODE_GENER
NODE_REFERENCES -
Data type: HIER_REFOptional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for STREE_READ_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_node_info | TYPE HIER_IFACE, " | |||
| lv_structure_id | TYPE TTREE-ID, " | |||
| lt_node_references | TYPE STANDARD TABLE OF HIER_REF, " | |||
| lv_node_id | TYPE HIER_IFACE-NODE_ID, " | |||
| lv_node_text | TYPE HIER_TEXTS, " | |||
| lv_extension | TYPE HIER_IFACE-EXTENSION, " | |||
| lv_table_name | TYPE TTREETYPE-DB_TABLE, " | |||
| lv_read_references | TYPE CHAR1, " 'X' | |||
| lv_read_text | TYPE CHAR1. " 'X' |
|   CALL FUNCTION 'STREE_READ_NODE_GENER' " |
| EXPORTING | ||
| STRUCTURE_ID | = lv_structure_id | |
| NODE_ID | = lv_node_id | |
| EXTENSION | = lv_extension | |
| TABLE_NAME | = lv_table_name | |
| READ_REFERENCES | = lv_read_references | |
| READ_TEXT | = lv_read_text | |
| IMPORTING | ||
| NODE_INFO | = lv_node_info | |
| NODE_TEXT | = lv_node_text | |
| TABLES | ||
| NODE_REFERENCES | = lt_node_references | |
| . " STREE_READ_NODE_GENER | ||
ABAP code using 7.40 inline data declarations to call FM STREE_READ_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 ID FROM TTREE INTO @DATA(ld_structure_id). | ||||
| "SELECT single NODE_ID FROM HIER_IFACE INTO @DATA(ld_node_id). | ||||
| "SELECT single EXTENSION FROM HIER_IFACE INTO @DATA(ld_extension). | ||||
| "SELECT single DB_TABLE FROM TTREETYPE INTO @DATA(ld_table_name). | ||||
| DATA(ld_read_references) | = 'X'. | |||
| DATA(ld_read_text) | = 'X'. | |||
Search for further information about these or an SAP related objects