CLOSEST_COMMON_PARENT SAP Method First Common Higher-Level Route Below Given Route
Below is documentation, parameters and attributes of ABAP Method CLOSEST_COMMON_PARENT within SAP class /SCTM/CL_BASIC_ROUTE. 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 /SCTM/CL_BASIC_ROUTE 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 CLOSEST_COMMON_PARENT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CLOSEST_COMMON_PARENT
.| Name | Type | Data Type | Description | Default Value |
| IO_ROUTE1 | Importing | TYPE REF TO /SCTM/CL_BASIC_ROUTE | A Route | |
| IO_ROUTE2 | Importing | TYPE REF TO /SCTM/CL_BASIC_ROUTE | Another Route | |
| IO_SUPER_PARENT | Importing | TYPE REF TO /SCTM/CL_BASIC_ROUTE | Given Higher-Level Route | |
| RO_CLOSE_PARENT | Returning | TYPE REF TO /SCTM/CL_BASIC_ROUTE | First Common Higher-Level Route |
Exceptions of Method CLOSEST_COMMON_PARENT
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lv_IO_ROUTE1 TYPE /SCTM/CL_BASIC_ROUTE,
lv_IO_ROUTE2 TYPE /SCTM/CL_BASIC_ROUTE,
lv_IO_SUPER_PARENT TYPE /SCTM/CL_BASIC_ROUTE,
lv_RO_CLOSE_PARENT TYPE /SCTM/CL_BASIC_ROUTE,
lv_other TYPE c.
CALL METHOD /SCTM/CL_BASIC_ROUTE=>CLOSEST_COMMON_PARENT(
EXPORTING
IO_ROUTE1 = lv_IO_ROUTE1
IO_ROUTE2 = lv_IO_ROUTE2
IO_SUPER_PARENT = lv_IO_SUPER_PARENT
RECEIVING
RO_CLOSE_PARENT = lv_RO_CLOSE_PARENT )
"Alternate coding for Method Call with returning parameter
lv_RO_CLOSE_PARENT = /SCTM/CL_BASIC_ROUTE=>CLOSEST_COMMON_PARENT(
EXPORTING
IO_ROUTE1 = lv_IO_ROUTE1
IO_ROUTE2 = lv_IO_ROUTE2
IO_SUPER_PARENT = lv_IO_SUPER_PARENT ).
Links to Related Class(s)
/SCTM/CL...Full list of available SAP object classes
Search for further information about these or an SAP related objects