‎2006 Aug 01 10:10 PM
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.
Thanks,
amit
‎2006 Aug 01 10:13 PM
‎2006 Aug 01 10:13 PM
‎2006 Aug 01 10:14 PM
‎2006 Aug 01 10:17 PM
‎2006 Aug 01 10:13 PM
DATA: i_fieldcat like lvc_t_fcat occurs 0 with header line,
wa_fieldcat TYPE lvc_t_fcat.
‎2006 Aug 01 10:16 PM
Hi Amit,
Reference ALV GRID program using ABAP OBJECTS,
BCALV_EDIT_01
BCALV_EDIT_02
BCALV_EDIT_03
BCALV_EDIT_04
BCALV_EDIT_05
BCALV_EDIT_06
BCALV_EDIT_07
BCALV_EDIT_08
Regards,
Azaz Ali.