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

Exchange rate conversion

Hi,

I need to convert from document currecncy to local currency

I am using

CALL FUNCTION 'CONVERT_CURRENCY_BY_RATE'

EXPORTING

from_amount = w_output_data-amount

from_currency = w_output_data-doccurr

from_factor = myform_factor

rate = frate "myrate "w_output_data-erate

to_currency = w_output_data-localcurr

to_factor = myform_factor

IMPORTING

to_amount = w_output_data-local_amount

EXCEPTIONS

no_rate_found = 1

OTHERS = 2.

IF sy-subrc <> 0.

MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno

WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.

ENDIF.

The problem I get is w_output_data-amount is using the internal format of the amount, but when it displays it on the screen it is the correct amount, but when going into the function it does not have the rate number as in the screen displays 125,000 but the amount going into the function 1250.00 , this is for JPY

Thanks

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 01:10 PM

    Slims,

    Check this post

    how-to-find-a-good-function-about-conversion-of-ex

    Regards,

    Satish

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I did , what I am doing is from JPY to GBP and the ratio does not appear to be filled in that is it is 1.

      Strangely, even though it is stored as 1250.00 , when displayed in the ALV grid it comes out to the correct value of 125000

      Any Ideas?

  • author's profile photo Former Member
    Former Member
    Posted on Dec 05, 2007 at 01:02 PM

    I am getting the amount from KONV, and in there even though the amount in JPY is 125000 it stores it as 1250.00

    Any Ideas ?

    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.