Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

Runtime Error >> ABAP/4 processor: TABLE_ILLEGAL_STATEMENT

Dear all,

I had modify a sorting form of the program, then when I run the background job it had been cancelled by the SAP system and come out with this TABLE_ILLEGAL_STATEMENT run time error.

The Error Analysis:

You attempted to change, delete or create a line in the internal table "ITAB_PRT", but no valid cursor exists for the table.

Possible reason:

1. The relevant ABAP/4 statement doest not include the addition "... INDEX...", although the statement is not inside a "LOOP...ENDLOOP" loop processing this table.

2. The relevant ABAP/4 statement was called from within a "LOOP...ENDLOOP" loop after a DELETE "ITAB_PRT".

I had no idea how to correct this runtime error, anyone can help?

Thanks alot!

Best Regards,


Helpful Answer

Not what you were looking for? View more on this topic or Ask a question