Application Development 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: 

ALV handle_data_changed (checkbox)

szymon_glapiak
Explorer
0 Kudos

Hello

I've big problem with checkbox fields. When i check the editable checkbox filed on the alv list is triggered "data_changed" and my handle method for this can change value ( set 'X' or space) by "modify_cell" method of "cl_alv_changed_data_protocol". But on the alv list on the screen i have still the same value as i was when i checked(not the value changed by my methods). The other fileds (dates, numbers etc) work correct. What's I've to do to resolve this problem. Any idea???

Best Regards

Szymon Glapiak

2 REPLIES 2

krishnannarayanan_nampoot
Active Participant
0 Kudos

Hi,

Any data change you make in ITAB or the grid is visible only after you refresh it. After you handle the data changed call for the methodr

refresh_table_display

of the instance to it.

Also since only data is changed, you can additionally pass the

I_SOFT_REFRESH

parameter as 'X' to it to ensure the position is not cursor position is not changed .

Hope this helps.

0 Kudos

It's not necessary to use method refresh_table if i change data in method for event "data_changed". One of parameters of this method is obcject of class CL ALVCHANGED_DATA_PROTOCOL with one can change cell content and as i say before it works correctly for other field ( numering and char)