Hi
you use this method
methods:
**Evento per l'inserimento del pulsante
handle_button for event toolbar of cl_gui_alv_grid
importing e_object.
************
METHOD handle_button.
PERFORM set_toolbar USING e_object.
ENDMETHOD.
*************
*&---------------------------------------------------------------------*
*& Form DEL_TOOLBAR
*&---------------------------------------------------------------------*
FORM DEL_toolbar USING e_object TYPE REF TO cl_alv_event_toolbar_set.
DATA: ls_toolbar TYPE stb_button,
dref_tool TYPE REF TO stb_button.
LOOP AT e_object->mt_toolbar REFERENCE INTO dref_tool.
IF dref_tool->function = '&CHECK' OR dref_tool->function = '&REFRESH'
OR dref_tool->function = '&&SEP01' OR dref_tool->function = '&LOCAL&CUT'
OR dref_tool->function = '&LOCAL©' OR dref_tool->function = '&LOCAL&PASTE'
OR dref_tool->function = '&LOCAL&UNDO' OR dref_tool->function = '&&SEP02'
OR dref_tool->function = '&LOCAL&APPEND' OR dref_tool->function = '&LOCAL&INSERT_ROW'
OR dref_tool->function = '&LOCAL&DELETE_ROW' OR dref_tool->function = '&LOCAL©_ROW'
OR dref_tool->function = '&&SEP03' OR dref_tool->function = '&&SEP05'
OR dref_tool->function = '&MB_SUM' OR dref_tool->function = '&MB_SUBTOT'
OR dref_tool->function = '&INFO' OR dref_tool->function = '&GRAPH'
OR dref_tool->function = '&MB_VIEW' OR dref_tool->function = '&PRINT_BACK'
OR dref_tool->function = '&COLO'
OR dref_tool->function = '&MB_EXPORT'
OR dref_tool->function = '&DETAIL'.
DELETE e_object->mt_toolbar INDEX sy-tabix.
ENDIF.
ENDLOOP.
ENDFORM. " DEL_TOOLBAR
Regards,
AI