ARTICLE
Lists, Page Layout
The example shows how to layout the page header and footer and the page
breaks on lists.
ABAP_SOURCE_CODE
ABAP_EXEC
ABAP_DESCRIPTION
The addition LINE-SIZE of the statement REPORT sets the
width of the program output list to 60. The addition LINE-COUNT
sets the page length to 12 and the page footer length to 3.
This program does not use the default page header but a user-defined
header based on TOP-OF-PAGE . The header consists of a single
line. The page number is taken from the system field sy-pagno .
The page footer is also user-defined and is determined in the event
END-OF-PAGE , analogously to the page header. Although the page
footer comprises only one line, it is filled with two empty lines since
3 lines have been reserved for it. After subtracting the
list title
and the column title , this leaves 4 lines for the actual
output.
At the beginning, the program generates five pages with different page
headers, indicating the statement to be used for initiating the next
page break on each preceding page. The list title was defined as
'List Title' and the column title as the 'Column Title in the
text elements.
The statement RESERVE triggers the event END-OF-PAGE and a
page break since no three lines remain on the page.
Finally, the addition LINE-COUNT of the statement NEW-PAGE
sets the page length of the subsequent pages to 15.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved