FIND_PATHS SAP Method Determination of All Paths for Given Hierarchy Object
Below is documentation, parameters and attributes of ABAP Method FIND_PATHS within SAP class /SCMB/CL_H_ALGORITHMS. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /SCMB/CL_H_ALGORITHMS into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Static
This is a Static Method so you can call it directlyThe following technical details of method FIND_PATHS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method FIND_PATHS
.| Name | Type | Data Type | Description | Default Value |
| IO_SOURCE_H_OBJ | Importing | TYPE REF TO /SCMB/CL_H_OBJECT | Hierarchy Object | |
| IO_TARGET_H_OBJ | Importing | TYPE REF TO /SCMB/CL_H_OBJECT | (In)Direct Hierarchy Object Being Searched For | |
| IT_EXCL_VIA_H_OBJS | Importing | TYPE /SCMB/TT_H_OBJECT | Excluded (invalid) Hier. Objects | |
| IV_FOR_PARENTS | Importing | TYPE BOOLE_D | Is Hierarchy Object Being Searched for a Parent or Child? | |
| IV_MAX_NUMB_PATHS | Importing | TYPE I | Termination Criterion | |
| IV_MAX_PATH_LENGTH | Importing | TYPE I | Termination Criterion | |
| IV_MIN_PATH_LENGTH | Importing | TYPE I | Start Criterion | |
| IV_WITH_ME | Importing | TYPE BOOLE_D | Paths with This Hierarchy Object at the Start? | |
| CT_PATHS | Changing | TYPE /SCMB/TT_TT_LIST_H_OBJ | Paths from This Hier. Obj. to Hier. Obj. Being Searched For |
Exceptions of Method FIND_PATHS
/SCMB/CX_TMMD_EXCEPT - Object Containing Any RG ExceptionExample ABAP coding
DATA: lv_CT_PATHS TYPE /SCMB/TT_TT_LIST_H_OBJ,
lv_IO_SOURCE_H_OBJ TYPE /SCMB/CL_H_OBJECT,
lv_IO_TARGET_H_OBJ TYPE /SCMB/CL_H_OBJECT,
lv_IT_EXCL_VIA_H_OBJS TYPE /SCMB/TT_H_OBJECT,
lv_IV_FOR_PARENTS TYPE BOOLE_D,
lv_IV_MAX_NUMB_PATHS TYPE I,
lv_IV_MAX_PATH_LENGTH TYPE I,
lv_IV_MIN_PATH_LENGTH TYPE I,
lv_IV_WITH_ME TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD /SCMB/CL_H_ALGORITHMS=>FIND_PATHS(
EXPORTING
IO_SOURCE_H_OBJ = lv_IO_SOURCE_H_OBJ
IO_TARGET_H_OBJ = lv_IO_TARGET_H_OBJ
IT_EXCL_VIA_H_OBJS = lv_IT_EXCL_VIA_H_OBJS
IV_FOR_PARENTS = lv_IV_FOR_PARENTS
IV_MAX_NUMB_PATHS = lv_IV_MAX_NUMB_PATHS
IV_MAX_PATH_LENGTH = lv_IV_MAX_PATH_LENGTH
IV_MIN_PATH_LENGTH = lv_IV_MIN_PATH_LENGTH
IV_WITH_ME = lv_IV_WITH_ME
CHANGING
CT_PATHS = lv_CT_PATHS ).
Links to Related Class(s)
/SCMB/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects