ADAPT_LANE_TRANSPORT_COSTS SAP Method Adjust Transportation Costs for a Stage
Below is documentation, parameters and attributes of ABAP Method ADAPT_LANE_TRANSPORT_COSTS within SAP class /SCTM/IF_EX_RG_COST. 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/IF_EX_RG_COST 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 ADAPT_LANE_TRANSPORT_COSTS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method ADAPT_LANE_TRANSPORT_COSTS
.| Name | Type | Data Type | Description | Default Value |
| IO_METHPAR | Importing | TYPE REF TO /SCTM/CL_METH_PARAMETER | Method Parameter BASIS | |
| IO_MTR | Importing | TYPE REF TO /SCTM/CL_MTR | Means of Transport | |
| IO_REQUEST | Importing | TYPE REF TO /SCTM/CL_RG_REQUEST | SCTM: Transportation Request | |
| IO_TSP | Importing | TYPE REF TO /SCTM/CL_TSP | Transportation Service Provider | |
| IV_ACTUAL_END_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_ACTUAL_START_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_DISTANCE | Importing | TYPE /SCMB/DE_DISTANCE | Distance | |
| IV_DISTANCE_UOM | Importing | TYPE /SCMB/TMDL_UOM | Unit | |
| IV_DURATION | Importing | TYPE /SCMB/DE_DURATION | Duration | |
| IV_LOCFROM | Importing | TYPE /SCMB/MDL_LOCID | Location GUID | |
| IV_LOCTO | Importing | TYPE /SCMB/MDL_LOCID | Location GUID | |
| IV_TOTWEIGHT | Importing | TYPE BRGEW | Gross Weight | |
| IV_TOTWEIGHT_UOM | Importing | TYPE GEWEI | Unit of Weight | |
| IV_TPCPR | Importing | TYPE /SCMB/MDL_TPKPR | Costs | |
| CV_TCTOT | Changing | TYPE /SCMB/DE_TCTOT | Total Transportation Costs |
Exceptions of Method ADAPT_LANE_TRANSPORT_COSTS
/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing GuideExample ABAP coding
DATA: lo_class TYPE REF TO /SCTM/IF_EX_RG_COST.
DATA: lv_CV_TCTOT TYPE /SCMB/DE_TCTOT,
lv_IO_METHPAR TYPE /SCTM/CL_METH_PARAMETER,
lv_IO_MTR TYPE /SCTM/CL_MTR,
lv_IO_REQUEST TYPE /SCTM/CL_RG_REQUEST,
lv_IO_TSP TYPE /SCTM/CL_TSP,
lv_IV_ACTUAL_END_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_ACTUAL_START_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_DISTANCE TYPE /SCMB/DE_DISTANCE,
lv_IV_DISTANCE_UOM TYPE /SCMB/TMDL_UOM,
lv_IV_DURATION TYPE /SCMB/DE_DURATION,
lv_IV_LOCFROM TYPE /SCMB/MDL_LOCID,
lv_IV_LOCTO TYPE /SCMB/MDL_LOCID,
lv_IV_TOTWEIGHT TYPE BRGEW,
lv_IV_TOTWEIGHT_UOM TYPE GEWEI,
lv_IV_TPCPR TYPE /SCMB/MDL_TPKPR,
lv_other TYPE c.
CALL METHOD lo_class=>ADAPT_LANE_TRANSPORT_COSTS(
EXPORTING
IO_METHPAR = lv_IO_METHPAR
IO_MTR = lv_IO_MTR
IO_REQUEST = lv_IO_REQUEST
IO_TSP = lv_IO_TSP
IV_ACTUAL_END_TIME = lv_IV_ACTUAL_END_TIME
IV_ACTUAL_START_TIME = lv_IV_ACTUAL_START_TIME
IV_DISTANCE = lv_IV_DISTANCE
IV_DISTANCE_UOM = lv_IV_DISTANCE_UOM
IV_DURATION = lv_IV_DURATION
IV_LOCFROM = lv_IV_LOCFROM
IV_LOCTO = lv_IV_LOCTO
IV_TOTWEIGHT = lv_IV_TOTWEIGHT
IV_TOTWEIGHT_UOM = lv_IV_TOTWEIGHT_UOM
IV_TPCPR = lv_IV_TPCPR
CHANGING
CV_TCTOT = lv_CV_TCTOT ).
Links to Related Class(s)
/SCTM/IF...Full list of available SAP object classes
Search for further information about these or an SAP related objects