06-07-2008 8:40 AM
i am using likp standard table . I have displayed particular
fields in that table using an internal table it.
and also displayed checkboxes for each row. here i am
displayed a delete button in top of alv .
My request is if i enable the checkboxes and click the
delete button means then the selected rows(Chk box marked)
should not displayed in the next alv page but
the unselected(chk bx not marked) should display in
next alv page.
Plz kindly and immediately send the coding....
06-07-2008 8:43 AM
Hi if i select the check box and click the button means
there is nothing displayed in next alv page.
it should display the unselected rows(Chk bx not marked)
plz tell me friend...
06-07-2008 9:40 AM
Hi Cranjith,
I prefer to use the selectable layout of the ALV instead of handle with checkboxes. The advantage is, that you can use the method GET_SELECTED_LINES. When dealing with checkboxes you have to find out wich line contains a marked checkbox.
But I think a easy solution for you is to
DELETE gt_outtab
WHERE checkbox = 'X'.
and than REFRESH_TABLE_DISPLAY. Maybe that you have to call CHECK_CHANGED_DATA before deleting lines.
This is for the ALV based on class cl_gui_alv_grid.
Regards Rudi