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

Dynamic ALV gives Runtime Error only in Background


This is a Custom Development (Z*), wherein I build the field catalog and output table dynamically and populate the output table using field symbols assignment. It works perfectly all right in foreground. Due to the huge volume of records, there is a demand from client to create the ALV output as a spool in background job. But to a great disappointment, the job gets cancelled and it gives run time error in background. The ST22 looks below. If there are any issue with field catalog or output data table, then it supposed to give error in the foreground as well. But it gives error only in background and I am not sure whether it is because of the dynamically build field catalog and output table. I am not able to figure out the issue and It is driving me crazy as I am struggling for the past 2 days. Please help me with a suitable solution. I use FM: REUSE_ALV_GRID_DISPLAY.

Appreciate all your help in advance.



Date and Time 03/07/2013 16:36:46

Short text

Field symbol has not yet been assigned.

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

You attempted to access an unassigned field symbol (data segment "-1").

This error may occur if

- You address a typed field symbol before it has been set with ASSIGN

- You address a field symbol that pointed to the line of an internal table that was deleted

- You address a field symbol that was previously reset using UNASSIGN or that pointed to a local field that no longer exists

- You address a global function interface, although the respective function module is not active - that is, is not in the list of active calls. The list of active calls can be taken from this short dump.


Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Posted on Mar 08, 2013 at 04:36 AM


    In this type of error,always check consistency check in Alv.

    try to debug ur program.

    Check field catalog,spelling,capital letters present or not.

    Check ALV container ,empty or not.

    At last check sap notes 926446-it may helps.

    check sap help

    Hope it will helps.



    Add a comment
    10|10000 characters needed characters exceeded

    • I had this exact problem. The ALV ran fine in foreground mode but gave the above error in background mode. I ran a consistency check and it showed me the exact spot where the issue was. In my case I typed one of my field names incorrectly when defining fieldcatalog.

      To run inconsistency check, I ran my program in FOREGROUND mode first. When the output showed up on screen I scrolled to the right of my output fields where there was some blank area, held down the SHIFT key on my keyboard and DOUBLE RIGHT-CLICKED (not left click). The consistency check ran and showed me the incorrect field name in my fieldcatalog.

      Untitled.png (14.4 kB)
  • author's profile photo Former Member
    Former Member
    Posted on Mar 08, 2013 at 03:22 AM

    Could you please paste the portion of the code where this error is coming?

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Mar 08, 2013 at 04:36 AM


    Generally, you will get this kind of dump when there is problem with wrong data type assignment and also unassigned field symbols.

    And also you check your GUISTATUS, if you copied the standard application tool bar, you should call it to your custom program.



    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.