Skip to Content
0
Former Member
Dec 28, 2007 at 10:06 AM

FM (RKC_SINGLE_EXCHANGE_RATE_GET) - Urgent

72 Views

Hi All,

I managed to find a FM to do the currency conversion, but facing the error where the reference currency still shows document currency & not the converted currency.

Eg: Output-

Document Value - 5500

Document Currency - Rs

Convert to EURO

Converted Value - 100 (value conversion is ok)

Converted currency still shows as Rs & not EUR

I think the error is because i am multiplying the document value with the exchange rate & so the output still shows the document currency. How to rectify this problem?

CALL FUNCTION 'RKC_SINGLE_EXCHANGE_RATE_GET'

EXPORTING

DATUM = Y_DATE

INVKZ = SPACE

KURST = Y_KURST

NCURR = Y_WAERS

VCURR = VBRK-WAERK

IMPORTING

EXCHR = Y_EXCHR

EXCEPTIONS

NO_RATE_FOUND.

Y_VALUE = VBRK-NETWR * Y_EXCHR.