2009 Dec 04 6:03 AM
Hi all,
i got a problem in currency convertion.(forign currency to local currency). i need a sample program of currency convertion wit proper output..
karthiik
Hi all,
i got a problem in currency convertion.(forign currency to local currency). i need a sample program of currency convertion wit proper output..
karthiik
2009 Dec 04 6:07 AM
2009 Dec 04 6:16 AM
link:[http://www.saptechies.com/how-to-convert-from-one-currency-value-to-other/]
link:[http://sapprograms.blogspot.com/2008/11/fm-currency-conversion.html]
2009 Dec 04 8:43 AM
Hi Karthikeyans,
code similar way:
CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
client = sy-mandt
date = p_condate
foreign_amount = p_dmbtr
foreign_currency = p_waers
local_currency = p_concurr
type_of_rate = p_rttyp
IMPORTING
exchange_rate = p_exrt
foreign_factor = p_confc
local_amount = p_dmbtr
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.
p_condate TYPE sy-datum
p_concurr LIKE w_concurr (TYPE waers)
p_waers LIKE wa_final-waers
p_rttyp LIKE w_rttyp (TYPE kurst)
p_dmbtr LIKE wa_final-dmbtr
p_exrt LIKE w_exrt (TYPE i),
p_confc LIKE w_confc. (TYPE i)
You check this FM , writing in your code.(no need to try to test using self execution of FM).
Regards,
Tutun
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |