Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Processing Lists in the List Buffer →  SCROLL LIST 

SCROLL LIST - horizontal

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


... {TO COLUMN col} 
  | {{LEFT|RIGHT} [BY n PLACES]} ...

Alternatives

1. ... TO COLUMN col

2. ... LEFT [BY n PLACES]

3. ... RIGHT [BY n PLACES]

Effect

These additions are used to scroll horizontally in the list.


Note

When scrolling horizontally using the statement SCROLL, only the upper or lower limit of data objects displayed should be specified. This is because the positions in the list buffer and in the list displayed only match for one of these values in Unicode systems.

Alternative 1

... TO COLUMN col

Effect

The addition TO COLUMN specifies the value from col for the first column in the screen segment; col expects a data object of type i. If the value in col is less than or equal to 0, it is processed as 1; if it is greater than the current line width, it is processed as if it was the same as the line width and a value of 4 is set for sy-subrc.

Alternative 2

... LEFT [BY n PLACES]

Effect

The addition LEFT without BY n PLACES enters a value of 1 for the first column in the screen segment. The addition LEFT with BY n PLACES enters the current first column (sy-staco) minus the value in n as the first column in the display segment; n expects a data object of type i. If the result is less than or equal to 0, it is processed as 1 and a value of 4 is set for sy-subrc.

Alternative 3

... RIGHT [BY n PLACES]

Effect

The addition RIGHT without BY n PLACES enters the line length (sy-linsz) minus the window width (sy-scols minus 2) for the first column in the screen segment. If the result is less than or equal to 0, it is processed as 1. The addition RIGHT with BY n PLACES enters the current first column (sy-staco) plus the value in n for the first column in the display segment; n expects a data object of type i. If the result is greater than the current line length, it is processed as if it were the same as the line length and a value of 4 is set for sy-subrc.