Skip to Content

Disable keyboard delete key in OOPS ALV

Hello Experts!!

Since i didn't find the correct solution in the forum, Need your help to solve this issue.

Currently i am displaying the ALV with some editable and non-editable fields. I have passed the LAYOUT-NO_ROWINS = 'X' so that no inert/delete button should appear in the toolbar. But when i select any row and press delete button on the keyboard, the editable fields becomes blank, which should not happen. So is there any way to disable this delete action??

Thanks & Regards,

Rakshith Gore

Add comment
10|10000 characters needed characters exceeded

  • +1 to Sandra. This actually seems like the correct system behavior to me. The user first selects the row and then presses Delete - that looks like two very conscious actions to me. I can understand wanting to prevent a one-step accident (e.g. asking for confirmation before exit, which is one button click) but it doesn't seem to be the case.

  • Get RSS Feed

1 Answer

  • Best Answer
    Apr 25, 2017 at 07:26 PM

    I guess the answer is NO. The "delete" key is the classical feature to remove the next character in the current cell, or to clear the currently selected cells (eventually the whole row or column or even the whole grid!) I never saw an option to deactivate this key (even in SAP GUI dynpros). Anyway, if the user presses Delete unwillingly, he could still use Ctrl+Z (undo). You could find workarounds like removing the row selector button. You may use the demo program BCALV_TEST_GRID_EDITABLE to test these possibilities.

    Add comment
    10|10000 characters needed characters exceeded