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

ALV GRID DISPLAY - error when downloading to local button clicked

I am using reuse_alv_grid_display to display alv report..

I am having around 90 fields to display.. some fields are large ..When i click

export-->local file.. dump error occurs..

It saying field symbol has not yet been assigned..

The termination occurred in the ABAP program "SAPLKKBL" in "GEN_FIELD_OUT2"

But When download it with few fields it's not showing error..

How can this be solved..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

7 Answers

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 08:31 AM

    Hi

    Generally a dump like yours occurs if the catalog table is not filled in right way for every field.

    Max

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Aug 12, 2009 at 08:34 AM

    I think you might have misspelled column name in fieldcatelog.

    Just after the shortdump check the values of variables in form gen_field_out2, try to look what is the column name it is trying to resolve.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 08:36 AM

    Hi Riky,

    IF u r not able to download the ALV issue is with the Field catalog, u can view the dump, carefuly where it will show for which filed field catalog was not defined properly probably there would be a number which indicated the column no. of the alv of which field catalog was defined wrong take close review of ur field catalog.

    If u fail to review ur feildcatlog then manually u have to check each and every column entry of feild catalog.

    If Alv displays fine and issue is with download alv i.e export, Problem is always with the Field Catalog.

    Hope this resolves ur issue,

    Regards,

    Akash Rana

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 09:54 AM

    Hi,

    You can check the detailed information about the dump from

    TCode ST22.

    This error can be of field catalog not properly getting generated,

    try giving column numbers not hardcoded in the program but

    getting its incremented dynamically , please check the sample code below:

    data lv_count type i value 0.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'KUNNR'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-outputlen = 10.

    wa_field-ddic_outputlen = 10.

    wa_field-seltext_l = 'CUSTOMER NO'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'NAME2'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 35.

    wa_field-seltext_l = 'CUSTOMER NAME'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'VKORG'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 4.

    wa_field-seltext_l = 'SALES ORG'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'VTWEG'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 5.

    wa_field-seltext_l = 'DISTRIBUTION CHANNEL'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'SPART'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 2.

    wa_field-seltext_l = 'DIVISION'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'KUNN2'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 10.

    wa_field-seltext_l = 'SALES PERSON NO'.

    append wa_field to it_field.

    clear wa_field.

    lv_count = lv_count + 1.

    wa_field-col_pos = lv_count.

    wa_field-fieldname = 'NAME1'.

    wa_field-tabname = 'IT_FINAL'.

    wa_field-ddic_outputlen = 35.

    wa_field-seltext_l = 'SALES PERSON NAME'.

    append wa_field to it_field.

    clear wa_field.

    You can create the field catalog like this for your 90 fields.

    Hope it help,

    Regards

    Mansi

    Edited by: MANSI ASNANI on Aug 12, 2009 11:54 AM

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Aug 12, 2009 at 12:10 PM

    I'm able to see the report output correctly in GRID, so can there be a chance for field catalog bieng wrong.

    When i click the 'Save to local' button it dumps.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Ricky,

      One solution is there. It is simple but bit time consuming.

      Just copy all fields ffrom field catalog somewhere in the notepad file and

      try adding one by one in the catalog.

      Test everytime executing the report and taking download untill unless that dump appears.

      On whichever field it appears, just modify that field catalog accordingly.

      Job seems to be bit useless, but i hope it works for you.

      Regds,

      Anil

  • author's profile photo Former Member
    Former Member
    Posted on Aug 14, 2009 at 08:07 AM

    I tried checking the fieldcatalog, its correctly building up...

    Will there be any limit to the list size (width), In my case the width of 1 line (row) comes to around 2200 .. so will this be a concern.. But i 'm getting the output in the grid correctly. Only when i click 'save to local' it errors out.. dumps..

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member Former Member

      Hi,

      I too encoutered the same problem recently. There might me some wrong reference for the fileds in the field catalogue . Just cross check the reference fields & tables for the Amount and quantity fields in your field catalogue.

  • author's profile photo Former Member
    Former Member
    Posted on Aug 17, 2009 at 10:47 AM

    Hi Ricky,

    I too had faced a similiar issue earlier on. Such a dump error can occur if :-

    1. As mentioned above, if the field catalog is not correctly populated. There could be a mismatch of your data with the ref_fieldname and ref_tabname entries.

    2. Such an error also occurs if u use small case to populate the field catalog... For eg,

    If the field catalog is filled like shown below, this error can occur...

    WA_FIELDCAT-FIELDNAME = 'matnr'. --> Small Case

    WA_FIELDCAT-TABNAME = 'it_finaltab'.

    WA_FIELDCAT-REF_FIELDNAME = 'matnr'.

    WA_FIELDCAT-REF_TABNAME = 'mara'.

    APPEND WA_FIELDCAT TO IT_FIELDCAT.

    CLEAR WA_FIELDCAT.

    Instead try filling your field catalog using upper case only...It worked for me when I had faced the issue..Something like this,

    WA_FIELDCAT-FIELDNAME = 'MATNR'. -->Uppercased

    WA_FIELDCAT-TABNAME = 'IT_FINALTAB'.

    WA_FIELDCAT-REF_FIELDNAME = 'MATNR'.

    WA_FIELDCAT-REF_TABNAME = 'MARA'.

    APPEND WA_FIELDCAT TO IT_FIELDCAT.

    CLEAR WA_FIELDCAT.

    Hope this helps...

    Regards...Jaison

    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.