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

multiple row selection and delete

Former Member
0 Likes
484

Hi all,

I want to delete multiple rows selected using check box in a TABLE CONTROL.

so i m unable to do that, can anyoen tell me the logic to do that.

Thanks,

satish

3 REPLIES 3
Read only

Former Member
0 Likes
460

hi satish,

please search for demodynpro* this key in se 38 screen.

There are many demo programs provided by sap which will solve ur problem.

Reward points if helpful.

Regards,

Sumanjeet.

Read only

Former Member
0 Likes
460

Hi,

Loop at it_tab.

if fs_tab-c_box eq 'X'.

if sy-ucomm eq 'DELETE'.

delete it_tab with index sy-tabix.

endif.

endif.

endloop.

i hope it will help.

Do reward for Helpful.

Read only

Former Member
0 Likes
460

hi,

check this...

CONTROLS TC1 TYPE TABLEVIEW USING SCREEN 9001.

MODULE DeleteADDRecord INPUT.

if SEL = 'X' AND sy-ucomm = 'DELETE'.

delete it_purchase index tc1-Current_line.

elseif SEL = 'X' AND sy-ucomm = 'ADD'.

it_purchase-itemno = tc1-Current_line + 1.

insert it_purchase index tc1-Current_line.

endif.

ENDMODULE. " DeleteRecord INPUT

Also refer Program...

RSDEMO_TABLE_CONTROL