cancel
Showing results for 
Search instead for 
Did you mean: 

Hot Spot is not working

former_member212705
Active Participant
0 Kudos

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

.

Accepted Solutions (1)

Accepted Solutions (1)

rodrigo_paisante3
Active Contributor
0 Kudos

Hi,

Are you using the article link?

http://www.sdn.sap.com/irj/scn/go/portal/prtroot/docs/library/uuid/500d8720-50f5-2d10-4a93-e675607f1...

Did you create the event handler method too?

Regards.

former_member212705
Active Participant
0 Kudos

hi,

yes i am using this article and i have created event handler method too. why the hot spot is not working. Is there any wrong coding in this article? please tell me.

rodrigo_paisante3
Active Contributor
0 Kudos

Yes Kanpur, to show the text like a link you have to add call method to set cell editor.

At end of article, in the related content section, there are some links, look at this:

best regards.

former_member212705
Active Participant
0 Kudos

hi,

Thanks a lot.. now it is working, can u plz tell me some good book for web dynpro.

Regards,

ashish

rodrigo_paisante3
Active Contributor
0 Kudos

I did SAP official academy...

but you can start to learn looking in wiki section.

regards

Answers (0)