on 02-06-2013 6:44 AM
Hi,
I have an ALV table with tool bar contains three buttons ( Ex: Copy, Assign and delete ).
Here the two buttons Copy and Assign buttons, i want to disable when i select multiple rows in ALV table.
Only 'delete' can be done on multiple row selection.
I tried ON_LEAD_SELECT of alv event, but this is only triggering for lead selection change(not for multiple row select, mean if i press CTRL and select other rows, this event is not triggering as the lead selection is not changed).
Even WDMODIFYVIEW and WDDOAFTERACTION are also not triggering for multiple row select.
Suggest if any solution.
Thanks,
Ramakrisna
Hi,
Try using ON_SELECT event instead of on_lead_select. you can set the ON_SELECT event using method IF_SALV_WD_TABLE_SETTINGS~SET_ON_SELECT_ENABLED .
Am not sure whether it works, just give a try. check this help for reference:
http://help.sap.com/saphelp_erp60_sp/helpdata/en/38/c5bacc91a345eda17f2903491c391d/content.htm
Regards,
Kiran
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
Hi,
Which NW version you are on..? I can see set_on_select_enabled method. In properties tab of view create the ALV interface controller usage.
Then, In methods tab, create an evenhandler method and click F4 in the Event column and select ON_SELECT event.
In DOINIT method, set_on_select_enabled to true.
try this code:
DATA lr_salv_wd_table TYPE REF TO iwci_salv_wd_table,
DATA lr_config TYPE REF TO cl_salv_wd_config_table.
lr_salv_wd_table = wd_this->wd_cpifc_compuse_ALV( ).
lr_config = lr_salv_wd_table->get_model( ).
lr_config->if_salv_wd_table_settings~SET_ON_SELECT_ENABLED( abap_true ).
Regards,
Kiran
User | Count |
---|---|
86 | |
10 | |
9 | |
9 | |
9 | |
6 | |
6 | |
5 | |
3 | |
3 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.