10-10-2008 3:48 PM
HI,
Can any body say how to write logic for select all' push button while using in table control.
my table control each row contain push button . while click on select all' push button , it should select all rows and while click on 'deselect all' it deselect all row (As like in VA01 or VL01N) .
Regards
10-10-2008 3:51 PM
You have to set 'X' to your row selection field if SelectAll has been pressed and if the Deselect All has pressed, than you have to clear the selection field value in the PAI
CASE SY-UCOMM.
WHEN 'SELALL'.
ITAB-SELECT = 'X'. " seletion field on table control
MODIFY ITAB TRANSPORTING SELECT WHERE SELECT IS INITIAL.
WHEN 'DESALL'.
ITAB-SELECT = SPACE.
MODIFY ITAB TRANSPORTING SELECT WHERE SELECT = 'X'.
ENDCASE.
Regards,
Naimesh Patel
10-23-2008 6:44 AM