Issue in Column Width Optimize in ALV
I am working with ALV custom container and ALV grid.
I have set column optimize indicator in the layout.
When a button is clicked in appln tool bar, a new entry is added in
the internal table and the alv will be refreshed.
But the column optimize is not working properly. Column width is not
optimized as per the newly added row fields.
How can i achieve the column width optimize with the new rows added ?
before refresh_table_display get the frontend layout and set the modified layout
CALL METHOD grid2->get_frontend_layout * IMPORTING * es_layout = <structure of type LVC_S_LAYO > . . CALL METHOD grid2->set_frontend_layout EXPORTING is_layout = <structure of type LVC_S_LAYO > . .
refresh the table display..
hpe it helps..