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 width optimize with ALV

Former Member
0 Likes
695

Hi

Can you please help me in optimizing, i.e when we shrink th columns and say save layout the resized columns width should be as it is...

but in my ALV it is saved as after coming to original length.

please & pplease help me

I am using function modules and tried with outputlen but not working for me...

7 REPLIES 7
Read only

venkata_ramisetti
Active Contributor
0 Likes
604

Hi Alekhya,

There is field colwidth_optimize in the structure IS_LAYOUT.

Set this field value to 'X'. (colwidth_optimize = 'X').

Thanks

Ramakrishna

Read only

anversha_s
Active Contributor
Read only

0 Likes
604

Anver,

Thanks for quick response, but not getting the desired output..

please help me...

Read only

0 Likes
604

hi,

pls look at this link.

http://www.sapdevelopment.co.uk/reporting/alv/alvgrid_enhanced.htm

it contains the full code.

kinldy compare ur code with that.

it will help u.

rgds

anver

Read only

0 Likes
604

Anver,

Thanks for quick response, but not getting the desired output..

please help me...

Read only

0 Likes
604

hi,

can u post ur code.

rgds

anver

Read only

Former Member
0 Likes
604

wa_layout-colwidth_optimize = 'X'.

and pass the layout to the FM

this should work