GET_ZONE SAP Method Returns Zone If It Exists
Below is documentation, parameters and attributes of ABAP Method GET_ZONE within SAP class /SCTM/CL_M_ZONE. 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_M_ZONE 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_ZONE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_ZONE
.| Name | Type | Data Type | Description | Default Value |
| IV_GUID | Importing | TYPE /SCMB/DE_GUID | GUID of an SCM Master Data Object | |
| IV_ID | Importing | TYPE /SCMB/DE_ZONE_ID | Zone Name | |
| RO_ZONE | Returning | TYPE REF TO /SCTM/CL_M_ZONE | Master Data Maintenance: Zone |
Exceptions of Method GET_ZONE
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lv_IV_GUID TYPE /SCMB/DE_GUID,
lv_IV_ID TYPE /SCMB/DE_ZONE_ID,
lv_RO_ZONE TYPE /SCTM/CL_M_ZONE,
lv_other TYPE c.
CALL METHOD /SCTM/CL_M_ZONE=>GET_ZONE(
EXPORTING
IV_GUID = lv_IV_GUID
IV_ID = lv_IV_ID
RECEIVING
RO_ZONE = lv_RO_ZONE )
"Alternate coding for Method Call with returning parameter
lv_RO_ZONE = /SCTM/CL_M_ZONE=>GET_ZONE(
EXPORTING
IV_GUID = lv_IV_GUID
IV_ID = lv_IV_ID ).
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