GET_LOCATIONS SAP Method of class /SCTM/CL_SP_ROUTE
Below is documentation, parameters and attributes of ABAP Method GET_LOCATIONS within SAP class /SCTM/CL_SP_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_SP_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 GET_LOCATIONS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_LOCATIONS
.| Name | Type | Data Type | Description | Default Value |
| IT_LOC_GUID | Importing | TYPE /SCMB/TT_GUID | Quantity of GUIDs for SCM Master Data Objects | |
| ET_LOC_ADDRESSES | Exporting | TYPE /SCTM/TT_AD_ADDRESS | Adaptor: Quantity of Addresses | |
| ET_LOC_HDS | Exporting | TYPE /SCTM/TT_AD_LOC_HD | Adapter: Location Header | |
| ET_LOC_ROLES | Exporting | TYPE /SCTM/TT_AD_LOC_ROLES | Adapter: Location Roles |
Exceptions of Method GET_LOCATIONS
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lv_ET_LOC_ADDRESSES TYPE /SCTM/TT_AD_ADDRESS,
lv_ET_LOC_HDS TYPE /SCTM/TT_AD_LOC_HD,
lv_ET_LOC_ROLES TYPE /SCTM/TT_AD_LOC_ROLES,
lv_IT_LOC_GUID TYPE /SCMB/TT_GUID,
lv_other TYPE c.
CALL METHOD /SCTM/CL_SP_ROUTE=>GET_LOCATIONS(
EXPORTING
IT_LOC_GUID = lv_IT_LOC_GUID
IMPORTING
ET_LOC_ADDRESSES = lv_ET_LOC_ADDRESSES
ET_LOC_HDS = lv_ET_LOC_HDS
ET_LOC_ROLES = lv_ET_LOC_ROLES ).
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