Code: Alles auswählen.
* exclude toolbar
DATA: ls_exclude TYPE ui_func,
ct_exclude TYPE ui_functions.
ls_exclude = cl_gui_alv_grid=>mc_fc_excl_all.
APPEND ls_exclude TO ct_exclude.
...
CALL METHOD ref_lara->set_table_for_first_display
EXPORTING
is_variant = ls_variant
i_default = 'X'
i_save = 'U'
is_layout = ls_layout
it_toolbar_excluding = lt_exclude
....
Code: Alles auswählen.
FORM customize_toolbar CHANGING ct_exclude TYPE ui_functions.
DATA: ls_exclude TYPE ui_func.
ls_exclude = cl_gui_alv_grid=>mc_mb_export.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_filter.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_paste.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_subtot.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_sum.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_info.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_mb_view.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_graph.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fc_print.
APPEND ls_exclude TO ct_exclude.
ls_exclude = cl_gui_alv_grid=>mc_fg_edit.
APPEND ls_exclude TO ct_exclude.
ENDFORM. " customize_toolbar
In der SE24->cl_gui_alv_gridJens Rommel hat geschrieben:Danke,
das ist ja echt cool.
Wo kann ich die Bezeichner für die Toolbarelemente nachlesen ?
Jens
Wir sind ja auch nicht jedes ForumJens Rommel hat geschrieben:Nicht in jedem Forum klappt das so gut.
Code: Alles auswählen.
DATA(lt_excl_toolbuttons) = VALUE ui_functions( ( cl_gui_alv_grid=>mc_fc_refresh)
( cl_gui_alv_grid=>mc_fc_graph )
( cl_gui_alv_grid=>mc_fc_check )
( cl_gui_alv_grid=>mc_fc_loc_append_row )
( cl_gui_alv_grid=>mc_fc_loc_copy )
( cl_gui_alv_grid=>mc_fc_loc_copy_row )
( cl_gui_alv_grid=>mc_fc_loc_cut )
( cl_gui_alv_grid=>mc_fc_loc_insert_row )
( cl_gui_alv_grid=>mc_fc_loc_move_row )
( cl_gui_alv_grid=>mc_fc_loc_paste )
( cl_gui_alv_grid=>mc_fc_loc_paste_new_row )
( cl_gui_alv_grid=>mc_fc_loc_undo )
( cl_gui_alv_grid=>mc_fc_info )
( cl_gui_alv_grid=>mc_fc_print )
( cl_gui_alv_grid=>mc_fc_subtot )
( cl_gui_alv_grid=>mc_fc_sum )
( cl_gui_alv_grid=>mc_fc_views )
( cl_gui_alv_grid=>mc_fc_call_abc )
( cl_gui_alv_grid=>mc_fc_filter )
( cl_gui_alv_grid=>mc_fc_html )
( cl_gui_alv_grid=>mc_fc_word_processor )
( cl_gui_alv_grid=>mc_mb_sum )
( cl_gui_alv_grid=>mc_fc_send )
( cl_gui_alv_grid=>mc_fc_pc_file )
( cl_gui_alv_grid=>mc_fc_to_office ) ).
DIE Lösung würde mich interessieren. Der Satz "ich habe es nun anders gelöst" lässt meistens auf etwas schließen, was man so lieber nicht täte.
Folgende Benutzer bedankten sich beim Autor ralf.wenzel für den Beitrag (Insgesamt 2):
Icke0801 • black_adept