Hi All,
I know how to remove the toolbar completely using ALV OOPS but the requirement was to remove only some unnecessary icons from ALV tool bar.
The unnecessary Icons to remove from ALV tool bar are :
a. Sub Totals.
b. Print.
c. 2nd Icon left to Upload button on attached file.
d. Details Icon.
e. Change Layout.
Among the five I found the four and removed them but I am unable to find the icon 5 (change layout) to remove it. If any know regarding this icon
please tell me.
Below is sample code which I used to remove the above three icons.
ls_toolbar = cl_gui_alv_grid=>mc_fc_print.
APPEND ls_toolbar TO lt_toolbar.
ls_toolbar = cl_gui_alv_grid=>mc_fc_graph.
APPEND ls_toolbar TO lt_toolbar.
ls_toolbar = cl_gui_alv_grid=>mc_fc_detail.
APPEND ls_toolbar TO lt_toolbar.
CALL METHOD l_obj->o_grid->set_table_for_first_display
EXPORTING
is_layout = l_obj->i_layout_line
it_toolbar_excluding = l_obj->lt_toolbar
CHANGING
it_fieldcatalog = l_obj->i_fcat
it_outtab = l_obj->i_final.
Thanks in Advance.
Regards,
Chakradhar.