When i try to update an internal table i get the dump TABLE_ILLEGAL_STATEMENT.
My code is as below:
read table l_fieldcat with key fieldname = 'CCARD1' into wa_fieldcat.
wa_fieldcat-seltext_M = 'Credit Card 1'.
wa_fieldcat-seltext_l = 'Credit Card 1'.
wa_fieldcat-seltext_s = 'Credit Card 1'.
Modify l_fieldcat from wa_fieldcat.
do you think i should add the clause sy-index to it ?