Code: Alles auswählen.
DATA:
t_exclude_tree TYPE ui_functions,
wa_exclude_tree TYPE ui_func.
wa_exclude_tree = cl_gui_alv_grid=>mc_mb_sum.
APPEND wa_exclude_tree TO t_exclude_tree.
"Button zu Tree-Toolbar hinzufügen
CALL METHOD tree->get_toolbar_object
IMPORTING
er_toolbar = t_toolbar.
DATA: w_quickinfo(30).
w_quickinfo = text-011.
CALL METHOD t_toolbar->add_button
EXPORTING
fcode = 'KKOM'
icon = '@3A@'
butn_type = cntb_btype_button
text = ''
quickinfo = w_quickinfo.
" Leeres Tree-Control erstellen
CALL METHOD tree->set_table_for_first_display
EXPORTING
is_hierarchy_header = w_hierarchy_header
i_save = 'A'
is_variant = wa_variant
it_toolbar_excluding = t_exclude_tree
CHANGING
it_outtab = t_tree_data
it_fieldcatalog = t_fcat.
Folgende Benutzer bedankten sich beim Autor a-dead-trousers für den Beitrag:
Bugfix13
Code: Alles auswählen.
wa_exclude_tree = cl_gui_alv_tree=>mc_fc_calculate.
APPEND wa_exclude_tree TO t_exclude_tree.