cancel
Showing results for 
Search instead for 
Did you mean: 

how to create a link for icon in alv?

former_member223219
Participant
0 Kudos

hi,

how to create a link for icon? if you click an icon then only it should navigate to other view? I would like to check whether the icon is click or not?

anyone know the answer pls let me know....

For your info: Icon not image.

Accepted Solutions (0)

Answers (1)

Answers (1)

ramakrishnappa
Active Contributor
0 Kudos

Hi Kalpana,

To meet your requirement, you need to use the link to action ui element as alv cell editor.

Refer the below link

How to implement Link to action in ABAP webdynpro ALV - ABAP Development - SCN Wiki

Steps:

  • Create a cell editor linkToAction using class CL_SALV_WD_UIE_LINK_TO_ACTION
  • Set the ICON using method lr_link->SET_IMAGE_SOURCE( ), here you can pass the icon name
  • Onclick, you would get the line number and the column data. Now use this data as per your requirement i.e. to navigate to respective view

In the above link, it is clearly explained and hope this helps you.

Regards,

Rama