ADAPT_TRIP_PENALTY_COSTS SAP Method Adjust Penalty Costs for a Trip









Below is documentation, parameters and attributes of ABAP Method ADAPT_TRIP_PENALTY_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_TRIP_PENALTY_COSTS can also be found below:

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


Parameters of Method ADAPT_TRIP_PENALTY_COSTS

.

NameTypeData TypeDescriptionDefault Value
IO_METHPARImportingTYPE REF TO
/SCTM/CL_METH_PARAMETER
Method Parameter BASIS
IO_REQUESTImportingTYPE REF TO
/SCTM/CL_RG_REQUEST
SCTM: Transportation Request
IV_ACTUAL_END_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_ACTUAL_START_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_DUE_END_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_DUE_START_TIMEImportingTYPE
/SCMB/DE_TIMESTAMP
Time Stamp
IV_LOCFROM_PRIOImportingTYPE
/SCMB/MDL_LOCPRIO
Priority of Location
IV_LOCTO_PRIOImportingTYPE
/SCMB/MDL_LOCPRIO
Priority of Location
IV_TPCPRImportingTYPE
/SCMB/MDL_TPKPR
Cost Profile
CV_PENTOTChangingTYPE
/SCMB/DE_PENTOT
Total Penalty Costs



Exceptions of Method ADAPT_TRIP_PENALTY_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_PENTOT TYPE /SCMB/DE_PENTOT,
lv_IO_METHPAR TYPE /SCTM/CL_METH_PARAMETER,
lv_IO_REQUEST TYPE /SCTM/CL_RG_REQUEST,
lv_IV_ACTUAL_END_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_ACTUAL_START_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_DUE_END_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_DUE_START_TIME TYPE /SCMB/DE_TIMESTAMP,
lv_IV_LOCFROM_PRIO TYPE /SCMB/MDL_LOCPRIO,
lv_IV_LOCTO_PRIO TYPE /SCMB/MDL_LOCPRIO,
lv_IV_TPCPR TYPE /SCMB/MDL_TPKPR,
lv_other TYPE c.

CALL METHOD lo_class=>ADAPT_TRIP_PENALTY_COSTS(
EXPORTING
IO_METHPAR = lv_IO_METHPAR
IO_REQUEST = lv_IO_REQUEST
IV_ACTUAL_END_TIME = lv_IV_ACTUAL_END_TIME
IV_ACTUAL_START_TIME = lv_IV_ACTUAL_START_TIME
IV_DUE_END_TIME = lv_IV_DUE_END_TIME
IV_DUE_START_TIME = lv_IV_DUE_START_TIME
IV_LOCFROM_PRIO = lv_IV_LOCFROM_PRIO
IV_LOCTO_PRIO = lv_IV_LOCTO_PRIO
IV_TPCPR = lv_IV_TPCPR
CHANGING
CV_PENTOT = lv_CV_PENTOT ).

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!