Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Need help with FI_CURRENCIES_CONVERT

Former Member
0 Kudos

Hi,

I need to convert currency using this function module.

Following is the subroutine written:

FORM currency_convert USING p_kwert p_waers1 p_prsdt

CHANGING p_dmbtr.

CLEAR i_icurr.

i_icurr-wrbtr = p_kwert.

i_icurr-hwaer = p_waers.

i_icurr-waers = p_waers1.

i_icurr-wwert = p_prsdt.

CALL FUNCTION 'FI_CURRENCIES_CONVERT'

EXPORTING

i_icurr = i_icurr

IMPORTING

e_icurr = i_icurr.

IF sy-subrc NE 0.

MESSAGE i033 WITH p_waers.

ELSE.

p_dmbtr = i_icurr-dmbtr.

ENDIF.

ENDFORM. "currency_convert

Now when I enter the Reporting Currency 'EUR' the program gives the error "Enter rate USD / EUR rate type M for

23.03.2006 in the system settings Message no. SG105". Though the exchange rate is maintained for USD & Euro.

What could be cause of error? Am I missing some important parameter that should be passed to the function module?

How and where do I verify the exchange rate maintained?

Thanks.

Shreyas

Help will be rewarded.

2 REPLIES 2

Former Member
0 Kudos

Hi

I tried this code and no problem occurs:

ICURR-DMBTR = 0.

ICURR-WRBTR = 1000.

ICURR-HWAER = 'EUR'.

ICURR-WAERS = 'USD'.

ICURR-WWERT = SY-DATUM.

CALL FUNCTION 'FI_CURRENCIES_CONVERT'

EXPORTING

I_ICURR = ICURR

IMPORTING

E_ICURR = ICURR.

Here I can see the converted amount in the ICURR-DMBTR field.

So I suppose you've have some problem in your system in the exchanges rate table: TCURF

Or trx SPRO

General Setting->Currencies->Enter exchanges rates

Max

Clemenss
Active Contributor
0 Kudos

Shreyas Shrikant,

The error just means that the conversion rate has not been maintained in your system on the given date. How should the system determine the exchange rate?

Regards,

Clemens