on 01-19-2015 9:32 AM
Hello everyone.
I have a webdynpro program which call a pdf form.
sometimes,some of our users are getting a dump "TABLE_INVALID_INDEX".
The error is on row which try to delete itab on specific index . (delete itab index lv_idx).
When the same pdf is being called from a regular sap program (not webdynpro), it runs OK.
Any ideas what can be the problem?
thanks
Hi ami,
The lv_indx value 0 is the reason for dump.
you put condition before delete statement like below.
if lv_index is not initial.
delete itab index lv_index.
endif.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi Ami,
Either lv_idx has value 0 or the value which is more than the no. of lines in table.
You need to find out how the value lv_idx is getting passed/filled.
Try to check condition before deleting as below
describe itab.
if lv_idx > 0 and lv_idx <= sy-tfill.
delete itab index lv_idx
endif.
Regards,
Rama
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
I think there is no conditional check before deleting records from internal table.If Delete statement is written with index as below,
For eg: DELETE itab INDEX lv_index.
In above example, if the index value SY-TABIX = 0, then the error may occur.So that you may be able to analyze why the index value is Zero.
Thanks
KH
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi ami,
Could you tell me what value you are getting in lv_idx?
What is data type of lv_idx?
Thanks,
Marimuthu.K
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
101 | |
13 | |
13 | |
11 | |
11 | |
7 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.