GET_CALC_METHOD SAP Method Get Calculation Method









Below is documentation, parameters and attributes of ABAP Method GET_CALC_METHOD within SAP class /SCMTMS/CL_CALC_METHOD_BASE. 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 /SCMTMS/CL_CALC_METHOD_BASE into the relevant SAP transactions such as SE24 or SE80, and then selecting the method you are interested in.


Method Type - Static

This is a Static Method so you can call it directly

The following technical details of method GET_CALC_METHOD can also be found below:

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


Parameters of Method GET_CALC_METHOD

.

NameTypeData TypeDescriptionDefault Value
IR_BUS_DATA_ACCESSImportingTYPE REF TO
/SCMTMS/IF_TCC_BUS_DATA_ACC
TCC Business Data Access Interface
IR_DO_CHARGESImportingTYPE REF TO
/SCMTMS/S_TCC_DO_CHARGES_COM
DO TransportationCharges - Communication Structure
IR_TCE_LINEImportingTYPE REF TO
/SCMTMS/S_TCC_TRCHRG_ELMNT_COM
Transportation Charge Element - Communication Structure
IR_TCE_LINE_2ImportingTYPE REF TO
/SCMTMS/S_TCC_CHRG_ELMNT_COM_2
Transportation Charge Element - Communication Structure
IS_CALC_METHODImportingTYPE
/SCMTMS/S_TCET_CALC_METHOD
TCM: Calculation Method Code
RS_CALC_METHODReturningTYPE
/SCMTMS/C_CALMCL
Calculation Method - Class Customizing



Exceptions of Method GET_CALC_METHOD

/SCMTMS/CX_TCCS_ENGINE - Exceptions in TC Calculation

Example ABAP coding


DATA: lv_IR_BUS_DATA_ACCESS TYPE /SCMTMS/IF_TCC_BUS_DATA_ACC,
lv_IR_DO_CHARGES TYPE /SCMTMS/S_TCC_DO_CHARGES_COM,
lv_IR_TCE_LINE TYPE /SCMTMS/S_TCC_TRCHRG_ELMNT_COM,
lv_IR_TCE_LINE_2 TYPE /SCMTMS/S_TCC_CHRG_ELMNT_COM_2,
lv_IS_CALC_METHOD TYPE /SCMTMS/S_TCET_CALC_METHOD,
lv_RS_CALC_METHOD TYPE /SCMTMS/C_CALMCL,
lv_other TYPE c.

CALL METHOD /SCMTMS/CL_CALC_METHOD_BASE=>GET_CALC_METHOD(
EXPORTING
IR_BUS_DATA_ACCESS = lv_IR_BUS_DATA_ACCESS
IR_DO_CHARGES = lv_IR_DO_CHARGES
IR_TCE_LINE = lv_IR_TCE_LINE
IR_TCE_LINE_2 = lv_IR_TCE_LINE_2
IS_CALC_METHOD = lv_IS_CALC_METHOD
RECEIVING
RS_CALC_METHOD = lv_RS_CALC_METHOD )



"Alternate coding for Method Call with returning parameter
lv_RS_CALC_METHOD = /SCMTMS/CL_CALC_METHOD_BASE=>GET_CALC_METHOD(
EXPORTING
IR_BUS_DATA_ACCESS = lv_IR_BUS_DATA_ACCESS
IR_DO_CHARGES = lv_IR_DO_CHARGES
IR_TCE_LINE = lv_IR_TCE_LINE
IR_TCE_LINE_2 = lv_IR_TCE_LINE_2
IS_CALC_METHOD = lv_IS_CALC_METHOD ).

Links to Related Class(s)

/SCMTMS/...
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!