
By default, the ALV display has no header. You can generate a header and display it above the ALV display. The header can have the following parts:
Text
Graphic
Tooltip
You can make the following settings for the header of the ALV display:
Generating, Getting, and Deleting a Header Object
Specify wording for header
Specifying the Path of the Graphic in the Header
Specify the position of the graphic in the header
Specify the wording for the tooltip
Generating, Getting, and Deleting a Header Object
The header of the ALV display is an instance of the class CL_SALV_WD_HEADER. To generate or delete the object, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE).
Methods for creating, getting, and deleting header objects
|
Function |
Method |
|
Generate header object |
CREATE_HEADER |
|
Get header object |
GET_HEADER |
|
Delete header object |
DELETE_HEADER |
Specify wording for header
The header of the ALV display has the type STRING. To define the header, use methods of the class CL_SALV_WD_HEADER.
Methods for wording of headers
|
Function |
Method |
|
Specify wording for header |
SET_TEXT |
|
Get wording for header |
GET_TEXT |
Specifying the Path of the Graphic in the Header
Sie können im Titel Ihrer ALV-Anzeige jede Grafik darstellen, die für die Web Dynpro-Umgebung geeignet ist (siehe Handling von Bildern und Web-Ikonen ). To define the path or ID of the graphic file, use the methods of the class CL_SALV_WD_HEADER.
Methods for graphic file path
|
Function |
Method |
|
Set path or ID for graphic |
SET_IMAGE_SOURCE |
|
Get path or ID for graphic |
GET_IMAGE_SOURCE |
Specifying the Position of the Graphic in the Header
You can choose whether the graphic displayed in the header is placed before or after the header text. To do this, use the methods of the class CL_SALV_WD_HEADER.
Methods for placing graphics in headers
|
Function |
Method |
|
Set position within header |
SET_IMAGE_FIRST |
|
Get position within header |
GET_IMAGE_FIRST |
Specify the wording for the tooltip
The tooltip of the header becomes visible when the user places the cursor over the header of a ALV display. To specify the wording of the tooltip, use the methods of the class CL_SALV_WD_HEADER.
Methods for header tooltip
|
Function |
Method |
|
Specify the wording for the tooltip |
SET_TOOLTIP |
|
Get wording for tooltip |
GET_TOOLTIP |