cancel
Showing results for 
Search instead for 
Did you mean: 

How to hide ALV toolbar?

Former Member
0 Kudos

Hi everyone!

I would like to know how to hide the toolbar of a ALV. The one is shown at the top of the ALV with the standar buttons. I don't want to hide the buttons, I want to hide the toolbar itself.

Thanks a lot.

Accepted Solutions (1)

Accepted Solutions (1)

Former Member
0 Kudos

Hi,

I made it!!...Just after writing this post I found the solution. This is what I did.

Data: lo_value type ref to cl_salv_wd_config_table.

if lo_value is not initial.

CALL METHOD lo_value->IF_SALV_WD_FUNCTION_SETTINGS~SET_VISIBLE

  EXPORTING

    VALUE  = CL_WD_TOOLBAR=>E_VISIBLE-NONE.          "Hide toolbar

endif.

former_member213217
Participant
0 Kudos

Ah that's a cool way of doing it. I was trying to do it by hiding everything in the ALV's toolbar which eventually was resulting in a similar state. But its good to learn of a proper & efficient way

  l_value = l_ref_interfacecontroller->get_model( ).

* set visible row count

  l_value->if_salv_wd_table_settings~set_visible_row_count( '5' ).

  l_value->if_salv_wd_std_functions~set_pdf_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_export_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_edit_append_row_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_edit_check_available( abap_false ).

  l_value->if_salv_wd_std_functions~set_edit_delete_row_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_edit_insert_row_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_filter_complex_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_filter_filterline_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_view_list_allowed( abap_false ).

  l_value->if_salv_wd_std_functions~set_dialog_settings_allowed( abap_false ).

Answers (0)