cancel
Showing results for 
Search instead for 
Did you mean: 

Delete the header in dynamic ALV display

Former Member
0 Kudos

Hi Experts,

I am creating a dynamic ALV report in webdynpro. I dont want my header row to be displayed in my report. I want only the data part. I am using the below code to delete my header but no use. Kindly provide ur valuable inputs.

data:  lr_std       TYPE REF TO cl_salv_wd_config_table,

         l_value    TYPE REF TO cl_salv_wd_config_table,

         lo_interfacecontroller TYPE REF TO iwci_salv_wd_table,

  lo_interfacecontroller = wd_this->wd_cpifc_alv( ).

  l_value     = lo_interfacecontroller->get_model( ).

  lr_std ?= l_value.

  lr_std->if_salv_wd_table_settings~delete_header( ).

Thanks

Vivek

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Vivek,

First get the instance of the header using IF_SALV_WD_TABLE_SETTINGS~GET_HEADER

if header is bound.
then delete the header "using delete_header
endif.

If still the problem persists, try using the method
IF_SALV_WD_TABLE_SETTINGS~SET_TOP_OF_LIST_VISIBLE as abap_false

Regards,

Lekha.

Former Member
0 Kudos

Hi Lekha,

Thank you for your reply..

In addition to that i used the below code to delete the header.

data:   cl_hdr         TYPE REF TO cl_salv_wd_column_header.

   LOOP AT lt_columns INTO ls_columns.

  lr_column = ls_columns-r_column.

   CALL METHOD ls_columns-r_column->delete_header
      RECEIVING
        value = cl_hdr.

  

   ENDLOOP.

I can delete the header row now. Can u kindly reply me how we can add the hyperlink in the ALV header.

Thanks,

Vivek

Answers (0)