Get Example source ABAP code based on a different SAP table
• TO FIRST PAGE SCROLL LIST • TO LAST PAGE SCROLL LIST • TO PAGE SCROLL LIST • LINE SCROLL LIST • FORWARD SCROLL LIST • BACKWARD SCROLL LIST • PAGES SCROLL LIST
ABAP_ALTERNATIVES: 1 ... TO FIRST PAGE> 2 ... TO LAST PAGE> 3 ... TO PAGE pag> 4 ... ${FORWARD$|BACKWARD$} $[n PAGES$]>
ABAP Addition ... LINE lin>
What does it do? These additions are used to scroll vertically in the list.
ABAP Alternative 1 ... TO FIRST PAGE>
What does it do? The addition TO FIRST PAGE> sets the top page of the screen segment to the first page of the list.
ABAP Alternative 2 ... TO LAST PAGE>
What does it do? The addition TO LAST PAGE> sets the top page of the screen segment to the last page of the list.
ABAP Alternative 3 ... TO PAGE pag>
What does it do? The addition TO PAGE pag> sets the top page of the screen segment to the page specified in pag>. pag> expects a data object of type i>. If the value in pag> is 0 or less, it is processed as 1. If it is greater than the number of pages, it is processed like this number of pages and sy-subrc> is set to 4.
ABAP Addition
What does it do? The addition LINE> specifies which line is displayed first on the pages selected using PAGE>. If the addition LINE> is not used, the list is displayed starting with the first line on the selected page. If the addition LINE> is specified, the line on the selected page specified in lin> is displayed under the page header>, not counting the page header. lin> expects a data object of type i>. If the value in lin> is 0 or less, it is processed as 1. If it is greater than the page length, it is processed like this page length and sy-subrc > is set to 4.
ABAP Alternative 4 ... ${FORWARD$|BACKWARD$} $[n PAGES$]>
What does it do? The additions FORWARD> and BACKWARD> without n PAGES> move the current screen segment up or down by the current number of lines in the GUI window (sy-srows>). The page header> of the top page displayed is always displayed first. The additions FORWARD> and BACKWARD> with n PAGES> define the top page in the screen segment on the page derived by adding or subtracting the value in n> from the current top page. n> expects a data object of type i>. If the resulting value is less than or equal to 0 or is greater than the number of pages, it is processed as 1 or like this number of pages and sy-subrc> is set to 4. The resulting page is displayed starting with the first line.