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

unable to display ALV Grid .

Hi !

I have a ztable called 'ZBILL_MASTER'. Fields in it have SAP defined as well as user-defined datalements. Acc. to my requirement i have to get a report and display a few fields of that table in an editable list dsplay. I am getting data into a itab. I am using manual field catalog to display. but, when the grid display i s being called system giving shortdump saying that __" Field symbol has not yet been assigned. "__ while debugging i am able to view data coming into itab. It is giving fieldcatalog related shortdumps. I am struggling with this for a long time. FM parameters are also given properly . Please, help me in this issue.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

8 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on May 09, 2011 at 12:16 PM

    Hi,

    Check whether the field catalog is build correctly.

    The name of the internal table field mentioned in the field catalog.

    Regards,

    Harish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 07:02 AM

    Hi Srini,

    This is surely a problem with building the field-catalogue. I had the same issue recently. Please check the field catalog field by field and how you have built. There should be some statement which you are assigning without assigning a field name,

    Check it carefully and this is the only solution for your issue.

    Thanks,

    GC.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 07:10 AM

    Hi

    AFIELD-FIELDNAME = 'CARRID'. Enter the field name u defined in internal table itab.

    AFIELD-TABNAME = 'SCARR'. Enter the internal table name here

    for example

    itab contains: a and b two fields, we need to build field catalog like this

    AFIELD-FIELDNAME = 'A'. Enter the field name u defined in internal table itab.

    AFIELD-TABNAME = 'ITAB'. Enter the internal table name here

    AFIELD-FIELDNAME = 'B'. Enter the field name u defined in internal table itab.

    AFIELD-TABNAME = 'ITAB'. Enter the internal table name here

    Regards

    Dande

    Edited by: Dande on May 10, 2011 9:22 AM

    Please check the update one

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 07:24 AM

    hi,

    try this for fieldcatalog

    DATA: li_fieldcatt TYPE lvc_t_fcat,

    ls_fieldcat TYPE lvc_s_fcat.

    "Fields you want to display

    CLEAR ls_fieldcat.

    ls_fieldcat-fieldname = 'FIELDNAME_A'.

    ls_fieldcat-coltext = 'A'.

    ls_fieldcat-outputlen = 14.

    APPEND ls_fieldcat TO li_fieldcat.

    " Fields you don't want to display

    CLEAR ls_fieldcat.

    ls_fieldcat-fieldname = 'FIELDNAME_B'.

    ls_fieldcat-no_out = 'X'.

    APPEND ls_fieldcat TO li_fieldcat.

    CALL METHOD go_grid->set_table_for_first_display

    CHANGING

    it_outtab = gi_itab

    it_fieldcatalog = li_fieldcat.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 10, 2011 at 07:26 AM

    see the structure of your program..

    i.e

    the fields you bring into internal table must be as equal as the fileds in select statement..

    if not just paste your code here so that you can have exact response to your question.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 08:34 AM

    Hii..

    Check once again the fieldcatalog.. this problem arises because of fieldcatalog or layout.. check this one more time.. whether the internal table and fieldcatalog are having same number of fields or not.. Because sometimes it happens.. So, please do counting..

    or.. send the code..

    Thanks,

    Jhings

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 09:34 AM

    Hi :

    This is mainly due to the mismatch of the fields in the field catelog.Check whether the fields in the internal table and the fieldcatelog are same and have the same order.

    Thank You.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 10, 2011 at 10:12 AM

    Hi,

    As per your query, you may did define field symbol and passing values to that field symbol. so you can check at that assigning values part. you will get some clue for solution.

    If you are assigning values to field symbols then u just comment use normal variables or internal table . Definitely it will work fine.

    Ram.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Thank you friends for your suggestions. Now i am able to display that editable ALV. I am able to edit and save into my ztable. now, the issue is in editable cells I am able to enter through keyboard, but I want data for particular field from standard tables i.e. I am not getting dropdown as we get in normal ALV display. if this is solved my entire issue is solved.

      Once again i thank for your contribution.

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.