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 a record in report.

Former Member
0 Kudos
303

hai frnds,

i have a situation in which i have to a select record (checkbox) in the displayed report and delete the same. how to do this???

1 ACCEPTED SOLUTION

Former Member
0 Kudos
115

diplay the records in report with checkbox in each records. This is very simple keep some fields called delete flag in itab. while displaying in screen

write that flag as check box

ex:

write del_flg as checkbox.

select the records for deletion & execute the pgm

then using read line u can read the data from the screen.

So read screen date & check whether the del_flg is check.

if it is checked then delete that record using

abap stmt delete

regds

gv

5 REPLIES 5

Former Member
0 Kudos
115

are u using ALV or reports

regards

Former Member
0 Kudos
116

diplay the records in report with checkbox in each records. This is very simple keep some fields called delete flag in itab. while displaying in screen

write that flag as check box

ex:

write del_flg as checkbox.

select the records for deletion & execute the pgm

then using read line u can read the data from the screen.

So read screen date & check whether the del_flg is check.

if it is checked then delete that record using

abap stmt delete

regds

gv

athavanraja
Active Contributor
0 Kudos
115

is it ABAP list?

if yes

for check boxes use the code as mentioned in the thread below.

for deleting using read line find the records selected and delete them from the internal table.

Regards

Raja

Former Member
0 Kudos
115

Hi,

See this thread.

Svetlin

0 Kudos
115

Thanks for ur replies... i will check with the link and will be implementing this. thank all guys.. in case of doubts i'll revert to back.

Ateeq.