Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Short Dump

Former Member
0 Likes
1,378

Hi All,

I have declared a variable as BSID-DMBTR.

I stucked up with this below short dump message,

<b>An overflow has been determined in the current arithmetical operation

containing operands of type P. Possible causes include:

1. The results field of type P is to small and the result does not fit

into it.

places.

2. The result or partial result has more than 31 decimal places.</b>

I havent declared any P type variable.

What's this 31 decimal places stands for?

Kindly help to rectify this issue..

Points Assured.

Regards,

Suresh

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,203

Hi,

DBMTR is of 13 curr and 2 decimals

check other fields which you are passing to it

it may be of more length

Regards

Shiva

7 REPLIES 7
Read only

varma_narayana
Active Contributor
0 Likes
1,203

hI..

BSID-DMBTR is a CURR ( TYPE p) Field with 2 Decimal places)

Whenever there is overflow in Arithmetic Operations you will get this error.

And Type P field will support max of 31 Decimal places.

So Debug your code to fix this problem and Declare your Variable accordingly..

reward if Helpful.

Read only

Former Member
0 Likes
1,204

Hi,

DBMTR is of 13 curr and 2 decimals

check other fields which you are passing to it

it may be of more length

Regards

Shiva

Read only

Former Member
0 Likes
1,203

hi,

DMBTR is of type currency, it has 2 decimal places.

try putting a break point before the transfer of value to your variable,

it could give you some clues..

regards

Read only

Former Member
0 Likes
1,203

Hi,

You may need to define the result field to be larger, if it is still

possible to do so.

It may be possible to split the current process so that only smaller

values occur.

Regards

Sudheer

Read only

Former Member
0 Likes
1,203

Hi Suresh ,

In this case move the value first to a char field of type c lenght 50 . so this will accomodate ur big value . then finaly move the big value to ur final field in which u want to fetch it i.e BSID-DMBTR . so in this case it wont give a dump

Thanks

Rohit

Reward if helpful ..

Read only

Former Member
0 Likes
1,203

BSID-DMBTR is 13 + 2 decimal places in total (15 + 1 =16). Counter or amount field with decimal point, sign and comma for thousands we use DEC field . A DEC field may have a maximum of 31 places. Since the number of data's are large the addition of all these is more than the field can take. You can convert this into character format and do the addition and see what happens.

Mallick

Read only

Former Member
0 Likes
1,203

Thanks to all.

Points rewarded.

Regards,

Suresh