Show TOC

Generating and Managing Tooltip ObjectsLocate this document in the navigation structure

Use

You are able to assign the tooltip objects to the following elements:

  • Symbols

  • Exceptions

  • Colors of cells

You use tooltip objects when the element to which the tooltip belongs can appear multiple times: to ensure that the same tooltip text is displayed every time, when an element is displayed assign a specific tooltip object to the element.

Example

The color green always means Released . In order to always display exactly this text as tool tip when a row is green, assign the appropriate tooltip to the color.

The tooltip object contains the following information:

  • The type of tooltip object (that is for which element the tooltip can be sued)

  • The indicator for the element

  • The text that is displayed as tooltip

Features

You are able to make the following settings for tooltip objects:

  • Get Tooltip Object

  • Create, Change and Delete Tooltip Object

The following is valid for all of these functions:

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

Yes

In the Container

Yes

Get Tooltip Object

In every main ALV class there is a method that returns all tool tip objects of the ALV output (class CL_SALV_TOOLTIPS). Using this object you obtain the desired tooltip object with the methods GET or GET_TOOLTIP.

Function

Class

Method

Get tooltips

CL_SALV_TABLE

CL_SALV_HIERSEQ_TABLE

GET_FUNCTIONAL_ SETTINGS

CL_SALV_TREE

GET_TREE_SETTINGS

Get all tooltip objects

CL_SALV_FUNCTIONAL_SETTINGS

GET_TOOLTIPS

CL_SALV_TREE_SETTINGS

CL_SALV_TOOLTIPS

GET

Get specific tooltip object

CL_SALV_TOOLTIPS

GET_TOOLTIP

Create, Change and Delete Tooltip Object

You are able to create any number of tooltip objects. You are able to delete tooltip objects either individually or all at once.

Function

Class

Method

Get tooltip object

CL_SALV_TOOLTIPS

ADD_TOOLTIP

Delete individual tooltip object

REMOVE_TOOLTIP

Delete all tooltip objects

CLEAR

Change the text for the tooltip object

CL_SALV_TOOLTIP

SET_TOOLTIP

Get the text for the tooltip object

GET_TOOLTIP

Get type of tooltip

GET_TYPE

Get indicator for element

GET_VALUE