COMPUTE_TRIP_PENALTY_COSTS SAP Method Calculate Penalty Costs for a Trip
Below is documentation, parameters and attributes of ABAP Method COMPUTE_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 COMPUTE_TRIP_PENALTY_COSTS can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method COMPUTE_TRIP_PENALTY_COSTS
.| Name | Type | Data Type | Description | Default Value |
| IO_METHPAR | Importing | TYPE REF TO /SCTM/CL_METH_PARAMETER | Method Parameter BASIS | |
| IO_REQUEST | Importing | TYPE REF TO /SCTM/CL_RG_REQUEST | SCTM: Transportation Request | |
| IV_ACTUAL_END_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_ACTUAL_START_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_DUE_END_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_DUE_START_TIME | Importing | TYPE /SCMB/DE_TIMESTAMP | Time Stamp | |
| IV_LOCFROM_PRIO | Importing | TYPE /SCMB/MDL_LOCPRIO | Priority of Location | |
| IV_LOCTO_PRIO | Importing | TYPE /SCMB/MDL_LOCPRIO | Priority of Location | |
| IV_TPCPR | Importing | TYPE /SCMB/MDL_TPKPR | Cost Profile | |
| EV_PENTOT | Exporting | TYPE /SCMB/DE_PENTOT | Total Penalty Costs |
Exceptions of Method COMPUTE_TRIP_PENALTY_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_EV_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=>COMPUTE_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
IMPORTING
EV_PENTOT = lv_EV_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