ABAP - ALV delete selected row

余生长醉 提交于 2019-12-02 19:01:14

问题


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

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!