Hi ABAPers!
I'd like to change the cellstyle of an ALV Grid <u>after</u> the method SET_TABLE_FOR_FIRST_DISPLAY was processed.
Depending on the value entered in one field, I want to change another field in the same row to make it editable or not. I react on the event DATA_CHANGED. Within the routine on this event I call the methods MODIFY_CELL followed by REFRESH_TABLE_DISPLAY, but the style of the appropriate field is not changed.
My coding is like this:
.
.
<i>MyStyleTabWA</i>-style = cl_gui_alv_grid=>mc_style_disabled.
MODIFY TABLE <i>MyStyleTab</i> FROM <i>MyStyleTabWA</i>.
.
.
er_data_changed->modify_cell(
EXPORTING i_row_id = <i>GoodCells</i>-row_id
i_fieldname = 'CELLSTYLE'
i_value = <i>MyStyleTab</i> ).
<i>MyGrid</i>->refresh_table_display( i_soft_refresh = 'X' ).
.
.
The content of my personal cellstyle table seems to be ok. But the cell does never change to a uneditable mode.
Does anybody know what's going wrong?
Regards
Torsten