cancel
Showing results for 
Search instead for 
Did you mean: 

On_action_event does not work in ALV

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi,

Place the code instead in wdDoModifyView instead of wdDoInit.

Then it should work.

Hope this helps!

Best Regards,

Srilatha

Former Member
0 Kudos

Answered question by myself ....

Setting a break point in ACTIVATED coding brings much more fun ....