GET_LEGS SAP Method Route Leg for GUID (Mass Processing)
Below is documentation, parameters and attributes of ABAP Method GET_LEGS within SAP class /SCTM/CL_GEOGRAPHY. 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_GEOGRAPHY into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.
Method Type - Instance
This is an Instance Method so needs to be instantiated first before you can access any of the methods. I.e. you need to create a local variable of TYPE ref to the class.The following technical details of method GET_LEGS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_LEGS
.| Name | Type | Data Type | Description | Default Value |
| IT_LEG_CALS | Importing | TYPE /SCTM/TT_AD_LEG_CAL | Adapter: Departure Calendar for Leg and Request Type | |
| IT_LEG_GUIDS | Importing | TYPE /SCMB/TT_GUID | Quantity of Geographical Objects GUID | |
| IT_LEG_HDS | Importing | TYPE /SCTM/TT_AD_LEG_HD | Adapter: Leg of a Route | |
| IT_LEG_TSPS | Importing | TYPE /SCTM/TT_AD_LEG_TSP | Adapter: Transportation Service Provider for a Leg | |
| IV_WITH_ASSIGNS | Importing | TYPE BOOLE_D | ||
| ET_LEGS | Exporting | TYPE /SCTM/TT_LEG | Quantity of Legs |
Exceptions of Method GET_LEGS
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/CL_GEOGRAPHY.
DATA: lv_ET_LEGS TYPE /SCTM/TT_LEG,
lv_IT_LEG_CALS TYPE /SCTM/TT_AD_LEG_CAL,
lv_IT_LEG_GUIDS TYPE /SCMB/TT_GUID,
lv_IT_LEG_HDS TYPE /SCTM/TT_AD_LEG_HD,
lv_IT_LEG_TSPS TYPE /SCTM/TT_AD_LEG_TSP,
lv_IV_WITH_ASSIGNS TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD lo_class=>GET_LEGS(
EXPORTING
IT_LEG_CALS = lv_IT_LEG_CALS
IT_LEG_GUIDS = lv_IT_LEG_GUIDS
IT_LEG_HDS = lv_IT_LEG_HDS
IT_LEG_TSPS = lv_IT_LEG_TSPS
IV_WITH_ASSIGNS = lv_IV_WITH_ASSIGNS
IMPORTING
ET_LEGS = lv_ET_LEGS ).
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