Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

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 ?


Former Member
Former Member replied

Hi Giri,

before refresh_table_display get the frontend layout and set the modified layout

 CALL METHOD grid2->get_frontend_layout
*      es_layout =  <structure of type LVC_S_LAYO > .
  CALL METHOD grid2->set_frontend_layout
      is_layout =  <structure of type LVC_S_LAYO > .

refresh the table display..

hpe it helps..



0 View this answer in context
Not what you were looking for? View more on this topic or Ask a question