‎2008 Jul 24 4:15 PM
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.
‎2008 Jul 24 4:44 PM
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
‎2008 Jul 24 4:18 PM
‎2008 Jul 24 4:21 PM
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 ?
‎2008 Jul 24 4:23 PM
As per I know the fld kunnr in VBPA table is of length 10.... then why r u uning length 12.
Amitava
‎2008 Jul 24 4:27 PM
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 ??
‎2008 Jul 24 4:44 PM
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
‎2008 Jul 24 6:36 PM
‎2008 Jul 24 4:49 PM
hi why dont you use this frm before passing the data for it CONVERSION_EXIT_ALPHA_INPUT