CONVERT_RATE SAP Method Convert Exchange Rate to Other Notation
Below is documentation, parameters and attributes of ABAP Method CONVERT_RATE within SAP class /BA1/CL_F4_API_FX. There is also a number of example ABAP code snipts to help you use the functionality of this method.
This is a private Method so can only be executed from within the class itself. I.e. You could access it from another method of the class.This method is available within SAP systems depending on your version and release level, you can view further information by entering the class name /BA1/CL_F4_API_FX 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 CONVERT_RATE can also be found below:
- Importing parameters
- Exporting parameters
- Changing parameters
- Returning parameters
- Exceptions
- Coding Examples
Parameters of Method CONVERT_RATE
.| Name | Type | Data Type | Description | Default Value |
| I_FROM_CCY | Importing | TYPE WAERS | Currency Key | |
| I_FXRATE | Importing | TYPE /BA1/F4_DTE_FX_RATE_DEC | Exchange Rate | |
| I_NOTATION_FXRATE | Importing | TYPE /BA1/F4_DTE_FX_NOTATION | Quotation of an FX Rate | |
| I_RATETYPE | Importing | TYPE /BA1/F4_DTE_FX_RATE_TYPE | Exchange Rate Category | |
| I_TO_CCY | Importing | TYPE WAERS | Currency Key | |
| I_VALID_DATE | Importing | TYPE DATUM | Date | |
| I_EXTENDED_FXRATE | Importing | TYPE DECFLOAT34 | Exchange Rate (Rate Factors 1:1) | |
| E_FROM_FACT | Exporting | TYPE /BA1/F4_DTE_FX_FFACT | Ratio for the 'from' currency units | |
| E_FXRATE | Exporting | TYPE /BA1/F4_DTE_FX_RATE_DEC | Exchange Rate | |
| E_TO_FACT | Exporting | TYPE /BA1/F4_DTE_FX_TFACT | Ratio for the 'to' currency units | |
| E_EXTENDED_FXRATE | Exporting | TYPE DECFLOAT34 | Exchange Rate (Rate Factors 1:1) |
Exceptions of Method CONVERT_RATE
/BA1/F4_DTE_FX_FFACT
/BA1/F4_DTE_FX_RATE_DEC
/BA1/F4_DTE_FX_TFACT
Example ABAP coding
This is a private Method so the below code can only be executed from within the class itself. I.e. from another method of the class.DATA: lo_class TYPE REF TO /BA1/CL_F4_API_FX.
DATA: lv_E_FROM_FACT TYPE /BA1/F4_DTE_FX_FFACT,
lv_E_FXRATE TYPE /BA1/F4_DTE_FX_RATE_DEC,
lv_E_TO_FACT TYPE /BA1/F4_DTE_FX_TFACT,
lv_I_FROM_CCY TYPE WAERS,
lv_I_FXRATE TYPE /BA1/F4_DTE_FX_RATE_DEC,
lv_I_NOTATION_FXRATE TYPE /BA1/F4_DTE_FX_NOTATION,
lv_I_RATETYPE TYPE /BA1/F4_DTE_FX_RATE_TYPE,
lv_I_TO_CCY TYPE WAERS,
lv_I_VALID_DATE TYPE DATUM,
lv_E_EXTENDED_FXRATE TYPE DECFLOAT34,
lv_I_EXTENDED_FXRATE TYPE DECFLOAT34,
lv_other TYPE c.
CALL METHOD lo_class=>CONVERT_RATE(
EXPORTING
I_FROM_CCY = lv_I_FROM_CCY
I_FXRATE = lv_I_FXRATE
I_NOTATION_FXRATE = lv_I_NOTATION_FXRATE
I_RATETYPE = lv_I_RATETYPE
I_TO_CCY = lv_I_TO_CCY
I_VALID_DATE = lv_I_VALID_DATE
I_EXTENDED_FXRATE = lv_I_EXTENDED_FXRATE
IMPORTING
E_FROM_FACT = lv_E_FROM_FACT
E_FXRATE = lv_E_FXRATE
E_TO_FACT = lv_E_TO_FACT
E_EXTENDED_FXRATE = lv_E_EXTENDED_FXRATE ).
Links to Related Class(s)
/BA1/CL_...Full list of available SAP object classes
Search for further information about these or an SAP related objects