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 directly

The 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

.

NameTypeData TypeDescriptionDefault Value
IS_KOMKImportingTYPE
KOMK
Communication Header for Pricing
IS_KOMPImportingTYPE
KOMP
Communication Item for Pricing
IS_KOMVImportingTYPE
KOMV
Pricing Communications-Condition Record
IV_AMOUNT_INImportingTYPE
CPF_NUMBER
Number
IV_CURRENCY_INImportingTYPE
KONWA
Rate unit (currency or percentage)
IV_CURRENCY_OUTImportingTYPE
KONWA
Rate unit (currency or percentage)
EV_AMOUNT_OUTExportingTYPE
CPF_NUMBER
Number



Exceptions of Method CONVERT_AMOUNT

CX_PRICING_CONVERSION_ERROR - Exception Class for Pricing Conversion

Example 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



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!