I have ALV table and I made a custom button in the table toolbar. Whenever the button is pressed, I want to delete the selected row. Now there's just a message showing up so I could see if the custom button is working.
METHOD on_user_command.
CASE e_salv_function.
WHEN 'MYFUNC1'.
MESSAGE i301(z_global) WITH 'Function 1'.
*Right here the row should be deleted.
WHEN 'MYFUNC2'.
MESSAGE i301(z_global) WITH 'Function 2'.
WHEN OTHERS.
ENDCASE.
ENDMETHOD.