Application Development and Automation 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: 
Read only

Off delete key on AVL edit GRID

Former Member
0 Likes
679

It is possible to prevent press DELETE key on editable ALV GRID?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
646

Hello,

Try this

DATA ls_exclude TYPE ui_func.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

APPEND ls_exclude TO et_buttons.

4 REPLIES 4
Read only

Former Member
0 Likes
646

Try passing the MC_FC_LOC_DELETE_ROW fcode in the IT_EXCLUDING parameter while displaying the ALV.

Hope this helps.

Thanks,

Balaji

Read only

Former Member
0 Likes
646

I have yet and icon don't show but key work still

Read only

0 Likes
646

Handle the before_user_command method...

In that method change the e_ucomm value to 'ZREF' (a fn code value not handled in USER_COMMAND event)/

Hope this helps.

Thanks

Balaji

Read only

Former Member
0 Likes
647

Hello,

Try this

DATA ls_exclude TYPE ui_func.

ls_exclude = cl_gui_alv_grid=>mc_fc_loc_delete_row.

APPEND ls_exclude TO et_buttons.