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

Regarding Horizontal Scroll bar in ALV

Former Member
0 Kudos
2,021

Hi Experts,

I am using FM " Reuse_alv_grid_display" to dsplay the output. But defaultly it is not showing all the output in single view .I have large no of columns to show up.horizontal scroll bar is not set up defaultly.

I would like to use CL_GUI_ALV_GRID->SET_HORIZONTAL_SCROLLBARS method

is this is the right way to do it ? suggest best and simple way to do it.

regards

Vishnu

4 REPLIES 4
Read only

Former Member
0 Kudos
898

Hi Vishnu,

Could you please check the layout options while calling the 'REUSE_ALV_GRID_DISPLAY' ?

I would like to know whether the option 'NO_SCROLLING' is set or not. As per my understanding if it is not set then it would come by default.

Regards,

Selva K.

Read only

Former Member
0 Kudos
898

Hi Vishnu,

Why didn't you use the new ALV object model? you can set optimized column easily. Check this link.[cl_salv_table|http://wiki.sdn.sap.com/wiki/display/Snippets/DISPLAYINGSYMBOLSINALVWITHCLASScl_salv_table] and pay attention to the line lrcolumns->set_optimize( gc_true )._

Thanks,

Duy

Read only

0 Kudos
898

hi,

there was exception raised "raise exception type cx_salv_not_found"

i have used the fallowing code:

cl_salv_table=>factory(

IMPORTING

r_salv_table = gr_table

CHANGING

t_table = INT_FINAL ).

DATA: lr_columns TYPE REF TO cl_salv_columns_table,

lr_column TYPE REF TO cl_salv_column_table.

lr_columns = gr_table->get_columns( ).

lr_columns->set_optimize( gc_true ).

lr_column ?= lr_columns->get_column( 'SYMBOL' ).

lr_column->set_symbol( if_salv_c_bool_sap=>true ).

lr_column->set_long_text( 'SYMBOL' ).

gr_table->display( ).

Please let me know how to proceed

regards

vishnu

Read only

Former Member
0 Kudos
898

answered