Skip to Content
Former Member
Aug 01, 2006 at 09:10 PM

Strange Error


Hello Experts,

I am creating the ALV grid using method and class.

I have declare the following fields as

DATA: i_fieldcat TYPE lvc_t_fcat,

wa_fieldcat TYPE lvc_t_fcat.

and below i am filling the structure.

CLEAR i_fieldcat.

CLEAR wa_fieldcat.

wa_fieldcat-fieldname = 'BUKRS'.

wa_fieldcat-inttype = 'C'.

wa_fieldcat-outputlen = 4.

wa_fieldcat-coltext = text-t01.

APPEND wa_fieldcat TO i_fieldcat.

When i am activing the code it is throwing the error

"WA_FIELDCAT is a table without a header line and therefore has no componentcalled FIELDNAME.

I am using the same code in another program and other program is working perfectly all right. I am not able to find why it is throwing such error. Please help me.