Entering content frame

Scrolling Window by Window Locate the document in its SAP Library structure

To scroll through a list vertically by the size of the current window and independent of the page length, use the following statement:

Syntax

SCROLL LIST FORWARD|BACKWARD [INDEX idx].

If you do not use the INDEX addition, the statement scrolls forward or backward by one whole window in the current list. If you use the INDEXaddition, the system scrolls in the list with the level idx. For more information on scrolling in list levels, see Scrolling through Interactive Lists.

Example

REPORT demo_list_scroll_1 NO STANDARD PAGE HEADING LINE-SIZE 40.

TOP-OF-PAGE.

  WRITE: 'Top of Page', sy-pagno, 'SY-SROWS:', sy-srows.
  ULINE.

START-OF-SELECTION.

  DO 100 TIMES.
    WRITE / sy-index.
  ENDDO.

  DO 3 TIMES.
    
SCROLL LIST FORWARD.
  ENDDO.

This executable program creates a list of one endless page. Within the DO loop, the system executes the SCROLLstatement three times. If the current window has a length of 12 lines (stored in sy-srows), the output of the program appears as below:

This graphic is explained in the accompanying text

Note that the actual list is scrolled by sy-scolsminus the number of header lines. The user can continue scrolling into both directions.

 

 

Leaving content frame