Skip to Content

how to create a link for icon in alv?

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.

Add comment
10|10000 characters needed characters exceeded

  • Get RSS Feed

1 Answer

  • Mar 30, 2015 at 02:49 AM

    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

    Add comment
    10|10000 characters needed characters exceeded