Skip to Content
0
Former Member
Jan 04, 2008 at 04:35 PM

Get selected function in a context menu with cl_gui_alv_grid

206 Views

Hi,

I'm trying to implement a context menu on a alv grid. I defined and implemented a method for the event CONTEXT_MENU_REQUEST to add function codes to context menu. It works ok.

The problem is retrieving the function selected in context menu. I tried to define in the class definition a method for event CONTEXT_MENU_SELECTED (that seems to be the event to use) but i can't implement it because is defined as protected event in CL_GUI_ALV_GRID.

How i can implement a method to catch this event and determine te function code defined in the context menu??

Thanks.

Edited by: Alfredo Pradas on Jan 4, 2008 5:35 PM

Edited by: Alfredo Pradas on Jan 4, 2008 5:36 PM

Edited by: Alfredo Pradas on Jan 4, 2008 5:37 PM