Skip to Content
0
Former Member
May 13, 2008 at 09:06 AM

Checking values of a row before deletion from ALV

62 Views

Hi,

I have to implement a function for a ALV list which enables the user to delete rows from the list. The tricky thing is, that I have to check some values of the selected row in order to determine if the user can delete the row or not.

So far I added a new button to the toolbar. When the user presses the button, I check which row is selected. For this I use the method cont_co_alv->get_selected_rows. This method returns the ID of the selected row. Now I should check the values of this row, but I didn't find a way how to access the data. I already tried to loop over the table which I sent to ALV for output. But the table seems to be empty.

Has anybody an idea how this could be solved?

Thanks in advance and regards,

Martin