Skip to Content
0
Former Member
Feb 04, 2015 at 01:04 PM

FM convert_to_local_currency

529 Views

Hi experts,

i am trying to use the FM covert to local curreny to convert currency to USD. But the local amount shows up 100 times the actual. Please suggest.

Below is my code.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

EXPORTING

date = re_outtab_purchdoc-bedat

foreign_amount = re_outtab_purchdoc-netwr

foreign_currency = re_outtab_purchdoc-waers

local_currency = LV_CURR

* RATE = 0

* TYPE_OF_RATE = 'M'

* READ_TCURR = 'X'

IMPORTING

* EXCHANGE_RATE =

* FOREIGN_FACTOR =

local_amount = re_outtab_purchdoc-NETVALC

* LOCAL_FACTOR =

* EXCHANGE_RATEX =

* FIXED_RATE =

* DERIVED_RATE_TYPE =

EXCEPTIONS

no_rate_found = 1

overflow = 2

no_factors_found = 3

no_spread_found = 4

derived_2_times = 5

OTHERS = 6.