Purpose
You use the field
HREF_HNDL of the field catalog to assign a handle for a hyperlink address to all cells of a column.This section describes how you link the cells of a column with different hyperlink addresses.
Process Flow
data: gt_fieldcat type lvc_t_fcat,
gt_hypetab type lvc_t_hype.
DATA: BEGIN OF GT_OUTTAB OCCURS 0.
INCLUDE STRUCTURE
DATA: HL_FNAME TYPE INT4. "hyperlink handle for field FNAME
DATA: END OF GT_OUTTAB.
For each column of the output table that should have hyperlinks at cell level, you need to define an additional field for the handle. In this example, hyperlinks should appear in one column only.
data: ls_hype type lvc_s_hype.
ls_hype-handle = '1'.
ls_hype-href = 'http://www.sap.com'.
append ls_hype to gt_hypetab.
ls_hype-handle = '2'.
ls_hype-href = 'http://www.mysap.com'.
append ls_hype to gt_hypetab.
Result
All cells of the column to which a handle has been assigned using the additional field, are displayed as hyperlinks. If no entry exists in the hyperlink table for the handle assigned, the cell contents are displayed in the normal way.