Application Development and Automation 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: 
Read only

Currency Conversion Error

Former Member
0 Likes
653

In one of my report for Foreign Currency Conversion I am using the FM 'CONVERT_TO_LOCAL_CURRENCY'

The foreign Currency value is 19,120 but in debugging it is shown as 191.20 but finally displaying in the output as 19,120.

After converting, Local currency calculated is shown as 47397 in debugging whereas it should be 473.97 and is displayed in the output as 474.

Please suggest any possible solution to avoid the rounding of the last digits.

3 REPLIES 3
Read only

Former Member
0 Likes
592

Hi ,

try to use 'CONVERT_TO_FOREIGN_CURRENCY' and check the out put..

first check the destination feild is it having decimals and it is currencyu field.

Prabhudas

Edited by: Prabhu Das on May 21, 2009 4:02 PM

Read only

Former Member
0 Likes
592

Hi Marina,

I understand your problem.

The problem over here is the data type which is for the local and foriegn are different and hence you are facing the problem.

Please give the same data type you would get the correct output.

Regards,

Sunil Thota.

Read only

Former Member
0 Likes
592

Hi marina,

in this FM 'CONVERT_TO_LOCAL_CURRENCY' is correct . in your case you have :

CLIENT

DATE

FOREIGN_AMOUNT

FOREIGN_CURRENCY

LOCAL_CURRENCY

RATE

TYPE_OF_RATE

READ_TCURR

as import parmaters.

Type of rate M=Average rate G=Bank buying rate B=bank selling rate rate.

check the long text inside the function module -> import parameters.. then set the value accoriding to that.

regards,

safel

In one of my report for Foreign Currency Conversion I am using the FM 'CONVERT_TO_LOCAL_CURRENCY'

The foreign Currency value is 19,120 but in debugging it is shown as 191.20 but finally displaying in the output as 19,120.

After converting, Local currency calculated is shown as 47397 in debugging whereas it should be 473.97 and is displayed in the output as 474.

Please suggest any possible solution to avoid the rounding of the last digits.