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

SELECT ALL , DESELECT ALL functionality

Former Member
0 Likes
603

Hi,

I am using AL_LIST_DISPLAY FM to display output. I have added selecta all and deselect all buttons to the application tool bar.

Output contains the checkboxes and if i press selall i need to select all the records and vice versa.

i am handling code in user_command.

case sy-ucomm.

When 'SAL'.

itab-chbox = 'X'.

modify chkbox where chbox = ' '.

sy-lsind = 0.

perform display_data.

endcase.

But select all and deselct all functionality is not still working.

Selecting all checkboxes but when i press back..its going to the previous list,

its not coming to basic list.

Can any one pls help with SAL and DSAL functionality with ALV using functionmodule not by using grid_containers.

Thanks in advance

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
434

You can refresh the ALV in the user_call_back routine. This user_call_back routine is the form where you usually operate the user commands

FORM handle_ucomm USING r_ucomm LIKE sy-ucomm

r_selfld TYPE slis_selfield.

CASE r_ucomm.

WHEN 'SELECT ALL'

modify data internal table .

r_selfld-refresh = 'X'.

endcase.

1 REPLY 1
Read only

Former Member
0 Likes
435

You can refresh the ALV in the user_call_back routine. This user_call_back routine is the form where you usually operate the user commands

FORM handle_ucomm USING r_ucomm LIKE sy-ucomm

r_selfld TYPE slis_selfield.

CASE r_ucomm.

WHEN 'SELECT ALL'

modify data internal table .

r_selfld-refresh = 'X'.

endcase.