Show TOC Entering content frame

Background documentation Using Hyperlinks, Buttons, and Toggle Buttons Locate the document in its SAP Library structure

You can use UI elements in the cells of the ALV output that allow the user to trigger certain actions. The following UI elements do not automatically lead to data changes:

·        Hyperlink LINK_TO_ACTION (see LinkToAction)

·        Hyperlink LINK_TO_URL (see LinkToURL)

·        Button (see Button)

·        Toggle button (see Toggle Button)

Note

The cross-references listed above refer to generally usable Web Dynpro objects. Instead of the class names specified there, you use the class names listed below for the ALV configuration model:

Classes for Interactive UI Elements

UI Element

Class

Hyperlink LINK_TO_ACTION

CL_SALV_WD_UIE_LINK_TO_ACTION

Hyperlink LINK_TO_URL

CL_SALV_WD_UIE_LINK_TO_URL

Button

CL_SALV_WD_UIE_BUTTON

Toggle Button

CL_SALV_WD_UIE_TOGGLE_BUTTON

These classes can be found in the system in the package SALV_WD_CONFIG.

For information on displaying one of the UI elements in a cell, see Assigning Properties to Columns and Cells

Note

The user can also use the UI elements listed here in a write-protected ALV output. However, if you deactivate the ALV output, the UI elements are also deactivated (see Write-Protection and Activation).

Event Handling

You can use the event ON_CLICK to handle user actions for the following UI elements:

·        Hyperlink LINK_TO_ACTION

·        Button

·        Toggle Button

(See ON_CLICK.) However, the UI element LINK_TO_URL is only for displaying a URL in an Internet browser. You cannot catch any events.

 

Leaving content frame