Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Remove ALV Tree default Toolbar

Former Member
0 Likes
641

Hi!

is there any way to remove the default toolbar of an ALV tree??

Thanks.

3 REPLIES 3
Read only

Former Member
0 Likes
519

Any ideas?

Read only

former_member194669
Active Contributor
0 Likes
519

Hi,

If you are using CL_GUI then


  call method tree1->set_table_for_first_display
    exporting
      it_list_commentary   = gt_header[]
      is_layout            = gs_layout_tree
      it_toolbar_excluding = gt_exclude "<<<<< Include here all FCODE values
    changing
      it_sort              = gt_sort[]
      it_outtab            = i_ynetitmdes[]
      it_fieldcatalog      = gt_fieldcat[].

or if you are usiing Object Model (CL_SALV_TREE) then


  grt_functions = gr_tree->get_functions( ).
  grt_functions->set_all( abap_false ).

a®

Read only

Former Member
0 Likes
519

I already know how