Application Development 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: 

Edit Toolbar in ALV Tree

Former Member
0 Kudos

Hi Experts,

I am using CL_GUI_ALV_TREE to display tree report., How to Edit the toolbar in CL_GUI_ALV_TREE. I modified mt_toolbar internal table. But no Change in Tool bar.

Please guide me how to modify toolbar in ALV Tree.

Thanks,

Regards,

Priya

1 ACCEPTED SOLUTION

former_member184578
Active Contributor

Hi.,

Check the sample program BCALV_TREE_DEMO in that FORM change_toolbar.

this will help u.,

Thanks & Regards,

Kiran

2 REPLIES 2

former_member184578
Active Contributor

Hi.,

Check the sample program BCALV_TREE_DEMO in that FORM change_toolbar.

this will help u.,

Thanks & Regards,

Kiran

huseyindereli
Active Contributor
0 Kudos

Hi,

To exclude functions from toolbar , fill toolbar table as below.

*** EXCLUDE FUNCTIONS FROM TOOLBAR
  APPEND :
*           cl_gui_alv_tree=>mc_fc_print_back      TO gt_toolbar ,
*           cl_gui_alv_tree=>mc_fc_save_variant    TO gt_toolbar ,
*           cl_gui_alv_tree=>mc_fc_current_variant TO gt_toolbar ,
*           cl_gui_alv_tree=>mc_fc_load_variant    TO gt_toolbar ,
            cl_gui_alv_tree=>mc_fc_calculate       TO gt_toolbar .


  CALL METHOD go_tree->set_table_for_first_display
    EXPORTING
      is_hierarchy_header  = gs_tree
      it_toolbar_excluding = gt_toolbar[]
    CHANGING
      it_outtab            = gt_table[]
      it_fieldcatalog      = gt_fcat[].