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

Optimize width in ALV DISPLAY OUTPUT

Former Member
0 Likes
1,249

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

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
Read only

Former Member
0 Likes
1,118

Help me Please.

Thanks,

Subashini

Read only

0 Likes
1,118

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

Read only

0 Likes
1,118

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?

Read only

0 Likes
1,118

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

Regards,

Rich Heilman

Read only

0 Likes
1,118

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

Read only

0 Likes
1,118

SUBASHINI CAN U TRY WITH THE FUNCTION MODULE ALV_OPTIMIZE_OUTPUT

Read only

0 Likes
1,118

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

Regards,

Rich Heilman