SAP HELP_HIERARCHY_VALUES_GET Function Module for
HELP_HIERARCHY_VALUES_GET is a standard help hierarchy values get 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 help hierarchy values get FM, simply by entering the name HELP_HIERARCHY_VALUES_GET into the relevant SAP transaction such as SE37 or SE38.
Function Group: KYBB
Program Name: SAPLKYBB
Main Program:
Appliation area: K
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function HELP_HIERARCHY_VALUES_GET 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 'HELP_HIERARCHY_VALUES_GET'".
EXPORTING
* I_BERNAME = ' ' "Report name
* I_CLTYP = 'K ' "Node type (report, report class)
I_HIEID = "User group
* I_LFDID = 0 "Current number of hierarchy node
* I_MODE = 'RKB1D-LFDID' "Session
* I_POIUP = 0 "Pointer above
* I_REFERENCE = ' ' "Reference field
IMPORTING
E_LFDID = "Current number of hierarchy node
E_HIEID = "User group (determined using F4)
TABLES
ALL_HIER_TAB = "Hierarchy table
IMPORTING Parameters details for HELP_HIERARCHY_VALUES_GET
I_BERNAME - Report name
Data type: RKB1D-REPIDDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_CLTYP - Node type (report, report class)
Data type: T242H-CLTYPDefault: 'K '
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_HIEID - User group
Data type: RKB1D-HIEIDOptional: No
Call by Reference: No ( called with pass by value option)
I_LFDID - Current number of hierarchy node
Data type: RKB1D-LFDIDOptional: Yes
Call by Reference: No ( called with pass by value option)
I_MODE - Session
Data type: CDefault: 'RKB1D-LFDID'
Optional: Yes
Call by Reference: No ( called with pass by value option)
I_POIUP - Pointer above
Data type: T242H-POIUPOptional: Yes
Call by Reference: No ( called with pass by value option)
I_REFERENCE - Reference field
Data type: T242H-CLTYPDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
EXPORTING Parameters details for HELP_HIERARCHY_VALUES_GET
E_LFDID - Current number of hierarchy node
Data type: RKB1D-LFDIDOptional: No
Call by Reference: No ( called with pass by value option)
E_HIEID - User group (determined using F4)
Data type: RKB1D-HIEIDOptional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for HELP_HIERARCHY_VALUES_GET
ALL_HIER_TAB - Hierarchy table
Data type: CFTH2412Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for HELP_HIERARCHY_VALUES_GET 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_e_lfdid | TYPE RKB1D-LFDID, " | |||
| lv_i_bername | TYPE RKB1D-REPID, " SPACE | |||
| lt_all_hier_tab | TYPE STANDARD TABLE OF CFTH2412, " | |||
| lv_e_hieid | TYPE RKB1D-HIEID, " | |||
| lv_i_cltyp | TYPE T242H-CLTYP, " 'K ' | |||
| lv_i_hieid | TYPE RKB1D-HIEID, " | |||
| lv_i_lfdid | TYPE RKB1D-LFDID, " 0 | |||
| lv_i_mode | TYPE C, " 'RKB1D-LFDID' | |||
| lv_i_poiup | TYPE T242H-POIUP, " 0 | |||
| lv_i_reference | TYPE T242H-CLTYP. " SPACE |
|   CALL FUNCTION 'HELP_HIERARCHY_VALUES_GET' " |
| EXPORTING | ||
| I_BERNAME | = lv_i_bername | |
| I_CLTYP | = lv_i_cltyp | |
| I_HIEID | = lv_i_hieid | |
| I_LFDID | = lv_i_lfdid | |
| I_MODE | = lv_i_mode | |
| I_POIUP | = lv_i_poiup | |
| I_REFERENCE | = lv_i_reference | |
| IMPORTING | ||
| E_LFDID | = lv_e_lfdid | |
| E_HIEID | = lv_e_hieid | |
| TABLES | ||
| ALL_HIER_TAB | = lt_all_hier_tab | |
| . " HELP_HIERARCHY_VALUES_GET | ||
ABAP code using 7.40 inline data declarations to call FM HELP_HIERARCHY_VALUES_GET
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 LFDID FROM RKB1D INTO @DATA(ld_e_lfdid). | ||||
| "SELECT single REPID FROM RKB1D INTO @DATA(ld_i_bername). | ||||
| DATA(ld_i_bername) | = ' '. | |||
| "SELECT single HIEID FROM RKB1D INTO @DATA(ld_e_hieid). | ||||
| "SELECT single CLTYP FROM T242H INTO @DATA(ld_i_cltyp). | ||||
| DATA(ld_i_cltyp) | = 'K '. | |||
| "SELECT single HIEID FROM RKB1D INTO @DATA(ld_i_hieid). | ||||
| "SELECT single LFDID FROM RKB1D INTO @DATA(ld_i_lfdid). | ||||
| DATA(ld_i_mode) | = 'RKB1D-LFDID'. | |||
| "SELECT single POIUP FROM T242H INTO @DATA(ld_i_poiup). | ||||
| "SELECT single CLTYP FROM T242H INTO @DATA(ld_i_reference). | ||||
| DATA(ld_i_reference) | = ' '. | |||
Search for further information about these or an SAP related objects