menu_button 

Use

In this event, you query function codes for menus that you have defined in the toolbar event. For each function code, you define a menu in the same way as for the standard context menu of the ALV Grid Control.

See also: Defining a Menu in the Toolbar

The event is triggered each time a user clicks a menu button in the toolbar.

Event parameter

Meaning

E_OBJECT
TYPE REF TO CL_CTMENU

Reference to the menu of the toolbar that the user has chosen. You use methods of this object to build this menu.

E_UCOMM
Type SY-UCOMM

Function code of a menu that you have defined in the toolbar event. You use this parameter to distinguish between the menus defined in the toolbar.

 

For an overview, see: Events of Class CL_GUI_ALV_GRID