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

editable ALV refreshing problem

Former Member
0 Likes
644

Hello,

I have an editable ALV and i modify my db table with this alv.

when i run the report and see the alv, i can make changes and modify the db table.

But after first change, alv doesnt see the othe changes, I change editable fields and save but when i debug i see no change at my internal table.

i refresh the internal table but after first change and save, this code doesnt work :

CALL METHOD go_grid2->check_changed_data.

Is there a trick that i dont know?

1 ACCEPTED SOLUTION
Read only

Emre_tr
Active Participant
0 Likes
602

the code which i give above is for refresh, for data change try this declaration

SET HANDLER event_receiver->handle_data_changed FOR g_grid.

CALL METHOD g_grid->register_edit_event

EXPORTING

i_event_id = cl_gui_alv_grid=>mc_evt_modified.

when you clicked SAVE button first you must call this method : CALL METHOD g_grid->check_changed_data .

4 REPLIES 4
Read only

Former Member
0 Likes
602

please write in ur alv fieldcatalog,

slis_selfield-refresh = 'X'.

Read only

Former Member
0 Likes
602

i use class alv

Read only

Emre_tr
Active Participant
0 Likes
602

you must use this method CALL METHOD g_grid->refresh_table_display.

Read only

Emre_tr
Active Participant
0 Likes
603

the code which i give above is for refresh, for data change try this declaration

SET HANDLER event_receiver->handle_data_changed FOR g_grid.

CALL METHOD g_grid->register_edit_event

EXPORTING

i_event_id = cl_gui_alv_grid=>mc_evt_modified.

when you clicked SAVE button first you must call this method : CALL METHOD g_grid->check_changed_data .