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

convt_overflow error..

Former Member
0 Likes
2,015

Hi,

i am getting an overflow error in the following append statement for a vaue such as 0006000000. but i have defined as kunnr(12) . my code looks like this.. it throws dump everytime and that exception/error is not being caught ..

TYPES: BEGIN OF X_ITAB,

KUNNR(12),

END OF X_ITAB.

DATA: WA_ITAB TYPE X_ITAB,

I_TAB TYPE TABLE OF X_TAB.

CATCH SYSTEM-EXCEPTIONS convt_overflow = 1.

COMMIT WORK.

SELECT KUNNR INTO WA_ITAB FROM VBPA WHERE PARVW = 'WE'.

APPEND WA_ITAB TO I_TAB.

ENDSELECT.

ENDCATCH.

IF SY-SUBRC <> 0.

MESSAGE E000(37) WITH 'RUNTIME ERROR'.

EXIT.

ENDIF.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,323

Hi

Use: I_TAB like TABLE OF WA_TAB instead of I_TAB TYPE TABLE OF X_TAB.

Also comment out below code:

IF SY-SUBRC 0.

MESSAGE E000(37) WITH 'RUNTIME ERROR'.

EXIT.

ENDIF

Now check in debug, you internal table is populating.

Now even if you put KUNNR(10), it will work

Regards,

Nisarg

7 REPLIES 7
Read only

Former Member
0 Likes
1,323

make it KUNNR type kunnr,

Read only

0 Likes
1,323

No Amitava, that wont help. if u can see my last forum post, defining it of type KUNNR will give me conversion errors bcos it uses conversion routines. so i was asked to change to KUNNR(10). But bcos of overflow i thouht of changing to KUNNR(12), it did not help. any other suggestions ?

Read only

0 Likes
1,323

As per I know the fld kunnr in VBPA table is of length 10.... then why r u uning length 12.

Amitava

Read only

0 Likes
1,323

yes i know..it was initially KUNNR(10) when i got this error !! so i just tried changing to 12..moving back to 10...still i get the convt_overflow error...ok ??

Read only

Former Member
0 Likes
1,324

Hi

Use: I_TAB like TABLE OF WA_TAB instead of I_TAB TYPE TABLE OF X_TAB.

Also comment out below code:

IF SY-SUBRC 0.

MESSAGE E000(37) WITH 'RUNTIME ERROR'.

EXIT.

ENDIF

Now check in debug, you internal table is populating.

Now even if you put KUNNR(10), it will work

Regards,

Nisarg

Read only

0 Likes
1,323

Yes Nisarg , it worked...thanks

Read only

Former Member
0 Likes
1,323

hi why dont you use this frm before passing the data for it CONVERSION_EXIT_ALPHA_INPUT