TCC_CALC_CHARGES SAP Method Network Costs: Return costs from TCM - call CC service









Below is documentation, parameters and attributes of ABAP Method TCC_CALC_CHARGES within SAP class /TRP/CL_SRV_NETWORK_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 /TRP/CL_SRV_NETWORK_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 TCC_CALC_CHARGES can also be found below:

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


Parameters of Method TCC_CALC_CHARGES

.

NameTypeData TypeDescriptionDefault Value
IT_COMM_STRUCTUREImportingTYPE
/SCMTMS/T_TCC_COMM_ROOT
IV_FA_IDImportingTYPE
/SCMTMS/FAG_ID
IV_PURCH_ORG_IDImportingTYPE
/SCMTMS/PURCH_ORG_ID
ET_TCC_COSTExportingTYPE
/SCMTMS/IF_TCC_ENGINE=>TT_RESPONSE



Exceptions of Method TCC_CALC_CHARGES

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /TRP/CL_SRV_NETWORK_COST.
DATA: lv_ET_TCC_COST TYPE /SCMTMS/IF_TCC_ENGINE=>TT_RESPONSE,
lv_IT_COMM_STRUCTURE TYPE /SCMTMS/T_TCC_COMM_ROOT,
lv_IV_FA_ID TYPE /SCMTMS/FAG_ID,
lv_IV_PURCH_ORG_ID TYPE /SCMTMS/PURCH_ORG_ID,
lv_other TYPE c.

CALL METHOD lo_class=>TCC_CALC_CHARGES(
EXPORTING
IT_COMM_STRUCTURE = lv_IT_COMM_STRUCTURE
IV_FA_ID = lv_IV_FA_ID
IV_PURCH_ORG_ID = lv_IV_PURCH_ORG_ID
IMPORTING
ET_TCC_COST = lv_ET_TCC_COST ).

Links to Related Class(s)

/TRP/CL_...
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!