READ_FROM_DB SAP Method Read Transportation Zone data from DB
Below is documentation, parameters and attributes of ABAP Method READ_FROM_DB within SAP class /SCTM/CL_ZONE_SP. 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_ZONE_SP 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 READ_FROM_DB can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method READ_FROM_DB
.| Name | Type | Data Type | Description | Default Value |
| IS_ZONE_CRIT | Importing | TYPE /SCMB/S_ZONE_CRIT | Selection Criteria for DB Table /SCMB/ZONE | |
| IT_ZONE_GUIDS | Importing | TYPE /SCMB/TT_GUID | Quantity of GUIDs for SCM Master Data Objects | |
| IV_WITH_LEG_LOCS | Importing | TYPE BOOLE_D | With Complex Determination of Leg Locations | |
| IV_WITH_ZONE_ROUTES | Importing | TYPE BOOLE_D | With Complex Determination of Routes in the Zones | |
| ET_HD_GUIDS | Exporting | TYPE /SCMB/TT_GUID | Quantity of GUIDs for SCM Master Data Objects |
Exceptions of Method READ_FROM_DB
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/CL_ZONE_SP.
DATA: lv_ET_HD_GUIDS TYPE /SCMB/TT_GUID,
lv_IS_ZONE_CRIT TYPE /SCMB/S_ZONE_CRIT,
lv_IT_ZONE_GUIDS TYPE /SCMB/TT_GUID,
lv_IV_WITH_LEG_LOCS TYPE BOOLE_D,
lv_IV_WITH_ZONE_ROUTES TYPE BOOLE_D,
lv_other TYPE c.
CALL METHOD lo_class=>READ_FROM_DB(
EXPORTING
IS_ZONE_CRIT = lv_IS_ZONE_CRIT
IT_ZONE_GUIDS = lv_IT_ZONE_GUIDS
IV_WITH_LEG_LOCS = lv_IV_WITH_LEG_LOCS
IV_WITH_ZONE_ROUTES = lv_IV_WITH_ZONE_ROUTES
IMPORTING
ET_HD_GUIDS = lv_ET_HD_GUIDS ).
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