Application Development Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 

Disable keyboard delete key in OOPS ALV

rgore
Advisor
Advisor
0 Kudos

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

1 ACCEPTED SOLUTION

Sandra_Rossi
Active Contributor
0 Kudos

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.

3 REPLIES 3

Sandra_Rossi
Active Contributor
0 Kudos

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.

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

Jelena
Active Contributor
0 Kudos

+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.