GET_ZONES_BY_LOCATION SAP Method Get fitting Zones for Locations









Below is documentation, parameters and attributes of ABAP Method GET_ZONES_BY_LOCATION 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 - Static

This is a Static Method so you can call it directly

The following technical details of method GET_ZONES_BY_LOCATION can also be found below:

  • Importing parameters
  • Exporting parameters
  • Changing parameters
  • Returning parameters
  • Exceptions
  • Coding Examples


Parameters of Method GET_ZONES_BY_LOCATION

.

NameTypeData TypeDescriptionDefault Value
IT_LOCATIONSImportingTYPE
/SCMB/MDL_LOCID_TAB
Location relevant for Lane Determination
ET_LOCATIONSExportingTYPE
/SCMB/TT_GUID
Quantity of GUIDs for SCM Master Data Objects
ET_ZONES_RELEVANTExportingTYPE
/SCMB/TT_GUID
Quantity of GUIDs for SCM Master Data Objects
ET_ZONE_DIRECTExportingTYPE
/SCMB/TT_ZONE_D
Sorted Table Type for /SCMB/ZONE_D
ET_ZONE_POSTALExportingTYPE
/SCMB/TT_ZONE_P
Sorted Table Type for /SCMB/ZONE_P
ET_ZONE_REGIONExportingTYPE
/SCMB/TT_ZONE_R
Sorted Table Type for /SCMB/ZONE_R
CT_LOCATION_DATAChangingTYPE
/SCTM/TT_LOCATION_ADDRESS
Location Address
CT_MESSAGEChangingTYPE
/SCMB/T_LDDD_MESSAGE
SCMB LDDD: Message Table Type for Dist. and Dur. Determ.



Exceptions of Method GET_ZONES_BY_LOCATION

This method does not have any exceptions

Example ABAP coding


DATA: lv_CT_LOCATION_DATA TYPE /SCTM/TT_LOCATION_ADDRESS,
lv_CT_MESSAGE TYPE /SCMB/T_LDDD_MESSAGE,
lv_ET_LOCATIONS TYPE /SCMB/TT_GUID,
lv_ET_ZONES_RELEVANT TYPE /SCMB/TT_GUID,
lv_ET_ZONE_DIRECT TYPE /SCMB/TT_ZONE_D,
lv_ET_ZONE_POSTAL TYPE /SCMB/TT_ZONE_P,
lv_ET_ZONE_REGION TYPE /SCMB/TT_ZONE_R,
lv_IT_LOCATIONS TYPE /SCMB/MDL_LOCID_TAB,
lv_other TYPE c.

CALL METHOD /SCTM/CL_GEOGRAPHY=>GET_ZONES_BY_LOCATION(
EXPORTING
IT_LOCATIONS = lv_IT_LOCATIONS
IMPORTING
ET_LOCATIONS = lv_ET_LOCATIONS
ET_ZONES_RELEVANT = lv_ET_ZONES_RELEVANT
ET_ZONE_DIRECT = lv_ET_ZONE_DIRECT
ET_ZONE_POSTAL = lv_ET_ZONE_POSTAL
ET_ZONE_REGION = lv_ET_ZONE_REGION
CHANGING
CT_LOCATION_DATA = lv_CT_LOCATION_DATA
CT_MESSAGE = lv_CT_MESSAGE ).

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



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!