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

Conversion Issue: CX_SY_CONVERSION_OVERFLOW

Hi Experts,

We are having problem in one of our program.There is a conversion of data type P(length 11) to Data type I for one of the field(Key figure in SAP-BI).

The data is getting converted correctly when the field value is less than < 2,200,000,000.

But whenever the value of field is more than 2,200,000,000 it is giving

"Runtime Errors BCD_OVERFLOW".

Except. CX_SY_CONVERSION_OVERFLOW.

The reason for the exception is:

In the current arithmetic operation with operands of type P an overflow

has been detected. Possible causes are:

1. The result field of type P is too small to store the result.

2. The result or an intermediate result has more than 31 decimal places.

There is a problem in Converion routine.

Any help on this is hghly appreciated.

Regards,

Ashitosh.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Aug 10, 2009 at 01:05 PM

    Hi,

    It is because the field is too small to hold the value.

    Get a field of a data type which can hold a large value.

    Try using a data element whose domain is DECV23_2.

    Regards,

    Ankur Parab

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2009 at 01:07 PM

    From [Numeric Data Types|http://help.sap.com/abapdocu/en/ABENNUMBER_TYPES.htm]

    The data type of integers, i, has a value range of -2.147.483.648 to +2.147.483.647

    So your field will never be able to contain a value as large as 2,200,000,000

    Regards,

    Raymond

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 10, 2009 at 01:08 PM

    2^31 is what? These are computer basics....

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 10, 2009 at 03:35 PM

    Thanks Raymond for your valuable inputs.

    Pls suggest the data type which will solve this issue.

    There are further calculations with the help of this filed.Which data type will be a better choice for me to go with.This is a BI system.

    Thanks in advance.

    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.