Skip to Content
0
Former Member
May 12, 2010 at 06:10 AM

Link to action in ALV

25 Views

Hi All,

In my ALV there is one field which is displayed as icon.On clicking the icon a popup should be displayed.My Issue is this is an Heirarchial ALV where header and item should be displayed. i want this icon to be displayed only at item level.

I used the below code .But the icon is displayed in both heaer and column.I tried Set Visible property of link_to_action

DATA: lr_column TYPE REF TO cl_salv_wd_column.

lr_column = l_value->if_salv_wd_column_settings~get_column( 'CONNID' ).

DATA: lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action.

CREATE OBJECT lr_link_to_action.

lr_link_to_action->set_text_fieldname( 'DETAIL' ).

lr_link_to_action->set_image_source( 'ICON_DISPLAY' )

lr_column->set_cell_editor( lr_link_to_action ).

Kindly let me know the solution.

Thanks,

Bindu.