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

Exclude sub-function in standar toolbar (ALV grid)

Former Member
0 Likes
852

Hi,

My report is using ALV grid with standard toolbar (Refresh, Sort, Sum, Download to local). I know that we can exclude each function but I like to know if we can exclude some of the sub-function like download to winword under download to local)?

2 REPLIES 2
Read only

RichHeilman
Developer Advocate
Developer Advocate
0 Likes
511

I don't think that you can exclude at that level.

Regards,

Rich Heilman

Read only

0 Likes
511

some degree of control is there. for example try the following code snippet.

when this exclusion is done, it will only show export button with sub menu for "word processing", "XML Export" and Copy url to clipboard.

to remove word processing alone from the submenu, uncomment the line

"APPEND cl_gui_alv_grid=>mc_fc_word_processor TO exl_tab."

from the below code sample and try again, this time you will not see the submeny "word processing"

  APPEND cl_gui_alv_grid=>mc_fc_auf                   TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_average               TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_back_classic          TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_abc              TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_chain            TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_crbatch          TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_crweb            TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_lineitems        TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_master_data      TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_more             TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_report           TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_xint             TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_call_xxl              TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_check TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_col_invisible TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_col_optimize TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_current_variant TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_data_save TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_delete_filter TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_deselect_all TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_detail TO exl_tab.
*  APPEND cl_gui_alv_grid=>mc_fc_excl_all TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_expcrdata TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_expcrdesig TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_expcrtempl TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_expmdb TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_extend TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_f4 TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_filter TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_find TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_fix_columns TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_graph TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_help TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_html TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_info TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_load_variant TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_append_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_copy TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_copy_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_cut TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_delete_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_insert_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_move_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_paste TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_paste_new_row TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_loc_undo TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_maintain_variant TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_maximum TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_minimum TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_pc_file      TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_print        TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_print_back   TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_print_prev   TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_refresh      TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_reprep       TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_save_variant TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_select_all   TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_send         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_separator    TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_sort         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_sort_asc     TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_sort_dsc TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_subtot        TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_sum           TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_to_office     TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_to_rep_tree   TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_unfix_columns TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_views         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_view_crystal  TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_view_excel    TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_fc_view_grid     TO exl_tab.
*  APPEND cl_gui_alv_grid=>mc_fc_word_processor TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_lystyle_drag_drop_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_lystyle_no_delete_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_lystyle_no_insert_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_lystyle_no_insert_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_ly_drag_drop_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_ly_no_delete_rows TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_ly_no_insert_rows TO exl_tab.
*  APPEND cl_gui_alv_grid=>mc_mb_export         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_view           TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_sum            TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_subtot         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_filter         TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_variant        TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_mb_paste          TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style4_link       TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style4_link_no TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_button            TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_disabled          TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_enabled           TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_f4                TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_f4_no             TO exl_tab.
  APPEND cl_gui_alv_grid=>mc_style_no_delete_row     TO exl_tab.

Regards

Raja