U can retreive the set of rows as in my above post.
There u will have index no.
use these indexes to read internal table as :
loop at selectedindex into wa_selected.
READ TABLE INTO WA INDEX i.
if wa ...."some condition
delete selectedindex from wa_selected.
This will clear the unwanted rows based on if condition.
Hope it'll help.
Thanks & Regards,
<i>so if i select more then one row and if i click on one Button then selected rows should be disabled.</i>
by disabled do you mean disabling of editing of the row (you didnt tell us whether its editable table or not - i am just assuming)
or do you mean that the rows selected should be disabled so that the user cannot deselect it (after click of the button)