on 10-09-2014 12:49 AM
I have a use case where some of my ALV columns are editable and some not.
In that ALV, first non-editable column, on click, should open ME23 tcode and on Enter on 2nd editable column, my custom logic should be called and populate it with new values.
But the sad part is, the event ON_CLICK is only triggered if the method IF_SALV_WD_TABLE_SETTINGS~SET_CELL_ACTION_EVENT_ENABLED is set to FALSE Otherwise, the event ON_CELL_ACTION is triggered. Both don't work together.
So, is there a way around to activate both or address this requirement ?
Thanks
Geeta
Hi Geetha,
You make the first non-editable column as LinkToAction. So that you can get the event triggered ON_ACTION for both first column and other editable column as well.
Make cell action enabled: lr_config->if_salv_wd_table_settings~set_cell_action_event_enabled( abap_true ).
For both columns, same ON_ACTION gets triggered and using column name and value you can execute respective logic to meet your requirement.
Please refer the below snap shot for column details on_action
Hope this helps you.
Regards,
Rama
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.