TCC_PRE SAP Method Network Costs: Return costs from TCM - fill comm structure









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

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


Parameters of Method TCC_PRE

.

NameTypeData TypeDescriptionDefault Value
IT_CONNECTIONImportingTYPE
TT_CONNECTIONS
IV_FA_IDImportingTYPE
/SCMTMS/FAG_ID
IV_PURCH_ORG_IDImportingTYPE
/SCMTMS/PURCH_ORG_ID
IV_TRP_DATASET_IDImportingTYPE
CHAR50
ET_COMM_STRUCTUREExportingTYPE
/SCMTMS/T_TCC_COMM_ROOT
ET_CONN_ID_COMM_STRCExportingTYPE
TT_CONN_ID_COMM_STRUC
ET_MESSAGEExportingTYPE
/TRP/T_MESSAGE



Exceptions of Method TCC_PRE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /TRP/CL_SRV_NETWORK_COST.
DATA: lv_ET_COMM_STRUCTURE TYPE /SCMTMS/T_TCC_COMM_ROOT,
lv_ET_CONN_ID_COMM_STRC TYPE TT_CONN_ID_COMM_STRUC,
lv_ET_MESSAGE TYPE /TRP/T_MESSAGE,
lv_IT_CONNECTION TYPE TT_CONNECTIONS,
lv_IV_FA_ID TYPE /SCMTMS/FAG_ID,
lv_IV_PURCH_ORG_ID TYPE /SCMTMS/PURCH_ORG_ID,
lv_IV_TRP_DATASET_ID TYPE CHAR50,
lv_other TYPE c.

CALL METHOD lo_class=>TCC_PRE(
EXPORTING
IT_CONNECTION = lv_IT_CONNECTION
IV_FA_ID = lv_IV_FA_ID
IV_PURCH_ORG_ID = lv_IV_PURCH_ORG_ID
IV_TRP_DATASET_ID = lv_IV_TRP_DATASET_ID
IMPORTING
ET_COMM_STRUCTURE = lv_ET_COMM_STRUCTURE
ET_CONN_ID_COMM_STRC = lv_ET_CONN_ID_COMM_STRC
ET_MESSAGE = lv_ET_MESSAGE ).

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!