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

Receiving a run time error BCD_OVERFLOW

Former Member
0 Likes
6,751

Hello,

While executing the Zprogram ...I am receiving a run time error.

Got Runtime Error BCD_OVERFLOW

When I analysed the issue in ST22....Type P

Result is larger than one which is defined...

Any suggestion would be appreciated ...

Regards,

Kittu

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
2,700

Hi,

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

possible to do so.

Or

there is another way you can handle this error...

You can give a try using this sample code:

***********************************

Data : l_number_str type string.

Catch system-exceptions convt_no_number = 1

convt_overflow = 2

bcd_field_overflow = 3

bcd_overflow = 4.

l_number = l_number_str.

endcatch

Regards

Lekha

3 REPLIES 3
Read only

Former Member
0 Likes
2,701

Hi,

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

possible to do so.

Or

there is another way you can handle this error...

You can give a try using this sample code:

***********************************

Data : l_number_str type string.

Catch system-exceptions convt_no_number = 1

convt_overflow = 2

bcd_field_overflow = 3

bcd_overflow = 4.

l_number = l_number_str.

endcatch

Regards

Lekha

Read only

Former Member
0 Likes
2,700

Hello,

Thank you for your response!

I had just tried with the same resolution and I think it has solved my issue.

Regards,

Kittu

Read only

BH2408
Active Contributor
0 Likes
2,700

Hi,

what ever u r passing one variable to another variable that length is low .

ex.

data:a(10) type c,

b(5) type c .

a=1000000000.

b=a.

at that time u will get this error.

Regards,

Bharani