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

Runtime Errors- TABLE_INVALID_INDEX

Former Member
0 Likes
3,285

Hi Team,

There is one std.payroll job scheduled on HR production server.When it is executed,it gave an error TABLE_INVALID_INDEX ( Error in ABAP/4 statement when processing an internal table).

What is this error & how can it be eliminated..

Regards

Amit Singh

4 REPLIES 4
Read only

Former Member
0 Likes
1,170

Hi,

Might be there is a READ statement with index and the value of index is more than the no of rows in the internal table. Try to go to the point in debug mode. If its as standard SAP program search for any OSS note

Read only

Former Member
0 Likes
1,170

Hello Amid,

this can happen e.g. in the READ statement when an index is not set correctly; which means when the index exceeds the number of table lines or when the index is simply set (for what reason ever) to ZERO.

Hope this helps,

Heinz

Read only

Former Member
0 Likes
1,170

This might be the exception triggered.

While using READ or MODIFY statement you can find INDEX sy-index or something like this. And this index does not exists in this Internal table that is why it might throw this exception.

Try debugging and locate it.

Read only

0 Likes
1,170

Hi,

and what in case of occurring this short dump only when the program is triggered in the background? Is there any possibility to use debug in such case (if yes, how? I tried to set breakpoint and activate update debugger before executing program in the background but no success). The program runs in the foreground properly without short dump occurrence...

Your help would be very much appreciated. Thank you

Martin