CONVERT_WITH_I_FXRATE_FLTP SAP Method Translate with Import FX Rate (Float)









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

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


Parameters of Method CONVERT_WITH_I_FXRATE_FLTP

.

NameTypeData TypeDescriptionDefault Value
I_FROM_AMOUNTImportingTYPE
F
Amount to be Converted
I_FROM_CCYImportingTYPE
WAERS
Currency Key
I_FXRATEImportingTYPE
F
Exchange Rate (Optional)
I_RATETYPEImportingTYPE
/BA1/F4_DTE_FX_RATE_TYPE
Exchange Rate Category
I_TO_CCYImportingTYPE
WAERS
Currency Key
I_VALID_DATEImportingTYPE
DATUM
Date
E_FROM_FACTORExportingTYPE
/BA1/F4_DTE_FX_FFACT
Ratio for the 'from' currency units
E_TO_AMOUNTExportingTYPE
F
Converted Amount
E_TO_FACTORExportingTYPE
/BA1/F4_DTE_FX_TFACT
Ratio for the 'to' currency units



Exceptions of Method CONVERT_WITH_I_FXRATE_FLTP

E_FROM_FACTORExportingTYPE
/BA1/F4_DTE_FX_FFACTRatio for the 'from' currency unitsE_TO_AMOUNTExportingTYPE
FConverted AmountE_TO_FACTORExportingTYPE
/BA1/F4_DTE_FX_TFACTRatio for the 'to' currency unitsMETHOD_FAILED - Method Failed

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_FACTOR TYPE /BA1/F4_DTE_FX_FFACT,
lv_E_TO_AMOUNT TYPE F,
lv_E_TO_FACTOR TYPE /BA1/F4_DTE_FX_TFACT,
lv_I_FROM_AMOUNT TYPE F,
lv_I_FROM_CCY TYPE WAERS,
lv_I_FXRATE TYPE F,
lv_I_RATETYPE TYPE /BA1/F4_DTE_FX_RATE_TYPE,
lv_I_TO_CCY TYPE WAERS,
lv_I_VALID_DATE TYPE DATUM,
lv_other TYPE c.

CALL METHOD lo_class=>CONVERT_WITH_I_FXRATE_FLTP(
EXPORTING
I_FROM_AMOUNT = lv_I_FROM_AMOUNT
I_FROM_CCY = lv_I_FROM_CCY
I_FXRATE = lv_I_FXRATE
I_RATETYPE = lv_I_RATETYPE
I_TO_CCY = lv_I_TO_CCY
I_VALID_DATE = lv_I_VALID_DATE
IMPORTING
E_FROM_FACTOR = lv_E_FROM_FACTOR
E_TO_AMOUNT = lv_E_TO_AMOUNT
E_TO_FACTOR = lv_E_TO_FACTOR ).

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



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!