02-04-2009 1:01 PM
Hi All,
How can i disable the column header in the ALV display
below is my code
I am trying to pass it_header_data table into factory method, my requirement is not to display the column header, it should be suppressed.
TRY.
cl_salv_table=>factory(
EXPORTING
"LIST_DISPLAY = 'X'
r_container = gr_container
container_name = 'HEADER_CONT'
IMPORTING
r_salv_table = gr_table
CHANGING
t_table = it_header_data ). "it_fcat_hdr
CATCH cx_salv_msg. "#EC NO_HANDLER
ENDTRY.
"lv_layout = lo_alv->r_layout.
"gr_functions = gr_table->get_functions( ).
"gr_functions->set_all( abap_true ).
gr_display = gr_table->get_display_settings( ).
gr_display->SET_HORIZONTAL_LINES( ' ' ).
gr_display->SET_VERTICAL_LINES( ' ' ).
gr_display->set_striped_pattern( cl_salv_display_settings=>false ).
gr_table->display( ).
ENDIF.
Thanks,
Prathap
02-09-2009 7:30 AM
02-09-2009 7:31 AM
02-09-2009 7:35 AM
Solved using
lr_columns = lr_table->get_columns( ).
lr_columns->set_headers_visible( abap_false ).
methods.