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

Problems with making a ALV row not editable.

Former Member
0 Likes
459

Hi

I am having problems with an OO ALV list.

I am using CALL METHOD go_grid->set_table_for_first_display to display the ALV.


The ideea is that i want to make the last row of the alv impossible to delete.

I have tried using this method but it is not working.

DATA:     s_cells TYPE lvc_s_styl.

DATA: begin of gs_alv,

          ........,

           t_cells TYPE lvc_t_styl,

           endof gs_alv,

          gt_alv like table of gs_alv.

              

LOOP AT gt_alv INTO gs_alv WHERE ct = 'z'.
     index = sy-tabix.
     CLEAR s_cells.
     s_cells-style = cl_gui_alv_grid=>mc_style_no_delete_row.
     APPEND s_cells TO gs_alv-t_cells.
     MODIFY gt_alv FROM gs_alv INDEX index transporting t_cells.
   ENDLOOP.

I also need to mention you that the delete button is created by me and it is not the standard one.

Can you please help me?

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
419

Solved it myself.

Solved it myself.

1 REPLY 1
Read only

Former Member
0 Likes
420

Solved it myself.