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

Error - CONVT_OVERFLOW is coming

Former Member
0 Likes
929

Hi,

I have got one issue.In which I am getting dump.

In ST22 , I am getting Error name- CONVT_OVERFLOW and Expection is CX_SY_CONVERSION_OVERFLOW.

Error is coming in one custom program - Z_RIPRMP02 ,this program is for Print Pick List.

In this program Include - RIPRIF01 is used.

In this include one routine SET_PMPL_RECORD is used in which error is coming as show below-

FORM SET_PMPL_RECORD.

LAST_COPY_NR = 0.

SELECT MAX( COPY_NR ) INTO LAST_COPY_NR FROM PMPL

WHERE PM_APPL = PMPL-PM_APPL

AND PRINT_KEY = PMPL-PRINT_KEY

AND PM_PAPER = PMPL-PM_PAPER.

PMPL-COPY_NR = LAST_COPY_NR + 1.

IF PMPL-COPY_NR = 1. " First_one

Error is coming at - PMPL-COPY_NR = LAST_COPY_NR + 1.

Data delcaration for LAST_COPY_NR is as below-

Data: LAST_COPY_NR LIKE PMPL-COPY_NR, " Last copy printed was ?

Please guide me why this dump is coming.

Thanks,

Manisha

2 REPLIES 2
Read only

Former Member
0 Likes
507

Hi Manisha,

When you are doing addition, Then overflow is occuring, As you can see.

PMPL-copy_nr os of INT1 type, Whish has lenght of 3 integers.

for ex.

if last_copy_nr has value '999'.

and you are adding 1 in to it. then it will become '1000' which of lenght 4.

for ex.

PMPL-COPY_NR = LAST_COPY_NR + 1.

so you can not put this value in PMPL-COPY_NR, So to avoid this error declare your variables as of type string. This will resolve the Issue.

Thanks,

Saurabh

Read only

Former Member
0 Likes
507

hi,

declre LAST_COPY_NR type n

as when this variable becomes more than 3 then dump comes as

Data: LAST_COPY_NR LIKE PMPL-COPY_NR lenth is int 3

thanks