SAP ISP_BE_HIERARCHY_PATH_READ Function Module for IS-M/AM: BU Hierarchy: Read Paths
ISP_BE_HIERARCHY_PATH_READ is a standard isp be hierarchy path read SAP function module available within SAP R/3 or S/4 Hana systems, depending on your version and release level. It is used for IS-M/AM: BU Hierarchy: Read Paths 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 isp be hierarchy path read FM, simply by entering the name ISP_BE_HIERARCHY_PATH_READ into the relevant SAP transaction such as SE37 or SE38.
Function Group: JJ01
Program Name: SAPLJJ01
Main Program: SAPLJJ01
Appliation area: J
Release date: N/A
Mode(Normal, Remote etc): Normal Function Module
Update:

Function ISP_BE_HIERARCHY_PATH_READ 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 'ISP_BE_HIERARCHY_PATH_READ'"IS-M/AM: BU Hierarchy: Read Paths.
EXPORTING
BE_FROM = "Start Node
BE_HIE_TYP = "
BE_HIE_VER = "
* BE_TO = ' ' "
* READ_DIRECTION = 'U' "
X_ALLNODES_NEW = "
TABLES
* ALL_NODES = "
* PATHDIR = "
* PATHS = "
EXCEPTIONS
NO_RELATIONS = 1
IMPORTING Parameters details for ISP_BE_HIERARCHY_PATH_READ
BE_FROM - Start Node
Data type: JJTBE-BELEINHOptional: No
Call by Reference: No ( called with pass by value option)
BE_HIE_TYP -
Data type: JJTBEHIE-BE_HIE_TYPOptional: No
Call by Reference: No ( called with pass by value option)
BE_HIE_VER -
Data type: JJTBEHIE-BE_HIE_VEROptional: No
Call by Reference: No ( called with pass by value option)
BE_TO -
Data type: JJTBE-BELEINHDefault: SPACE
Optional: Yes
Call by Reference: No ( called with pass by value option)
READ_DIRECTION -
Data type:Default: 'U'
Optional: Yes
Call by Reference: No ( called with pass by value option)
X_ALLNODES_NEW -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
TABLES Parameters details for ISP_BE_HIERARCHY_PATH_READ
ALL_NODES -
Data type: RJJLBH11Optional: Yes
Call by Reference: No ( called with pass by value option)
PATHDIR -
Data type: RJJY001Optional: Yes
Call by Reference: No ( called with pass by value option)
PATHS -
Data type: RJJLBH11Optional: Yes
Call by Reference: No ( called with pass by value option)
EXCEPTIONS details
NO_RELATIONS -
Data type:Optional: No
Call by Reference: No ( called with pass by value option)
Copy and paste ABAP code example for ISP_BE_HIERARCHY_PATH_READ 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_be_from | TYPE JJTBE-BELEINH, " | |||
| lt_all_nodes | TYPE STANDARD TABLE OF RJJLBH11, " | |||
| lv_no_relations | TYPE RJJLBH11, " | |||
| lt_pathdir | TYPE STANDARD TABLE OF RJJY001, " | |||
| lv_be_hie_typ | TYPE JJTBEHIE-BE_HIE_TYP, " | |||
| lt_paths | TYPE STANDARD TABLE OF RJJLBH11, " | |||
| lv_be_hie_ver | TYPE JJTBEHIE-BE_HIE_VER, " | |||
| lv_be_to | TYPE JJTBE-BELEINH, " SPACE | |||
| lv_read_direction | TYPE JJTBE, " 'U' | |||
| lv_x_allnodes_new | TYPE JJTBE. " |
|   CALL FUNCTION 'ISP_BE_HIERARCHY_PATH_READ' "IS-M/AM: BU Hierarchy: Read Paths |
| EXPORTING | ||
| BE_FROM | = lv_be_from | |
| BE_HIE_TYP | = lv_be_hie_typ | |
| BE_HIE_VER | = lv_be_hie_ver | |
| BE_TO | = lv_be_to | |
| READ_DIRECTION | = lv_read_direction | |
| X_ALLNODES_NEW | = lv_x_allnodes_new | |
| TABLES | ||
| ALL_NODES | = lt_all_nodes | |
| PATHDIR | = lt_pathdir | |
| PATHS | = lt_paths | |
| EXCEPTIONS | ||
| NO_RELATIONS = 1 | ||
| . " ISP_BE_HIERARCHY_PATH_READ | ||
ABAP code using 7.40 inline data declarations to call FM ISP_BE_HIERARCHY_PATH_READ
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 BELEINH FROM JJTBE INTO @DATA(ld_be_from). | ||||
| "SELECT single BE_HIE_TYP FROM JJTBEHIE INTO @DATA(ld_be_hie_typ). | ||||
| "SELECT single BE_HIE_VER FROM JJTBEHIE INTO @DATA(ld_be_hie_ver). | ||||
| "SELECT single BELEINH FROM JJTBE INTO @DATA(ld_be_to). | ||||
| DATA(ld_be_to) | = ' '. | |||
| DATA(ld_read_direction) | = 'U'. | |||
Search for further information about these or an SAP related objects