I have a dynamic table which I am displaying as an ALV.
call method ref_grid->set_table_for_first_display
is_layout = lwa_layout
it_toolbar_excluding = t_toolbarexclude
it_fieldcatalog = t_fldcat
it_outtab = <t_itab>.
In the table <t_itab>, there is a checkbox, one fixed column and the others dynamic. Along with the normal columns, there is also a table of type lvc_s_styl.
My requirement is that, after my ALV grid is displayed, when I click on the Edit button(toolbar), for the rows where the checkbox is checked, the dynamic columns should become editable.
loop at <t_itab> assigning <wa_itab>.
assign component 'STYLE' of structure <wa_itab> to <fs_table>.
lt_style = <fs_table>.
Here I have made changes to the STYLE table for the necessary fields for the required rows and then called the methods:
call method ref_grid->set_ready_for_input
i_ready_for_input = c_1.
call method ref_grid->refresh_table_display.
But, it does not work.
I have checked the forum and there are a number of posts on this issue. I have followed all the steps which are mentioned there.
Please help! Any suggestions are welcome