Skip to Content
author's profile photo Former Member
Former Member

dump when trying to update the itab " TABLE_ILLEGAL_STATEMENT"

Hi all,

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 ?

thanks,

Gols

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 09:59 AM

    HI,

    Using SY-INDEX will be good in above Modify statement.

    Please tell exactly at which line this error come??

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Sep 07, 2009 at 10:03 AM

    As per my understanding

    seltext_M will be of 10 character and you are assigning more characters to it , hence dump is coming .

    Hope it resolves your issue .

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Sep 07, 2009 at 10:03 AM

    Hi,

    If 'modify' statement is not in the loop, then use 'modify table' and

    read table l_fieldcat into wa_fieldcat with key fieldname = 'CCARD1'.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.