Show TOC

Displaying Internet AddressesLocate this document in the navigation structure

Use

You are able to manage any number of Internet addresses as hyperlink objects. Each of these hyperlink objects is identified by a unique key. You are able to display any one hyperlink object in any cell. To do this, use the hyperlink column (see Columns with Special Technical Meaning , section Control Columns That Contain Information for Any Number of Columns ). The contents of the hyperlink column then show the affected cell. The affected cell then includes the key for the hyperlink object.

Note

Columns that contain the key for the hyperlink object have data type INT4.

You can also determine that the Internet address that is displayed in the cell has been enabled as a click area. This means, when the user clicks on the Internet address, an Internet browser starts, which takes the user to the specified Internet page. To enable an Internet Address as a Click Area use the cell type.

These are valid for the functions of Internet addresses:

ALV Tool

Display type

Function available

Simple, two-dimensional table

Classic ABAP List

Yes

Fullscreen

Yes

In the Container

Yes

Hierarchical-sequential list

Classic ABAP List

Yes

Tree Structure

Fullscreen

No

In the Container

No

Features

You are able to make the following settings for Internet addresses:

  • Get Hyperlink Objects

  • Create, change and delete hyperlink objects

  • Displaying Internet Addresses

  • Define Internet address as click area (assign cell type)

Get Hyperlink Objects

In every main ALV class in which display of hyperlink objects is possible, there is a method GET_FUNCTIONAL_SETTINGS, which returns, among other things, the hyperlink objects of the ALV output (class CL_SALV_HYPERLINKS). Using this object you obtain the desired hyperlink object with the methods GET or GET_HYPERLINK.

Function

Class

Method

Get hyperlinks

CL_SALV_TABLE

CL_SALV_HIERSEQ_TABLE

GET_FUNCTIONAL_ SETTINGS

Get all hyperlink objects

CL_SALV_FUNCTIONAL_SETTINGS

GET_HYPERLINKS

CL_SALV_HYPERLINKS

GET

Get a specific hyperlink object

CL_SALV_HYPERLINKS

GET_HYPERLINK

Get Internet address

CL_SALV_HYPERLINK

GET_HYPERLINK

Get key

GET_HANDLE

Create, Change and Delete Hyperlink Objects

You are able to create any number of hyperlink objects. A hyperlink object includes two components: the Internet address and a key that you can use later to address the hyperlink object.

You are able to delete hyperlink objects either individually or all at once.

Function

Class

Method

Create hyperlink object

CL_SALV_HYPERLINKS

ADD_HYPERLINK

Delete individual hyperlink object

REMOVE_HYPERLINK

Delete all hyperlink objects

CLEAR

Change hyperlink object (address)

CL_SALV_HYPERLINK

SET_HYPERLINK

Define Internet Address as Click Area

To define the Internet address in a cell as a click area, that is, to display it underlined, use the Cell Type LINK .