on 02-17-2011 4:37 PM
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.
Hi,
Place the code instead in wdDoModifyView instead of wdDoInit.
Then it should work.
Hope this helps!
Best Regards,
Srilatha
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Answered question by myself ....
Setting a break point in ACTIVATED coding brings much more fun ....
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.