Show TOC

Scrolling to the List's MarginsLocate this document in the navigation structure

Use

To scroll horizontally to the left or right margin of a list, use the following options of the SCROLL statement:

Syntax

SCROLL LIST LEFT|RIGHT [INDEX idx].

If you do not specify the INDEX option, the statement scrolls to the left or right margin of the current list. If you specify the INDEX option, the system scrolls the list of list level idx . For more information on list levels, see Interactive Lists .

          


          
REPORT demo_list_scroll_3 NO STANDARD PAGE HEADING LINE-SIZE 200.
          
TOP-OF-PAGE.
          
WRITE: AT 161 'Top of Page', sy-pagno,
          
'SY-SCOLS:', sy-scols.
          
ULINE.
          
START-OF-SELECTION.
          
DO 200 TIMES.
          
WRITE sy-index.
          
ENDDO.
          
SCROLL LIST RIGHT.
          


          


            

This program creates a one-page list with a width of 200. If the current window width (stored in sy-scols ) equals 40, the output of the program looks as follows:

The list display is scrolled to the right margin. The user can now use the scroll bar to scroll to the left.