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

While sorting one column of ALV report output, Dump is coming.

After i got ALV report output, i was trying to sort(standard functionality) the column. I am getting a dump .

Dump Details:

At a LOOP over an internal table, it is not allowed to be changed.

What happened?

Error in the ABAP Application Program

The current ABAP program "SAPLKKBL" had to be terminated because it has

come across a statement that unfortunately cannot be executed.

Error analysis

At a LOOP over an internal table, the table is not allowed to be changed

in the loop tail as a whole.

SORT, MOVE, REFRESH, CLEAR are, for example, not allowed.

Anyone have any idea regarding this?

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • Posted on Dec 12, 2014 at 12:05 PM

    Hi Swain,

    Can you share the code??

    Regards,

    Srini.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Dec 12, 2014 at 12:06 PM

    Did you call the ALV while in a loop ? That seems to be the message.

    Is that also how you programmed it ?

    Add a comment
    10|10000 characters needed characters exceeded

    • How are you calling the ALV ? Is that inside a loop, any loop ? The program snippet you gave is about building the internal table i_output_cutomer, I guess that is the tbale to be displayed.

      I don't see a call to the alv in there. (which is good anyway)

      Can you share the code of how you are calling the alv ?

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 12:16 PM

    Hii Swamprava,

    you can not modify output table in loop of i_lotd910.

    you can append it.

    Regards

    Gaurav

    Add a comment
    10|10000 characters needed characters exceeded

    • Yes indeed now I see that piece of code:

      MODIFY i_output_customer TRANSPORTING level where level = '1'.

      What are you trying to do there ?

      Anyway this ia at the same time a good example why you should declare internal tables and work area separately as is suggested by SAP for years now and not usee OCCURS 0 anymore.

      With separate declarations the distinction between tables and work areas becomes clear immediately.

  • author's profile photo Former Member
    Former Member
    Posted on Dec 12, 2014 at 01:09 PM

    Hi ,

    Check you internal table filed declaration and field catalog with field properties.

    I hope this will resolve your issue.

    Regards,

    Pranav

    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.