Skip to Content
0

Disable keyboard delete key in OOPS ALV

Apr 25, 2017 at 06:53 PM

74

avatar image
Former Member

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

10 |10000 characters needed characters left 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.

0
* Please Login or Register to Answer, Follow or Comment.

1 Answer

Best Answer
Sandra Rossi Apr 25, 2017 at 07:26 PM
0

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.

Show 1 Share
10 |10000 characters needed characters left characters exceeded
Former Member

Thank you sandra, Actually i didn't think of this Undo action :)

1