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: 

How to disable delete keyboard when using REUSE_ALV_GRID_DISPLAY

Former Member
0 Kudos

Hi,

I have created my own 'delete button' in the toolbar in ALV GRID.

All thing is all right when the user use this button.

But user can select a row and push directly on the 'delete' key on keyboard.

In this way, the selected rows are deleted without passing in my own delete form.

Does any body know how to disable this with REUSE_ALV_GRID_DISPLAY function ?

Thanks in advance.

4 REPLIES 4

naimesh_patel
Active Contributor
0 Kudos

You can set the layout option NO_ROWINS.

Check out my response in the post:

Regards,

Naimesh Patel

Former Member
0 Kudos

Hi,

thanks, this is ok for grid control.

But i have a lot of programs that use REUS_ALV_GRID,

and in the layout there is no no_rowins.

0 Kudos

Hi,

the solution is use REUSE_ALV_GRID_DISPLAY_LVC instead of REUSE_ALV_GRID_DIS and move 'X' to IS_LAYOUT_LVC-NO_ROWINS.

Former Member
0 Kudos

use REUSE_ALV_GRID_DISPLAY_LVC instead of REUSE_ALV_GRID_DISPLAY