Application Development 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: 

deleting entries from the ztables which r there as radiobutons on sel-scrn

Former Member
0 Kudos

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.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

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.

3 REPLIES 3

Former Member
0 Kudos

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.

Former Member
0 Kudos

Mahesh,

Paste your delete stament code here.

Check this once.

1. DELETE ztable FROM TABLE ITAB.

2.DELETE ztable.

Former Member
0 Kudos

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.