2012 Jul 25 11:29 AM
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?
2012 Aug 02 11:19 AM
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?
2012 Aug 02 11:19 AM
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |