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: 

Grid using oops

Former Member
0 Kudos

Hi All,

'Deselect All' button is on application toolbar.

In the ALV grid when i press 'Deselect All' Button all the checkbox should deselect.

I writen the code like this.

LOOP AT t_final INTO g_wa_final.

g_wa_final-chkbx = ''.

MODIFY t_final FROM g_wa_final .

ENDLOOP.

CALL METHOD alv_list->refresh_table_display.

grid is not refreshing. But i press refresh button on grid then it is deselecting all.

Regards,

vijay

1 ACCEPTED SOLUTION

Former Member
0 Kudos

Hi,

try this:

WHEN 'DALL'. <- deselect-button

*

CALL METHOD GR_ALVGRID->SET_SELECTED_ROWS.

*

CALL METHOD CL_GUI_CFW=>FLUSH.

Regards, Dieter

4 REPLIES 4

Former Member
0 Kudos

if any one is having idea please let me know.

regards,

vijay

Former Member
0 Kudos

Hi,

try this:

WHEN 'DALL'. <- deselect-button

*

CALL METHOD GR_ALVGRID->SET_SELECTED_ROWS.

*

CALL METHOD CL_GUI_CFW=>FLUSH.

Regards, Dieter

Former Member
0 Kudos

Add this code after refresh....


cl_gui_cfw=>flush( ).

0 Kudos

Thanks a lot it is working fine but when i press 'selected all' thereafter i pressed 'Deselect all' it is not working.

But i checked checkbox and deselect it is working fine.

regards,

vijay