Skip to Content
0
Former Member
Feb 17, 2011 at 04:37 PM

On_action_event does not work in ALV

42 Views

Hi at all,

I am trying to create an ALV with one editable column and want to register a method reacting on raising event On_action_event.

The following work I have done:

Method wddoinit:

lr_comp_alv = wd_this->wd_cpuse_alv_position( ).
  IF lr_comp_alv->has_active_component( ) IS INITIAL.
    lr_comp_alv->create_component( ).
  ENDIF.

lr_comp_if_alv = wd_this->wd_cpifc_alv_position( ).
  lr_config = lr_comp_if_alv->get_model( ).

lr_config->IF_SALV_WD_TABLE_SETTINGS~SET_CELL_ACTION_EVENT_ENABLED( abap_true ).

Then I created a method modify_alv as event handler reacting on the event "ON_CELL_ACTION" from the interfacecontroller of my alv component.

The method itself has a dummy coding with an external break point.

When I start the application the ALV is shown with the editable column. I can enter a value or use the search help but the I won't get into the debugger.

What am I doing wrong?

Thanks for any help.