
Special Aspects for Menus with a Default Button
For a menu with a default button, the ALV Grid Control triggers the following events:
menu_button is triggered.
user_command is triggered.
For both events, the system passes the function code that you assigned in the
function field. So if you want to assign a menu function to the default button, the function code for the menu must be identical to that of the menu function. In the MENU_BUTTON event, you then build the menu, while in the USER_COMMAND event, you can directly query the function code for the default function.
See also report