02-11-2009 4:27 PM
Hi There,
I have added a toolbar for select and deselect all in ALV tree..
I added the code to 'select all' button in the toolbar and is working perfectly fine...
When I use the same code for deselect all, it doesnt work..
Please assist..
02-11-2009 4:55 PM
Hi ,
try this code:
*when 'the name of your deselect button'.
WHEN 'DESELECT'.
*change the corresponding itab.
LOOP AT it_ltak INTO wa_ltak.
CLEAR wa_ltak-sel.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
rs_selfield-refresh = 'X'.
02-11-2009 4:48 PM
Hi Arif,
Check the function code for 'deselect all'. then it should for you.I think it is '&SAL' for select &ALL.
please let me know if you have any further issue
Thanks
02-11-2009 4:50 PM
Hi
For deselecting all the change in your existing select all code would be
If checkbox eq 'X'
checkbox = ' ' .
modify line
endif.
Thanks
Viquar Iqbal
02-11-2009 4:55 PM
Hi ,
try this code:
*when 'the name of your deselect button'.
WHEN 'DESELECT'.
*change the corresponding itab.
LOOP AT it_ltak INTO wa_ltak.
CLEAR wa_ltak-sel.
MODIFY it_ltak FROM wa_ltak TRANSPORTING sel.
ENDLOOP.
rs_selfield-refresh = 'X'.
02-12-2009 3:09 PM
no help..
Tried with checkbox-chosen = ' '. but internally in the method called the data for checkbox is saved so the deselect all does not work..
Is there a particular method to be used for deselect all please let me know..
03-12-2009 7:17 AM
set checked flag
lds_item_layout-chosen = ''.
lds_item_layout-u_chosen = 'X'.
it works for deselect all.
i have tested it in my project