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 simple edit problem

Former Member
0 Likes
860

Hello all,

I've have in an ALV list an editable column, the proble is that when the cell values are changed the data table remains the same. Is there a method for cl_gui_alv_grid class or another way to update the data table form ALV list.

Lots of thanks

Bogdan

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
838

Hi

You can use the event DATA_CHANGED

Max

5 REPLIES 5
Read only

Former Member
0 Likes
839

Hi

You can use the event DATA_CHANGED

Max

Read only

0 Likes
838

I've try, but this event is not trigger,

I've think that I omit something when creating the ALV

Read only

0 Likes
838

Let us know your code to manage the grid event

Max

Read only

0 Likes
838

I've solved with data_changed event, I've forgot to register event = cl_gui_alv_grid=>mc_evt_modified.

Thank you

Read only

0 Likes
838

first check whether data is changed .if data is changed then get the changed value from the cell and modify the internal table accordingly.

check whether following code works......

call method w_obj_grid1->check_changed_data

importing

e_valid = lw_valid.

if lw_valid = 'X'.

call method pr_data_changed->get_cell_value

exporting i_row_id = row_id

i_fieldname = fieldname

importing e_value = get value here.

loop at t_data into fs_data.

if sy-tabix = row_id.

modify t_data from fs_data.

endif.

endloop.

call method w_obj_grid1->refresh_table_display.