问题
I'm new to abap and I did not found a solution on the internet, that worked for me.
So. I have a table, that is displayed with alv. I made a custom button in the 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). Here's my code:
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.
来源:https://stackoverflow.com/questions/48667607/abap-alv-delete-selected-row