Skip to content

ABAP Keyword Documentation →  ABAP − Reference →  Program Layout →  Introductory Statements for Programs →  REPORT 

REPORT - list_options

Quick 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) in 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 the 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.

If 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 content of sy-linsz is 0. LINE-SIZE 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-SIZE of the statement NEW-PAGE.


Note

The current maximum line width is stored in the constant 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. The constant SLIST_MAX_LINESIZE cannot be used in the statement REPORT but can be used in the statement NEW-PAGE.

Addition 3

... LINE-COUNT page_lines[(footer_lines)]

Effect

This addition specifies the page length for the basic list of the program as page_lines lines and fills the system field sy-linct with this value. If LINE-COUNT is not specified and if page_lines is less than 0 or greater than 60000, the page length is set internally to 60000. This setting overwrites the value passed by the (identically named) addition LINE-SIZE of the statement SUBMIT and can be overwritten when the list is created by the (identically 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. No sign can be specified for footer_lines here.


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, it is always advisable to check whether these forms can be created by other means. This can be done, for example, by searching SAP Help Portal for the term "form".

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.