Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

ALV OO Set cells editable but not deletable

Hello there,

i have again a question regarding ALV, i know how to set cells to editable state and i know how to set a row to not deletable. What i don#t know is how to realize both.

when i pass the arguments like

 lt_celltab-style = cl_gui_alv_grid=>mc_style_no_delete_row.
  
  lt_celltab-style2 = cl_gui_alv_grid=>mc_style_enabled.

rows are not deletable but cells not editable. If i change the code vice versa cells are editable but rows deletable.

I can kick out the delete Button, but DEL is still working, i can't do a

layout-no_rowmark = 'X'.

because the user needs to select single or multiple rows....

any hints, links, solutions

thanks in advance

Mathias

Former Member
Former Member replied

You can try using NO_ROWINS option of Layout.

layout-no_rowins = 'X'.

0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question