cancel
Showing results for 
Search instead for 
Did you mean: 

Dynpro ALV Horizantal Scrollbar

Former Member
0 Kudos

Hi,

I have an ABAP Webdynpro ALV Grid that contains 20 columns which is difficult to show it all on one screen.

Am using the following code to make the ALV horizontal scrollable, but not able to see the actual scrollbar instead was able to see forward and backward buttons. Could you pls let me know how to get this.

*Get the reference component controller usage the ALV

l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).

IF l_ref_cmp_usage->has_active_component( ) IS INITIAL.

l_ref_cmp_usage->create_component( ).

ENDIF.

l_salv_wd_table = wd_this->wd_cpifc_alv( ).

l_table = l_salv_wd_table->get_model( ).

*Set the table setting editable/scrollable/append/insert functionality

l_table->if_salv_wd_table_settings~set_read_only( abap_false ).

l_table->if_salv_wd_table_settings~set_scrollable_col_count( 8 ).

Regards,

Vind

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Fix the table layout using the following line of code before setting the scrollable col count

table_settings->set_fixed_table_layout( abap_true ).

Regards,

Radhika.

Former Member
0 Kudos

HI,

Use the following methods for horizontal scroll.

*if_salv_wd_table_settings~set_first_visible_scroll_col *

if_salv_wd_table_settings~set_scrollable_col_count

Thanks& Regards,

Naga Prakash

Answers (0)