Skip to Content
0
Former Member
Feb 04, 2009 at 01:01 PM

how to disable the column header using CL_SALV_TABLE class

693 Views

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