Show TOC

Displaying Interactive ElementsLocate this document in the navigation structure

Use

In the content of your ALV output, you are able to display various elements in place of text. Some of these elements can be treated as a click area for the user. You are able to display the following elements:

  • Checkbox In list-type ALV ouputs, the checkbox is disabled. With the content of the column, you are only to display whether the checkbox is set or not. In the tree structure, however, you are able to handle users actions on this element using an event.

  • Pushbutton You are able to handle user actions on this element with an event.

  • Hyperlink You specify the Internet addresses (URLs). Users can then call up the corresponding page in the Internet browser by clicking on one of these Internet addresses.

  • Click Area You are able to handle user actions on this element with an event.

    Note

    In list-type ALV outputs, the setting for interactive elements is called cell type . In tree structures it is called Type of Item .

Features

You are able to make the following settings for interactive elements:

  • Get Current Setting

  • Assign Cell Type or Type of Item

Get Current Setting

In list-type ALV outputs, you are able to assign the cell type in two ways:

  • All cells of a column get the same cell type. Here the cell type is thus a property of the column.

  • Using a Column for Cell Types , you assign any cell type to each of the individual rows.

In the tree structures, on the other hand, the type is a property of the item.

Depending on of what the cell / item type is a property, you proceed differently to obtain the current settings.

Function

Class

Method

Get the property of a column

CL_SALV_TABLE

GET_COLUMNS

Check whether a column exists for cell types

CL_SALV_COLUMNS_LIST

GET_CELL_TYPE_COLUMN

Get the cell type of a column

CL_SALV_COLUMN_LIST

GET_CELL_TYPE

Get properties of an item

CL_SALV_TREE

GET_NODES

CL_SALV_NODES

GET_NODE

CL_SALV_NODE

GET_ITEM

GET_HIERARCHY_ITEM

CL_SALV_ITEM

GET_TYPE

Assign Cell Type or Type of Item

If all prerequisites are fulfilled for displaying an interactive element in a cell or item, you are able to assign the type to the cell or item. See the prerequisites for each of the individual elements below.

Function

Class

Method

Display element in a cell

CL_SALV_COLUMN_LIST

SET_CELL_TYPE

Display element in an item

CL_SALV_ITEM

SET_TYPE