cancel
Showing results for 
Search instead for 
Did you mean: 

Link to action in ALV

Former Member
0 Kudos

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.

Accepted Solutions (0)

Answers (2)

Answers (2)

ChrisPaine
Active Contributor
0 Kudos

Hello,

have you tried explicitly assigning a header and text to the column?

data: lr_header type ref to CL_SALV_WD_COLUMN_HEADER.

lr_header = lr_column->create_header( ).

lr_header->set_text( 'my header text' ).

Former Member
0 Kudos

Hi Bindu,

Have a look on this [Wiki Document|http://wiki.sdn.sap.com/wiki/display/Snippets/WebDynproABAP-UsingUIelementsinALVcomponentcells].

Hope it will help you to get the desired requirement.