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

.

NameTypeData TypeDescriptionDefault Value
IO_METHPARImportingTYPE REF TO
/SCTM/CL_METH_PARAMETER
Method Parameter BASIS
IO_MTRImportingTYPE REF TO
/SCTM/CL_MTR
Means of Transport
IO_REQUESTImportingTYPE REF TO
/SCTM/CL_RG_REQUEST
SCTM: Transportation Request
IO_TSPImportingTYPE REF TO
/SCTM/CL_TSP
Transportation Service Provider
IV_ACTUAL_END_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_ACTUAL_START_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_DISTANCEImportingTYPE
/SCMB/DE_DISTANCE
Distance
IV_DISTANCE_UOMImportingTYPE
/SCMB/TMDL_UOM
Unit
IV_DURATIONImportingTYPE
/SCMB/DE_DURATION
Duration
IV_LOCFROMImportingTYPE
/SCMB/MDL_LOCID
Location GUID
IV_LOCTOImportingTYPE
/SCMB/MDL_LOCID
Location GUID
IV_TOTWEIGHTImportingTYPE
BRGEW
Gross Weight
IV_TOTWEIGHT_UOMImportingTYPE
GEWEI
Unit of Weight
IV_TPCPRImportingTYPE
/SCMB/MDL_TPKPR
Costs
CV_TCTOTChangingTYPE
/SCMB/DE_TCTOT
Total Transportation Costs



Exceptions of Method ADAPT_LANE_TRANSPORT_COSTS

/SCTM/CX_TM_RG_DATA - Inconsistent Data in Routing Guide

Example 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



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!