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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IO_SOURCE_H_OBJImportingTYPE REF TO
/SCMB/CL_H_OBJECT
Hierarchy Object
IO_TARGET_H_OBJImportingTYPE REF TO
/SCMB/CL_H_OBJECT
(In)Direct Hierarchy Object Being Searched For
IT_EXCL_VIA_H_OBJSImportingTYPE
/SCMB/TT_H_OBJECT
Excluded (invalid) Hier. Objects
IV_FOR_PARENTSImportingTYPE
BOOLE_D
Is Hierarchy Object Being Searched for a Parent or Child?
IV_MAX_NUMB_PATHSImportingTYPE
I
Termination Criterion
IV_MAX_PATH_LENGTHImportingTYPE
I
Termination Criterion
IV_MIN_PATH_LENGTHImportingTYPE
I
Start Criterion
IV_WITH_MEImportingTYPE
BOOLE_D
Paths with This Hierarchy Object at the Start?
CT_PATHSChangingTYPE
/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 Exception

Example 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



Comments on this SAP object

What made you want to lookup this SAP object? Please tell us what you were looking for and anything you would like to be included on this page!