10-08-2007 10:22 AM
i'm using fieldcatalog to rename the column header(name) like this..
CLEAR g_wa_fieldcat.
g_wa_fieldcat-coltext = 'Module'.
g_wa_fieldcat-fieldname = 'MODULETYPE'.
g_wa_fieldcat-style = cl_gui_alv_grid=>mc_style_enabled.
g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.
g_wa_fieldcat-just = 'C'.
g_wa_fieldcat-col_opt = 'X'.
APPEND g_wa_fieldcat TO g_fieldcat.
and after edit the alv
CALL METHOD g_grid->set_table_for_first_display
EXPORTING
i_structure_name = 'ZDEVELOP_LIST'
is_layout = g_layout
CHANGING
it_outtab = g_it_dev_list
it_fieldcatalog = g_fieldcat.
after i renamed the column name..
after edit or add the new column and when i use
CALL METHOD g_grid->check_changed_data.
the errors are occur!!
Selected Logs(Local Time) : 2007.10.09 03:07:
NameOfTheColumn | Message Text
지연 Field G_IT_DEV_LIST-LIGHT is not in the ABAP Dictionary
Module Field G_IT_DEV_LIST-MODULETYPE is not in the ABAP Dictionary
ID Field G_IT_DEV_LIST-ID is not in the ABAP Dictionary
T-CODE Field G_IT_DEV_LIST-T_CODE is not in the ABAP Dictionary
g_it_dev_list has above fieldname. if i don't rename the column name, it doesn's occur!!
plz help me!!!!
Message was edited by:
Seung Chul Yang
10-08-2007 10:39 AM
no need of this statement g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.
10-08-2007 10:32 AM
Hi,
Instead of passing value to <b>ref_table</b> pass the value to <b>tabname.</b>
<b>correct one.</b>
g_wa_fieldcat-coltext = 'Module'.
g_wa_fieldcat-fieldname = 'MODULETYPE'.
g_wa_fieldcat-style = cl_gui_alv_grid=>mc_style_enabled.
*comment below line
*g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.
*Add below line
<b>g_wa_fieldcat-tabnam = 'G_IT_DEV_LIST'.</b>
g_wa_fieldcat-just = 'C'.
g_wa_fieldcat-col_opt = 'X'.
APPEND g_wa_fieldcat TO g_fieldcat.
<b></b>
10-08-2007 10:39 AM
no need of this statement g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.
10-08-2007 12:40 PM