Skip to Content
0
Former Member
Jul 16, 2015 at 01:34 PM

CONVERT_TO_LOCAL_CURRENCY in a routine

88 Views

Hi,

Struggling with this error, I have searchd the forum but couldn't find anything relevant...

Is this a common error?

How to solve it?

In BW 7.3

I am using CONVERT_TO_LOCAL_CURRENCY in a routine where I have as input data

data: fl type AUSP-ATFLV.

data: p type p decimals 5.

fl = SOURCE_FIELDS-EXCHG_RATE. //where fl = 1,1538240000000000E+04

p = fl.

CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'
EXPORTING
DATE = 19.03.2013

FOREIGN_AMOUNT = 61,13
FOREIGN_CURRENCY = EUR

LOCAL_CURRENCY = THB

RATE = p
IMPORTING
LOCAL_AMOUNT = RESULT

EXCEPTIONS

no_rate_found = 1

overflow = 2

no_factors_found = 3

no_spread_found = 4

derived_2_times = 5

OTHERS = 6.

Well,
this ends in error because function doesn't handle rate = 12538.24000 or better it doesn't handle any rate with 10 digits or more!

As we know we have in the World so many rates with E+04, E+05, a.s.o

How can we solve this?

Should I raise it to SAP?

Thank you