Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  User Dialogs →  Classic Lists →  Create lists 

SET LEFT SCROLL-BOUNDARY

Short Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


SET LEFT SCROLL-BOUNDARY [COLUMN col]. 

Addition

... COLUMN col

Effect

This command sets the left-hand edge of the horizontally movable area of the current page. This applies to both user-activated scrolling through the list displayed on-screen and to scrolling activated by the SCROLL command. For the command to work properly, the list cursor has to be positioned in a page with an output command or with SKIP. The command works only on this page. If the command is executed multiple times for one page, the last command is the one that takes effect.

If the addition COLUMN is not specified, all parts of the current page that are located to the left of the current position of the list cursor (sy-colno) are excluded from horizontal scrolling.

Addition

... COLUMN col

Effect

If the addition COLUMN is specified, this applies to all columns in the current page that are located to the left of the position specified in col. col refers to the columns in the list displayed. A data object of the type i is expected for col. If the value in col is less than or equal to 0, or greater than the current list width, the command has no effect.


Notes

  • As the edge of a movable area, only the lower or upper limit of output data objects should be used, because only the positions of these are guaranteed to match in the list buffer and in the list displayed in Unicode systems.
  • To prevent an entire line from being horizontally movable, use the NEW-LINE NO-SCROLLING command.

Example

Output of a tabular list of airlines from the database table SCARR, in which the area for output from the key field is fixed.

DATA scarr_wa TYPE scarr. 

SELECT * 
       FROM scarr 
       INTO scarr_wa. 
  WRITE: / scarr_wa-carrid COLOR COL_KEY. 
  SET LEFT SCROLL-BOUNDARY. 
  WRITE: scarr_wa-carrname, 
         scarr_wa-currcode, 
         (40) scarr_wa-url. 
ENDSELECT.