Deletion of total(summation) button in the ALV oops
I need to remove the Total button in the ALV. For that I'm using the following logic, which is not working. The same logic is working for other buttons.
DATA: l_hide TYPE ui_functions,
l_hide1 TYPE ui_func.
l_hide1 = cl_gui_alv_grid=>mc_fc_sum.
APPEND l_hide1 TO l_hide.
CALL METHOD g_grid->set_table_for_first_display
is_layout = l_it_layout
it_toolbar_excluding = l_hide
it_outtab = cr_it_outtab
it_fieldcatalog = cr_it_fieldcat
Any pointers on this would be of great help.
Thanks in advance,