SAP SET SCROLL-BOUNDARY ABAP Statements

Get Example source ABAP code based on a different SAP table
  


Standard SAP Help for SET_SCROLL_BOUNDARY

SET LEFT SCROLL-BOUNDARY

Short Reference
• SET LEFT SCROLL-BOUNDARY ABAP Statement

ABAP_BASIC_FORM_12 SET LEFT SCROLL-BOUNDARY [COLUMN col].

ABAP Addition
... COLUMN col

What does it do? 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.
• COLUMN SET LEFT SCROLL-BOUNDARY

ABAP Addition

What does it do? 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.

Latest 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 ABAP Coding
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.

Return to menu