‎2007 Dec 19 5:15 AM
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
‎2007 Dec 19 5:19 AM
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.
‎2007 Dec 19 5:19 AM
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.
‎2007 Dec 19 5:37 AM
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