Skip to Content
0
Former Member
Aug 09, 2016 at 05:24 AM

USER_COMMAND not getting called in interactive alv module pool.

319 Views

Hi,

This is the code regarding user_commnad.

Inside TOP_INCLUDE

class event_class definition.

public section.

methods :

handle_approve for event user_command of cl_gui_alv_grid

importing e_ucomm.

endclass. "lcl_rcvr_class DEFINITION

class event_class implementation.

method handle_approve.

break-point.

"code will be here

endmethod.

endclass.

data : lp_rcvr type ref to event_class.


after alv display


create object lp_rcvr.

set handler lp_rcvr->handle_approve for obj_grid_proj.


though the control is coming to set handler after any PAI event, But it is not calling the method. Please help.

obj_grid_proj is the object of the container.