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: 

Optimize width in ALV DISPLAY OUTPUT

Former Member
0 Kudos

Hi,

I need to Optimize width without pressing F9 or Optimize width button in ALV list . Whenever list display i need display in Optimize width format. How can i acheive this?

Help me Pleaseeeeee

7 REPLIES 7

Former Member
0 Kudos

Help me Please.

Thanks,

Subashini

0 Kudos

Are you using the OO ALV grid. If so, it appears that the methods that could help us are protected and hence not callable from your program.

OPTIMIZE_ALL_COLS
OPTIMIZE_COL
OPTIMIZE_COL_ID
OPTIMIZE_SELECTED_COLS

If you optimize width and then save your layout, then save your layout variant as default, will it then optimize the width automatically? Give it a try.

Regards,

Rich Heilman

0 Kudos

It's Multilevel seguential list displaying in VA01 trasaction for More than one Ship-to-party Addressesare available. I need to Do Optimize the width in this Display before pressing Any further Button for Optimize.

How can i do this?

0 Kudos

I really don't think you can achieve this. Like I said, the methods are protected.

Regards,

Rich Heilman

0 Kudos

set the following field in the is_layout parameter, eg t_layout-colwidth_optimize = 'X'.

0 Kudos

SUBASHINI CAN U TRY WITH THE FUNCTION MODULE ALV_OPTIMIZE_OUTPUT

0 Kudos

Good one, Neil. I neglected to check the layout parameter.

Regards,

Rich Heilman