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: 

hoto delete particular records in alv

Former Member
0 Kudos

i am using likp standard table . I have displayed particular

fields in that table using an internal table it.

and also displayed checkboxes for each row. here i am

displayed a delete button in top of alv .

My request is if i enable the checkboxes and click the

delete button means then the selected rows(Chk box marked)

should not displayed in the next alv page but

the unselected(chk bx not marked) should display in

next alv page.

Plz kindly and immediately send the coding....

2 REPLIES 2

Former Member
0 Kudos

Hi if i select the check box and click the button means

there is nothing displayed in next alv page.

it should display the unselected rows(Chk bx not marked)

plz tell me friend...

0 Kudos

Hi Cranjith,

I prefer to use the selectable layout of the ALV instead of handle with checkboxes. The advantage is, that you can use the method GET_SELECTED_LINES. When dealing with checkboxes you have to find out wich line contains a marked checkbox.

But I think a easy solution for you is to


DELETE gt_outtab
  WHERE checkbox = 'X'.

and than REFRESH_TABLE_DISPLAY. Maybe that you have to call CHECK_CHANGED_DATA before deleting lines.

This is for the ALV based on class cl_gui_alv_grid.

Regards Rudi