Tooltip Object Generation and
Management
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.

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
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:
Display type ALV Tool |
Classic ABAP list |
Full screen |
In the Container |
Simple, two-dimensional table |
Yes |
Yes |
Yes |
Hierarchical-sequential list |
Yes |
|
|
Tree structure |
|
Yes |
Yes |
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.
Methods
Function |
Class |
Method |
Get tooltips |
CL_SALV_TABLE CL_SALV_HIERSEQ_TABLE |
GET_FUNCTIONAL_ |
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 |
You are able to create any number of tooltip objects. You are able to delete tooltip objects either individually or all at once.
Methods
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 |