2010 Aug 30 8:51 AM
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
2010 Aug 30 12:23 PM
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.
2010 Aug 30 4:58 PM
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
2010 Aug 31 10:28 AM
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
2010 Sep 11 7:39 AM