REPORT

Basic form

REPORT rep.

Extras:

1. ... NO STANDARD PAGE HEADING

2. ... LINE-SIZE col

3. ... LINE-COUNT n(m)

4. ... MESSAGE-ID mid

5. ... DEFINING DATABASE ldb

Effect

REPORT is the first statement in a program. rep can be any name, but you are recommended to use the name of the ABAP program.

Example

REPORT ZREPNAME.

Note

Only standard SAP reports should begin with 'R'.

Addition 1

... NO STANDARD PAGE HEADING

Effect

Suppresses output of the standard page header (see NEW-PAGE).

Addition 2

... LINE-SIZE col

Effect

Creates a report with col columns per line.
If the LINE-SIZE specification is missing, the line length corresponds to the current screen width. The system field SY-LINSZ contains the current line size for generating lists. The maximum width of a list is 1023 characters. You should keep lists to the minimum possible size to improve useability and performance (recommendation: LINE-SIZE < 132). For very wide lists (LINE-SIZE > 255), you should consult the notes for using LINE-SIZE

greater than 255.

Notes

Example

REPORT ZREPNAME LINE-SIZE 132.

Addition 3

... LINE-COUNT n(m)

Effect

Creates a report list with n lines per page, of which m lines are reserved for the END-OF-PAGE processing. If you omit the "(m)", the default value 0 applies. The system field SY-LINCT contains the current number of lines per page for generating lists.
If the LINE-COUNT specification is missing, the number of lines per page is calculated dynamically from the number of lines actually output on this page. Here, a page break no longer occurs automatically, (internal limit: 60,000 lines) but must be specified explicitly with NEW-PAGE, and the system field SY-LINCT is set to 0. (NEW-PAGE ... LINE-COUNT)

Note

The LINE-COUNT must not be enclosed in quotation marks.

Further information about using LINE-COUNT.

Examples

REPORT ZREPNAME LINE-COUNT 65.

The page has 65 lines.

REPORT ZREPNAME LINE-COUNT 65(8).

The page has 65 lines, of which the last 8 are only used by END-OF-PAGE.

Addition 4

... MESSAGE-ID mid

Effect

This addition specifies the standard message class for the main program. This contains the messages used with the simple MESSAGE statement.

Note

This message class must not be enclosed in quotation marks.

You can use a namespace prefix with message class names.

Example

REPORT RSTEST00 MESSAGE-ID SY.

Addition 5

... DEFINING DATABASE ldb

Effect

All the database programs must specify in the REPORT statement the 20-character name of the logical database to which they belong.
This addition is generated automatically (in the REPORT statement) when you create a logical database by choosing Utilities -> Development/test -> Logical databases.

Note

You can use a namespace prefix with logical database names.

Example

REPORT SAPDBKDF DEFINING DATABASE KDF.

Additional help

Introductory Statements