05-06-2009 1:06 AM
Hi,
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 ?
Thanks,
05-06-2009 6:34 AM
Hi Giri,
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..
Regards,
Mdi.Deeba
05-06-2009 6:18 AM
05-06-2009 6:34 AM
Hi Giri,
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..
Regards,
Mdi.Deeba