GET_COST_FROM_PROFILE SAP Method Network Costs: Return costs from cost profile









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

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


Parameters of Method GET_COST_FROM_PROFILE

.

NameTypeData TypeDescriptionDefault Value
IT_CONNECTIONImportingTYPE
TT_CONNECTIONS
IV_COST_BASIS_UOMImportingTYPE
MEINS
IV_COST_PROF_IDImportingTYPE
/SCMTMS/VSR_PLANCOST_PROFID
IV_CURRENCYImportingTYPE
/SCMTMS/CURRENCY
Currency
IV_TRP_DATASET_IDImportingTYPE
CHAR50
ET_CONNECTION_COSTExportingTYPE
TT_CONNECTION_COSTS
ET_MESSAGEExportingTYPE
/TRP/T_MESSAGE



Exceptions of Method GET_COST_FROM_PROFILE

This method does not have any exceptions

Example ABAP coding


DATA: lo_class TYPE REF TO /TRP/CL_SRV_NETWORK_COST.
DATA: lv_ET_CONNECTION_COST TYPE TT_CONNECTION_COSTS,
lv_ET_MESSAGE TYPE /TRP/T_MESSAGE,
lv_IT_CONNECTION TYPE TT_CONNECTIONS,
lv_IV_COST_BASIS_UOM TYPE MEINS,
lv_IV_COST_PROF_ID TYPE /SCMTMS/VSR_PLANCOST_PROFID,
lv_IV_CURRENCY TYPE /SCMTMS/CURRENCY,
lv_IV_TRP_DATASET_ID TYPE CHAR50,
lv_other TYPE c.

CALL METHOD lo_class=>GET_COST_FROM_PROFILE(
EXPORTING
IT_CONNECTION = lv_IT_CONNECTION
IV_COST_BASIS_UOM = lv_IV_COST_BASIS_UOM
IV_COST_PROF_ID = lv_IV_COST_PROF_ID
IV_CURRENCY = lv_IV_CURRENCY
IV_TRP_DATASET_ID = lv_IV_TRP_DATASET_ID
IMPORTING
ET_CONNECTION_COST = lv_ET_CONNECTION_COST
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!