Skip to Content

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

TABLE ILLEGAL STATEMENT error with MODIFY command

Hi gurus,

i want you to inform me about table illegal statement error. The error occurs when i use modify as below.

loop at itab.

select .......

where xxx eq itab-xxxx.

...........

...........

MODIFY itab.

endselect.

endloop.

i know that i have to give the sy-tabix as INDEX parameter to the modify command. but i want to know why i have to do this?

cause when i debug, i follow the sy-tabix field and it have not a change in select endselect.

may the reason of the error about cursor in select and cursor effects modify command?

or why?

Thx,

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