
The ALV display has scroll bars of its own which are always shown if not all columns and rows can be displayed.
More Information
For information on defining the number of visible rows and columns, see Size of ALV Display, Columns, and Cells .
For information on the difference between scrollable and fixed columns, see Position of Columns .
Showing/Hiding the Footer
The ALV display normally has too many entries to display at once. The user can use scroll bars to be able to see the invisible entries.
If your ALV display includes many data records then ensure that the user can see all data using the scroll bars: You show the scroll bars.
You can specify when the scroll bars are visible or not:
Never
Even if entries are hidden in the invisible area, the scroll bar is not shown.
Always
Even when all entries are visible at any time, the scroll bars are shown.
Only when required
The scroll bar is only visible if there are more rows and columns than can be displayed in the ALV display.
To show or hide the scroll bar, use the methods of the interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE ).
Methods for showing the scroll bars
|
Function |
Method |
|
Show scroll bars |
SET_FOOTER_VISIBLE |
|
Check whether the scroll bar is shown |
GET_FOOTER_VISIBLE |
Showing Horizontal Scroll Bars
By default, all columns marked as visible are displayed. The user may have to navigate to the required location using the horizontal scroll bar of the browser window. The horizontal scroll bar of the ALV display is hidden.
You can define how many scrollable columns are visible at once, thereby determining the width of the ALV display. To define the number of visible columns and thereby determine whether to show or hide the paginators, use the methods of interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE ).
Methods for showing horizontal scroll bars
|
Function |
Method |
|
Define number of scrollable columns |
SET_SCROLLABLE_COL_COUNT |
|
Get number of scrollable columns |
GET_SCROLLABLE_COL_COUNT |
Scrolling Horizontally and Vertically
The user requires the pushbuttons of the scroll bars in order to move invisible columns or rows into the visible area of the ALV display.
You can use the ALV configuration model to define which row or column is displayed first regardless of whether the scroll bar is shown.
To specify the first row, use the index of the row. To specify the first column, use the technical name of the column.
To scroll to the required column or row in the ALV display, use the methods of interface class IF_SALV_WD_TABLE_SETTINGS (implementing class CL_SALV_WD_CONFIG_TABLE ).
Methods for horizontal and vertical scrolling
|
Function |
Method |
|
Specify row to be displayed as the first row |
SET_FIRST_VISIBLE_ROW |
|
Get row to be displayed as the first row |
GET_FIRST_VISIBLE_ROW |
|
Specify column to be displayed as the first column |
SET_FIRST_VISIBLE_SCROLL_COL |
|
Get column to be displayed as the first column |
GET_FIRST_VISIBLE_SCROLL_COL |