05-21-2011 1:29 PM
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
05-21-2011 1:48 PM
Hi.,
Check the sample program BCALV_TREE_DEMO in that FORM change_toolbar.
this will help u.,
Thanks & Regards,
Kiran
05-21-2011 1:48 PM
Hi.,
Check the sample program BCALV_TREE_DEMO in that FORM change_toolbar.
this will help u.,
Thanks & Regards,
Kiran
05-21-2011 1:54 PM
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[].