02-13-2008 7:03 AM
hi guys,
i have a selection screen with 30 radiobuttons which contains all ztables.by clicking on particular radiobutton(ztable) it will take me to the next screen which contains the field names related to the clicked table.also in this screen i have pushbuttons like update,audit trial,check and delete on application toolbar.after entering the values for fields by clicking the particular pushbutton it shoud do the required process.of cource update,check and audit trial are working.but by clicking delete pushbutton it is not deleting the records from the ztable.this is the issue.
if any suggestions on this plz give immediately.very urgent.
if the problem is solve,reward points.
02-13-2008 7:08 AM
Use delete statement.
delete ztable where
it delete the records which satisfy the where condition.
Eventhen if it is not deleting the try using commit work after delete statement.
OR
read the record from the database table
select single * from ztable status where .
if sy-subrc = 0.
delete ztable.
endif.
02-13-2008 7:08 AM
Use delete statement.
delete ztable where
it delete the records which satisfy the where condition.
Eventhen if it is not deleting the try using commit work after delete statement.
OR
read the record from the database table
select single * from ztable status where .
if sy-subrc = 0.
delete ztable.
endif.
02-13-2008 7:10 AM
Mahesh,
Paste your delete stament code here.
Check this once.
1. DELETE ztable FROM TABLE ITAB.
2.DELETE ztable.
02-13-2008 7:54 AM
Hi,
As you are using selection screen, you have to use the event AT USER-COMMAND under which you have to have statements like
CASE.
WHEN 'RD1'. "for radio button 1 being clicked
delete ztable from itab.
...
ENDCASE.
Reward if Helpful.