SAP SCROLL LIST HORIZONTAL ABAP Statements

Warning: Undefined variable $saptab in /customers/b/9/9/trailsap.com/httpd.www/abap-statements/index.php on line 46

Get Example source ABAP code based on a different SAP table
  

Warning: Undefined variable $prev in /customers/b/9/9/trailsap.com/httpd.www/abap-statements/index.php on line 62

SCROLL LIST - Horizontal

Short Reference


ABAP Syntax ... {TO COLUMN col}

| {{LEFT|RIGHT} [BY n PLACES]} ... .

ABAP_ALTERNATIVES:
1 ... TO COLUMN col
2 ... LEFT [BY n PLACES]
3 ... RIGHT [BY n PLACES]

What does it do? These additions are used to scroll horizontally in the list.



Latest notes:When scrolling horizontally using the SCROLL
statement, you should only specify the upper or lower limit of data objects displayed. This is because the positions in the list buffer and in the list displayed will only match for one of these values in Unicode systems.
• TO COLUMN SCROLL LIST

ABAP Alternative 1 ... TO COLUMN col

What does it do? The addition TO COLUMN specifies the value from col for the first column in the screen segment. A type i data object is required for col. If the value in col is 0 or smaller, it is processed as 1, and if it is greater than the current line width, it is processed as if it was the same as the line width and the system enters a value of 4 for sy-subrc.
• LEFT SCROLL LIST
• BY PLACES SCROLL LIST LEFT

ABAP Alternative 2 ... LEFT [BY n PLACES]

What does it do? 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; a type i data object is required for n. If the result is 0 or less, it is processed as 1 and the system enters a value of 4 for sy-subrc.
• RIGHT SCROLL LIST
• BY PLACES SCROLL LIST RIGHT

ABAP Alternative 3 ... RIGHT [BY n PLACES]

What does it do? 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 0 or less, 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. A type i data object is required for n. If the result is greater than the current line length, it is processed as if it were the same as the line length and the system enters a value of 4 for sy-subrc.

Return to menu