ABAP Keyword Documentation → ABAP - Reference → Program structure → Introductory Statements for Programs → REPORT
REPORT - list_options
Other versions: 7.31 | 7.40 | 7.54
Syntax
... [NO STANDARD PAGE HEADING]
[LINE-SIZE width]
[LINE-COUNT page_lines[(footer_lines)]] ...
Extras
1. ... NO STANDARD PAGE HEADING
2. ... LINE-SIZE width
3. ... LINE-COUNT page_lines[(footer_lines)]
Effect
These additions influence the basic list of the program.
Addition 1
... NO STANDARD PAGE HEADING
Effect
This addition suppresses the output of the
standard page header (standard header and column headers) on the basic list of the program and sets
the system field sy-wtitl
to the value "N". This setting can be overwritten
when the list is created using the additions NO-TITLE|WITH-TITLE
and
NO-HEADING|WITH-HEADING of the statement NEW-PAGE
.
Addition 2
... LINE-SIZE width
Effect
This addition specifies the line width of the basic list and details list of the program to width
characters, and sets the system field sy-linsz
to this value. The line width
determines the number of characters in the line buffer as well as the number of columns in the list
displayed. The value width
must be specified directly as a positive number. The maximum line width is 1023.
When the LINE-SIZE
is not specified, the line width of the basic list is set to a standard width based on the window width of the current
dynpro, but is at least as wide
as a standard size GUI window. For the standard width, the contents of sy-linsz
is 0. The LINE-SIZE
overwrites the value of the addition LINE-SIZE
of the statement SUBMIT
and can be overwritten when the list is created using the addition LINE-SIZE
of the statement NEW-PAGE
.
Note
The current maximum line width is stored in the constants SLIST_MAX_LINESIZE of the
type group SLIST.
Also defined there is a type SLIST_MAX_LISTLINE of type c
with length SLIST_MAX_LINESIZE.
Addition 3
... LINE-COUNT page_lines[(footer_lines)]
Effect
This addition specifies the page length for the basic list of the program to page_lines
lines and fills the system field sy-linct
with this value. If LINE-COUNT
is not specified and for page_lines
less than 0 or greater than 60000, the
page length is set internally to 60000. This setting overwrites the value passed by the (similarly named)
addition LINE-SIZE
of the statement
SUBMIT
and can be overwritten when the list is created by the (similarly
named) addition LINE-COUNT
of the statement NEW-PAGE
.
If a number is specified for footer_lines
, a corresponding number of lines are reserved for the
page footer, which can be described in the event block END-OF-PAGE
.
page_lines
and footer_lines
must be specified directly as positive numbers, where no sign can be specified for footer_lines
.
Notes
-
The default value should be used for screen lists since, as a rule, page breaks specified using
LINE-COUNT
are not adjusted to the window size. - The default value should also be used for spool lists, so that the page size can be selected on a printer-specific basis. A spool list should be created in such a way that it provides satisfactory results for any page size.
-
Specifying a fixed line count is only useful for form-like lists with a fixed page layout. Here, however, always check whether these forms can be created by other means. For example, search the
SAP Help Portal for the term "form".
Example
Sets the page length of the basic list to 65 lines, eight of which are reserved for the page footer. The line width is 132 characters.
REPORT z_myreport LINE-COUNT 65(8) LINE-SIZE 132.