Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Column optimization while scrolling in ALV table

Former Member
0 Likes
683

Hello,

I have an issue while scrolling in an ALV-table.

In the layout-settings of the ALV the optimizer is switched to 'X'

The ALV is shown in a pop-up screen of 12 rows.

In the first 20 records of the ALV for a specific column the value contains only short descriptions.

So initial the ALV appears with a little column for this field.

After that the descriptions become bigger and bigger, but not always the column width grows by scrolling.

Sometimes the values are show like 'value....' (with some dots behind)

Do you know how the colomn-width is calculated ?

Kind regards.

3 REPLIES 3
Read only

ralf_wenzel_heuristika
Active Participant
0 Likes
617

cl_gui_alv_grid->get_frontend_layout.

cl_gui_alv_grid->set_frontend_layout.

Read only

0 Likes
617

Hi Ralf,

Can you please explain what you mean with these methodcalls ?

regards

Read only

0 Likes
617

the first will give you the current frontend layout settings, with the second you can write the unmodified settings to the ALV, which results in a recalculaction of cell width, I assume. If not, try to use the set method twice - first with column width optimization flag = space and then again with X.