SAP HR_BUILD_NODES_FROM_STRUCTURE Function Module for
HR_BUILD_NODES_FROM_STRUCTURE is a standard hr build nodes from structure 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 hr build nodes from structure FM, simply by entering the name HR_BUILD_NODES_FROM_STRUCTURE into the relevant SAP transaction such as SE37 or SE38.
Function Group: HRTIM00TEDT
Program Name: SAPLHRTIM00TEDT
Main Program:
Appliation area: P
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HR_BUILD_NODES_FROM_STRUCTURE 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 'HR_BUILD_NODES_FROM_STRUCTURE'".
EXPORTING
NODES_DDIC_STRUCT = "
* ROOT_NAME = "
* LANGU = "
CHANGING
HIERARCHY_HEADER = "
TABLES
COLUMN_TITLES = "
COLUMNS = "
HEADERS = "
NODE_TABLE = "
ITEM_TABLE = "
NODE_ITEM_LINK = "
EXCEPTIONS
ERROR_IN_STRUCTURE = 1
IMPORTING Parameters details for HR_BUILD_NODES_FROM_STRUCTURE
NODES_DDIC_STRUCT -
Data type: DCOBJDEF-NAMEOptional: No
Call by Reference: No ( called with pass by value option)
ROOT_NAME -
Data type:Optional: Yes
Call by Reference: No ( called with pass by value option)
LANGU -
Data type: SY-LANGUOptional: Yes
Call by Reference: No ( called with pass by value option)
CHANGING Parameters details for HR_BUILD_NODES_FROM_STRUCTURE
HIERARCHY_HEADER -
Data type: TREEV_HDROptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HR_BUILD_NODES_FROM_STRUCTURE
COLUMN_TITLES -
Data type: HRCOLUMN_TITLESOptional: No
Call by Reference: No ( called with pass by value option)
COLUMNS -
Data type: TREEV_COLOptional: No
Call by Reference: No ( called with pass by value option)
HEADERS -
Data type: TREEV_HDROptional: No
Call by Reference: No ( called with pass by value option)
NODE_TABLE -
Data type: TREEV_NODEOptional: No
Call by Reference: No ( called with pass by value option)
ITEM_TABLE -
Data type: MTREEITMOptional: No
Call by Reference: No ( called with pass by value option)
NODE_ITEM_LINK -
Data type: TEXTS_OF_ITEMS_IN_TABLEOptional: No
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
ERROR_IN_STRUCTURE -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HR_BUILD_NODES_FROM_STRUCTURE 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: | ||||
| lt_column_titles | TYPE STANDARD TABLE OF HRCOLUMN_TITLES, " | |||
| lv_hierarchy_header | TYPE TREEV_HDR, " | |||
| lv_nodes_ddic_struct | TYPE DCOBJDEF-NAME, " | |||
| lv_error_in_structure | TYPE DCOBJDEF, " | |||
| lt_columns | TYPE STANDARD TABLE OF TREEV_COL, " | |||
| lv_root_name | TYPE TREEV_COL, " | |||
| lv_langu | TYPE SY-LANGU, " | |||
| lt_headers | TYPE STANDARD TABLE OF TREEV_HDR, " | |||
| lt_node_table | TYPE STANDARD TABLE OF TREEV_NODE, " | |||
| lt_item_table | TYPE STANDARD TABLE OF MTREEITM, " | |||
| lt_node_item_link | TYPE STANDARD TABLE OF TEXTS_OF_ITEMS_IN_TABLE. " |
|   CALL FUNCTION 'HR_BUILD_NODES_FROM_STRUCTURE' " |
| EXPORTING | ||
| NODES_DDIC_STRUCT | = lv_nodes_ddic_struct | |
| ROOT_NAME | = lv_root_name | |
| LANGU | = lv_langu | |
| CHANGING | ||
| HIERARCHY_HEADER | = lv_hierarchy_header | |
| TABLES | ||
| COLUMN_TITLES | = lt_column_titles | |
| COLUMNS | = lt_columns | |
| HEADERS | = lt_headers | |
| NODE_TABLE | = lt_node_table | |
| ITEM_TABLE | = lt_item_table | |
| NODE_ITEM_LINK | = lt_node_item_link | |
| EXCEPTIONS | ||
| ERROR_IN_STRUCTURE = 1 | ||
| . " HR_BUILD_NODES_FROM_STRUCTURE | ||
ABAP code using 7.40 inline data declarations to call FM HR_BUILD_NODES_FROM_STRUCTURE
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 NAME FROM DCOBJDEF INTO @DATA(ld_nodes_ddic_struct). | ||||
| "SELECT single LANGU FROM SY INTO @DATA(ld_langu). | ||||
Search for further information about these or an SAP related objects