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

convert_to_local_currency

Hey folks ,

the issue is when i run a report in background the job got cancelled because of the error SG106 which is coming through CONVERT_TO_LOCAL_CURRENCY function module. The error says the translation result

1.000.000.000,00 is too large. in detail it says The result of a conversion between two currencies is an amount which is too large to be stored. but the field length i am using is NETWR which can store upto 100 billion dollars. Can somebody help me what would be the exact problem. Whether i have to change the field length or some change has to be done in the standard FM . Its an urgent issue and any help would be properly rewarded.

Thanks

Larry

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

2 Answers

  • Best Answer
    Posted on Jun 17, 2008 at 06:41 AM

    Iarry,

    have a look at this and make your data same as below decleared as wrbtr not netwr:

    CALL FUNCTION 'CONVERT_TO_LOCAL_CURRENCY'

    EXPORTING DATE = BKPF-WWERT

    FOREIGN_CURRENCY = BKPF-WAERS

    LOCAL_CURRENCY = T001-WAERS

    FOREIGN_AMOUNT = BSEG-WRBTR

    RATE = BKPF-KURSF

    TYPE_OF_RATE = 'M'

    IMPORTING EXCHANGE_RATE = KURS

    LOCAL_AMOUNT = BSEG-DMBTR

    FOREIGN_FACTOR = FAKTOR-F

    LOCAL_FACTOR = FAKTOR-L

    FIXED_RATE = FIXKURS

    EXCEPTIONS NO_RATE_FOUND = 4

    NO_FACTORS_FOUND = 8.

    Amit.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 17, 2008 at 06:35 AM

    Hi Larry,

    Could you please check whether the value which is passed to this FM is correct. There could be a possibility of incorrect value ( incorrect no. of decimal places etc ) being passed to the FM & hence the output is a large value.

    Best regards,

    Prashant

    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.