cancel
Showing results for 
Search instead for 
Did you mean: 

How to provide hyperlink in alv

Former Member
0 Kudos

Hi,

how to provide hyperlink only for one column in alv in webdynpro abap

Thanks and regards,

Sridevi.D

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos
DATA:
    lr_column_settings TYPE REF TO if_salv_wd_column_settings,
    lr_link_to_action TYPE REF TO cl_salv_wd_uie_link_to_action,
    lr_col type ref to cl_salv_wd_column.

  lr_column_settings ?= wd_this->alv_config_table.
  lr_col = lr_column_settings->get_column( 'MATNR' ).

  CREATE OBJECT lr_link_to_action.

  lr_link_to_action1->SET_TEXT_FIELDNAME('MATNR').

  lr_col->set_cell_editor( lr_link_to_action ).

The variable alv_config_table is defined in the attribute tab of the view which is reference to the class CL_SALV_WD_CONFIG_TABLE

Use this code in the init method of the View.

Reward points if helpful.

Thanks in advance.

raja_thangamani
Active Contributor
0 Kudos

Look at below links, this will solve the issue:

Search the forum for more link.

Raja T