Column Header
The column header displays the name of a column for the user. You are able to define three different texts as column header.
You are able to make the following settings for the column header:
· Determine wording of the column header
· Display or hide column header
· Determine whether the user can sort the table according to this column by clicking on the column header
· Determine tooltip for the column header
· Display an icon (only tree structure)
The column header is a property of the COLUMN object. In this way you are able to specify the column header for every column in the internal data table.
You can specify three different variants of the column header: The long, medium and short column header. If the user changes the column width, the column header that fits the column best is automatically used.

A special case is the column header of the hierarchy column in the tree structure: Because there is no COLUMN object for this column, you determine this column header using the properties of the tree structure.
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 |
Methods
Function |
Class |
Method |
Determine version of the column header |
CL_SALV_COLUMN |
SET_LONG_TEXT SET_MEDIUM_TEXT SET_SHORT_TEXT |
Get current column header |
GET_LONG_TEXT GET_MEDIUM_TEXT GET_SHORT_TEXT |
|
Determine column header of the hierarchy column of a tree structure |
CL_SALV_TREE_SETTINGS |
SET_HIERARCHY_HEADER |
Get column header of the hierarchy column of a tree structure |
GET_HIERARCHY_HEADER |
You are able to determine whether the column header is visible or not in the ALV output. You make this setting for all column headers of the ALV output.
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 |
|
No |
No |
Methods
Function |
Class |
Method |
Display or hide column header |
CL_SALV_COLUMNS_LIST |
SET_HEADERS_VISIBLE |
Check whether column headers are being displayed or hidden |
IS_HEADERS_VISIBLE |
You are able to determine that the column header serve as a pushbutton for sorting the table. The sort direction is then indicated as a small arrow pointing up or down.
Display type ALV Tool |
Classic ABAP list |
Full screen |
In the Container |
Simple, two-dimensional table |
No |
No |
Yes |
Hierarchical-sequential list |
No |
|
|
Tree structure |
|
No |
No |
Methods
Function |
Class |
Method |
Set column header as pushbutton for sorting the table |
CL_SALV_ |
SET_SORT_ON_ |
Check whether column header is set as pushbutton for sorting the table |
IS_SORT_ON_ |
You are able to define a text that will be displayed when the user rests the mouse pointer on the column header for a moment.
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 |

The tooltip for the hierarchy column in the in the tree structure is a special case: Because there is no COLUMN object for this column, you determine this tooltip using the properties of the tree structure.
Methods
Function |
Class |
Method |
Determine tooltip for the column header |
CL_SALV_COLUMN |
SET_TOOLTIP |
Get current tooltip for a column header |
GET_TOOLTIP |
|
Set tooltip for hierarchy column of a tree structure |
CL_SALV_ |
SET_HIERARCHY_TOOLTIP |
Get tooltip for hierarchy column of a tree structure |
GET_HIERARCHY_TOOLTIP |
|
Get all tooltip objects for column headers of the tree structure |
GET_TOOLTIPS |
In the column header of the hierarchy column for a tree structure, you can display an icon.
Display type ALV Tool |
Classic ABAP list |
Full screen |
In the Container |
Simple, two-dimensional table |
No |
No |
No |
Hierarchical-sequential list |
No |
|
|
Tree structure |
|
Yes |
Yes |
Methods
Function |
Class |
Method |
Display icon in the column header of the hierarchy column ?? |
CL_SALV_ |
SET_HIERARCHY_ICON |
Get icon currently being displayed |
GET_HIERARCHY_ICON |