Application Development and Automation 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: 
Read only

alv edit error

Former Member
0 Likes
533

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

1 ACCEPTED SOLUTION
Read only

hymavathi_oruganti
Active Contributor
0 Likes
481

no need of this statement g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.

3 REPLIES 3
Read only

Former Member
0 Likes
481

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>

Read only

hymavathi_oruganti
Active Contributor
0 Likes
482

no need of this statement g_wa_fieldcat-ref_table = 'G_IT_DEV_LIST'.

Read only

0 Likes
481

Thank you!!!!!