Skip to Content
author's profile photo Former Member
Former Member

Currency Conversion Error

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.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 10:31 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 10:34 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 21, 2009 at 10:37 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.