2008 Nov 10 10:43 AM
Hi, Experts.
I have a table control I add u201Cw/SelColumu201D with the name u201CSEL_ROWSu201D it appears the selection buttons on the left side of the table control using these I can select the single row or multiple rows.
Now the problem is that I want to delete these selected rows from the internal table from these Records are appearing I want to select the records randomly like (1, 4, 6) etc.
please replay if there is some problem while understanding the question.
kind regards,
Faisal.
refere this standed report
RSDEMO02
Regards
Anbu B
2008 Nov 10 10:47 AM
2008 Nov 10 10:47 AM
2008 Nov 10 10:51 AM
hi ..
in internal tanle you take a field as box type c.
you give the name of this field in tab control 's w/SelColum.
now in pai ..
loop at itab.
module modify.
modify itab index tcon-current_line.
endmodule.
endloop.
when 'DELETE'.
loop at itab .
if itab-box = 'X'.
delete itab.
endif.
endloop
.
2008 Nov 10 10:51 AM
In PAI
let ITAB be the table being displayed in Table Control.
To delete selected lines from Table Control
CASE SY-UCOMM.
WHEN 'XYZ'.
DELETE ITAB WHERE SEL_ROW = 'X'.
DESCRIBE TABLE ITAB LINES TC-LINES. " TC IS Table Control
| User | Count |
|---|---|
| 6 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |