‎2008 Mar 26 1:00 PM
hi,
Can anyone give a simple program of using the function module
Convert_to_local_currency.
simple codes only ,I need to understand the function of that module.
‎2008 Mar 26 1:01 PM
hi,
start transaction SE37, enter the function module name and click on Where used list... You will get lots of program, which uses this FM...
hope this helps
ec
‎2008 Mar 26 1:01 PM
hi,
start transaction SE37, enter the function module name and click on Where used list... You will get lots of program, which uses this FM...
hope this helps
ec
‎2008 Mar 26 1:06 PM
Hi,
Check This COde
Report z_test.
data v_amnt type wrbtr.
data v_amnt1 type wrbtr.
move '1000' to v_amnt.
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
* CLIENT = SY-MANDT
date = sy-datum
foreign_amount = v_amnt
foreign_currency = 'EUR'
local_currency = 'INR'
* RATE = 0
* TYPE_OF_RATE = 'M'
* READ_TCURR = 'X'
IMPORTING
* EXCHANGE_RATE =
* FOREIGN_FACTOR =
LOCAL_AMOUNT = v_amnt1
* 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
.
IF sy-subrc <> 0.
* MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
* WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
ENDIF.
Reward If Helpful
Regards
Sandipan
Edited by: Sandipan Ghosh on Mar 26, 2008 6:37 PM
‎2008 Apr 15 2:53 PM