Application Development 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: 

ALV saving layout -> including current column width

benno_zentriegen
Explorer
0 Kudos

Dear all

first of all - hi everyone - this is my first posting here - looking forward to meet friendly people and conversation!

question: is it possible to save the current width of a column within the alv output?

i'm fully aware of the component

-cwidth_opt = 'X'. " Optimizing with of colums

within the strucutre LVC_S_LAYO

which works great - but this is not exactly what i want....

i want to leave the decision to the user on how the output shall look like and by saving the layout i would appreciate, if the current width of the columns would be saved as well (which does not happen).

any ideas?

thank you in advance and best regards

Benno

1 ACCEPTED SOLUTION

franois_henrotte
Active Contributor

as far as I know, this is not possible

you can fix the column width in your program (in field catalog, set the value in field OUTPUTLEN this is not very precise but you cannot specify it in pixels)

but you cannot save it into a user variant...

2 REPLIES 2

franois_henrotte
Active Contributor

as far as I know, this is not possible

you can fix the column width in your program (in field catalog, set the value in field OUTPUTLEN this is not very precise but you cannot specify it in pixels)

but you cannot save it into a user variant...

Former Member

It is possible if you disable the optimization.

For this, go to change layout -> view -> Column optimization and turn it off