Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Delete the selected random rows from Table Control

Former Member
0 Likes
605

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.

4 REPLIES 4
Read only

Former Member
0 Likes
538

Hi Faisal,

Just go through the following link:

Hope this will help.

Regards,

Nitin.

Read only

Former Member
0 Likes
538

refere this standed report

RSDEMO02

Regards

Anbu B

Read only

Former Member
0 Likes
538

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

.

Read only

Former Member
0 Likes
538

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