on 06-13-2008 8:11 AM
Hi all,
in alv report ,i have to give first column as link to action,and whenever mouse came to that column a hand symbol ie,hot spot has to be appear .
How can i do for that?
Regards,
ravi
Hi
When you make the Column as LinkToAction, then Hot Spot appears automatically
Code to Make
LinkToAction Column in ALV.
DATA: lr_alv_usage TYPE REF TO if_wd_component_usage,
lr_config TYPE REF TO cl_salv_wd_config_table,
lr_col_header TYPE REF TO cl_salv_wd_column_header,
lr_function_wd TYPE REF TO cl_salv_wd_function,
lr_uie_link TYPE REF TO cl_salv_wd_uie_link_to_action,
lr_if_controller TYPE REF TO iwci_salv_wd_table,
lr_function_set TYPE REF TO if_salv_wd_function_settings,
lr_table_settings TYPE REF TO if_salv_wd_table_settings,
lr_column_settings TYPE REF TO if_salv_wd_column_settings.
Instantiate ALV Component
lr_alv_usage = wd_this->wd_cpuse_all_alv( ).
IF lr_alv_usage->has_active_component( ) IS INITIAL.
lr_alv_usage->create_component( ).
ENDIF.
get reference to model
lr_if_controller = wd_this->wd_cpifc_all_alv( ).
lr_config = lr_if_controller->get_model( ).
lr_column_settings ?= lr_config.
lr_column = lr_column_settings->get_column( '<Column Name>' ).
CREATE OBJECT lr_uie_link.
lr_uie_link->set_text_fieldname( '<COlumn Name>' ).
ls_column-r_column->set_cell_editor( lr_uie_link ).
Abhi
Edited by: Abhimanyu Lagishetti on Jun 13, 2008 10:12 AM
Edited by: Abhimanyu Lagishetti on Jun 13, 2008 10:13 AM
Edited by: Abhimanyu Lagishetti on Jun 13, 2008 10:13 AM
Edited by: Abhimanyu Lagishetti on Jun 13, 2008 10:14 AM
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
87 | |
10 | |
10 | |
10 | |
7 | |
6 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.