GET_COST_FROM_BADI SAP Method Network Costs: Return costs from BADI
Below is documentation, parameters and attributes of ABAP Method GET_COST_FROM_BADI 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_BADI can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method GET_COST_FROM_BADI
.| Name | Type | Data Type | Description | Default Value |
| IT_CONNECTION | Importing | TYPE TT_CONNECTIONS | ||
| IV_COST_BASIS_UOM | Importing | TYPE MEINS | ||
| IV_COST_PROF_ID | Importing | TYPE /SCMTMS/VSR_PLANCOST_PROFID | ||
| IV_CURRENCY | Importing | TYPE /SCMTMS/CURRENCY | ||
| IV_FA_ID | Importing | TYPE /SCMTMS/FAG_ID | ||
| IV_PURCH_ORG_ID | Importing | TYPE /SCMTMS/PURCH_ORG_ID | ||
| IV_TRP_DATASET_ID | Importing | TYPE CHAR50 | ||
| ET_CONNECTION_COST | Exporting | TYPE TT_CONNECTION_COSTS | ||
| ET_MESSAGE | Exporting | TYPE /TRP/T_MESSAGE |
Exceptions of Method GET_COST_FROM_BADI
This method does not have any exceptionsExample 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_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=>GET_COST_FROM_BADI(
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_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_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