CONVERT_AMOUNT SAP Method Convert Amount
Below is documentation, parameters and attributes of ABAP Method CONVERT_AMOUNT within SAP class IF_PRICING_CONVERSION_BADI. 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 IF_PRICING_CONVERSION_BADI 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 directlyThe following technical details of method CONVERT_AMOUNT can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONVERT_AMOUNT
.Name | Type | Data Type | Description | Default Value |
IS_KOMK | Importing | TYPE KOMK | Communication Header for Pricing | |
IS_KOMP | Importing | TYPE KOMP | Communication Item for Pricing | |
IS_KOMV | Importing | TYPE KOMV | Pricing Communications-Condition Record | |
IV_AMOUNT_IN | Importing | TYPE CPF_NUMBER | Number | |
IV_CURRENCY_IN | Importing | TYPE KONWA | Rate unit (currency or percentage) | |
IV_CURRENCY_OUT | Importing | TYPE KONWA | Rate unit (currency or percentage) | |
EV_AMOUNT_OUT | Exporting | TYPE CPF_NUMBER | Number |
Exceptions of Method CONVERT_AMOUNT
CX_PRICING_CONVERSION_ERROR - Exception Class for Pricing ConversionExample ABAP coding
DATA: lv_EV_AMOUNT_OUT TYPE CPF_NUMBER,
lv_IS_KOMK TYPE KOMK,
lv_IS_KOMP TYPE KOMP,
lv_IS_KOMV TYPE KOMV,
lv_IV_AMOUNT_IN TYPE CPF_NUMBER,
lv_IV_CURRENCY_IN TYPE KONWA,
lv_IV_CURRENCY_OUT TYPE KONWA,
lv_other TYPE c.
CALL METHOD IF_PRICING_CONVERSION_BADI=>CONVERT_AMOUNT(
EXPORTING
IS_KOMK = lv_IS_KOMK
IS_KOMP = lv_IS_KOMP
IS_KOMV = lv_IS_KOMV
IV_AMOUNT_IN = lv_IV_AMOUNT_IN
IV_CURRENCY_IN = lv_IV_CURRENCY_IN
IV_CURRENCY_OUT = lv_IV_CURRENCY_OUT
IMPORTING
EV_AMOUNT_OUT = lv_EV_AMOUNT_OUT ).
Links to Related Class(s)
IF_PRICI...Full list of available SAP object classes
Search for further information about these or an SAP related objects