Generating and Managing Tooltip Objects
Use
You are able to assign the tooltip objects to the following elements:
-
Symbols
-
Exceptions
-
Colors of cells
So you use tooltip objects if the element which the tooltip belongs to can appear several times: To ensure that every time the same tooltip text is displayed, when an element is displayed assign the element a specific tooltip object.
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 |
|
Full Screen |
Yes |
|
|
In the Container |
Yes |
|
|
Hierarchical-sequential list |
Classic ABAP List |
Yes |
|
Tree Structure |
Full Screen |
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 |