on 01-09-2012 9:09 AM
Hi experts,
I am trying to develope an alv program in which VBELN field in header details should have hot spot so that when i click on this it should navigate to another view, but hot spot is not working. I have written a code under Header view->WDDOINIT method.
create used component******************
data: l_ref_cmp_usage type ref to if_wd_component_usage.
l_ref_cmp_usage = wd_this->wd_cpuse_alv( ).
if l_ref_cmp_usage->has_active_component( ) is initial.
l_ref_cmp_usage->create_component( ).
endif.
get model data
data: l_ref_interfacecontroller type ref to iwci_salv_wd_table .
data:
l_value type ref to cl_salv_wd_config_table.
data : l_link type ref to cl_salv_wd_uie_link_to_action.
data : l_setting type ref to cl_salv_wd_column.
pointer to salv interface controller
l_ref_interfacecontroller = wd_this->wd_cpifc_alv( ).
l_value = l_ref_interfacecontroller->get_model(
).
call method l_value->if_salv_wd_column_settings~get_column
exporting
id = 'VBELN'
receiving
value = l_setting
.
create hot spot
create object l_link.
call method l_link->set_text_fieldname
exporting
value = 'VBELN' .
Thanks,
Ashish
.
Hi,
Are you using the article link?
Did you create the event handler method too?
Regards.
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.