cancel
Showing results for 
Search instead for 
Did you mean: 

ALV edit_delete_row button event

pekka_pottonen
Participant
0 Kudos

HI,

I have alv table with possibility to choose several lines and I have enabled button "Delete Row" (...set_edit_delete_row_allowed( abap_true )) . Button deletes all selected rows nicely, but how can I collect all deleted rows to be able to also delete them from database (maybe to collect indexes of all selected lines)?

Alv is a view to z table and I would like to remove all chosen lines immediately from z table. One possibility could be to empty the z table and save all entrys in alv once again. In this case I have to be able to recognise when "Delete Row"-button has been clicked to be able to save.

Regards

Pekka

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

Hi

When this button is clicked...check wether the ONDATACHECK method gets triggered..... in that r_param will be there.

check if any deleted records entries are there or not.

pekka_pottonen
Participant
0 Kudos

Hello Lekha,

I implemented event handler for ALV event ON_DATA_CHECK but it will not be prcessed. (atleast my breakpoint does not stop

Is this what you mean?

-Pekka-

Former Member
0 Kudos

Hi,

Then you need to have your button for deletion, then upon selection of the records, get the selected elements...Then delete them from the DB table.

Regards,

Lekha.