Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

unable to display ALV Grid .

0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

Check whether the field catalog is build correctly.

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

Regards,

Harish

12 REPLIES 12

Former Member
0 Kudos

Hi,

Check whether the field catalog is build correctly.

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

Regards,

Harish

0 Kudos

yes, they are matching. When i am using the entire ztable structure in grid display instead of calling manual field catalog it is working. But, my report has only 9 out of 40 fields.

0 Kudos

HI,

As you mentioned it is not giving problem pass the structure is passed , so it is problem of fieldcat.

you can do is

when the program gives dump check for which field it is giving dump by checking the variable value might be name as GS_OUT or

Pass the two column in field cat and comment other then run so by this u can identify for which field it is giving problem

Regards,

Madhukar Shetty

0 Kudos

Try creating a new type in the dictionary - strucutre with your required 9 fields. Then create field catalog by the FM LVC_FIELDCATALOG_MERGE with the new type in the STRUCTURE_NAME parameter.

Former Member
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

koolspy_ultimate
Active Contributor
0 Kudos

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.

Former Member
0 Kudos

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

Former Member
0 Kudos

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.

Former Member
0 Kudos

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.

0 Kudos

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.