cancel
Showing results for 
Search instead for 
Did you mean: 

Control ALV Size..Avoid Horizontal scroll

Former Member
0 Kudos

Hi All - I need to control the ALV size in the screen, I have an ALV with 15 columns and I want to avoid the HORIZONTAL Scrolling so I can see all my DATA at once.

I try the method SET_WIDTH but maybe I'm doing something wrong.

Is very helpful if code is provided.

thanks!

Jason PV

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hello,

To fix the table. Use fixed TAble layout,

Then you can fix the width of each column also

Best regards,

Rohit

Former Member
0 Kudos

Rohit - the size of the column are already fixed but the screen still have horizontal scroll available, how I can fix table layout?

I want to have the size of the ALV at the size of the screen with out horizontal scroll.

thanks!

Jason PV

Former Member
0 Kudos

data l_salv_wd_table type ref to iwci_salv_wd_table.

l_salv_wd_table = wd_this->wd_cpifc_alv( ).

data l_table type ref to cl_salv_wd_config_table.

l_table = l_salv_wd_table->get_model( ).

l_table->if_salv_wd_table_settings~set_width( '100%' ).

l_table->if_salv_wd_table_settings~set_scrollable_col_count( 8 ).

l_table->if_salv_wd_table_settings~set_fixed_table_layout( abap_true ).

Former Member
0 Kudos

Rohit - thank you the set_scrollable_col_count actually meet my requirement.

Appreciate your help

Jason P-V

Answers (0)