Skip to Content

Keyboard Disable Delete in ALV OO

All,

I went through all the posts on this issue but none of the solution worked for me.

I have a Grid with 6 fields.

fields 4,5,6 are check boxes which are set at the cell level using

I dont have delete buttons. When user selects a row and clicks on keyboard 'DEL', the values which are in change mode gets cleared. I dont want the DEL button to work at all.

Any help is highly appreciated.

SPAN {
font-family: "Courier New";
font-size: 10pt;
color: #000000;
background: #FFFFFF;
}
.L0S52 {
color: #0000FF;
}
.L0S55 {
color: #800080;
}
.L0S70 {
color: #808080;
}

   lx_celltab-fieldname =c_active.

    lx_celltab-style     = cl_gui_alv_grid=>mc_style_enabled.

    INSERT lx_celltab INTO TABLE re_celltab.



Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

2 Answers

  • Best Answer
    Feb 27 at 06:35 PM

    Resolved this

    * x_layout-no_rowins = 'X'.
    * CALL METHOD o_grid->set_frontend_layout
    * EXPORTING
    * is_layout = x_layout.

    and then add

    lx_celltab-style = cl_gui_alv_grid=>mc_style_no_delete_row.
    INSERT lx_celltab INTO TABLE re_celltab.

    Add comment
    10|10000 characters needed characters exceeded

    • If this is answered then kindly close the question (see this blog).

      Edit: if possible, could you please also remove all those SPAN things from the post? I'm guessing it's a result of copy-pasting a formatted text.

      Thanks!

  • Is not possible do it without a delete button

    Add comment
    10|10000 characters needed characters exceeded