Skip to content

ABAP Keyword Documentation →  ABAP - Reference →  Program structure →  Introductory Statements for Programs →  REPORT 

REPORT - list_options

Short Reference

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". You can overwrite this setting during list creation with the additions NO-TITLE|WITH-TITLE and NO-HEADING|WITH-HEADING to the NEW-PAGE statement.

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 SAP window. For the standard width, the contents of sy-linsz is 0. The LINE-SIZE overwrites the value of the like-named LINE-SIZE addition to the statement SUBMIT and can be overwritten during list creation with the like-named LINE-SIZE addition to 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 you choose to specify a number 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

  • For screen lists, you should use the standard value since, as a rule, page breaks defaulted through LINE-COUNT are not adjusted to the window size.
  • You should also use the standard value for print lists, so that you can still select the page size on a printer-specific basis. A print 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, you should always check whether such forms can be created by other means, such as SAPScript forms.

Example

The page length of the basic list is set 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.