Skip to content

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

REPORT

Quick Reference

Other versions: 7.31 | 7.40 | 7.54

Syntax


REPORT rep [list_options] 
           [MESSAGE-ID mid]
           [DEFINING DATABASE ldb]
           [REDUCED FUNCTIONALITY].

Extras

1. ... MESSAGE-ID mid

2. ... REDUCED FUNCTIONALITY

Effect

The statement REPORT introduces an executable program. It must be the first statement of a standalone program after any include programs are resolved. The name rep must be specified directly. The optional additions list_options can be used to modify the basic list of the program. A message class can be specified using MESSAGE-ID.

The addition DEFINING DATABASE is used to define a logical database, whereas REDUCED FUNCTIONALITY should only be used for PROGRAM.


Notes

  • The keyword PROGRAM can also be replaced by the keyword REPORT. In executable programs, PROGRAM means the same as REPORT and can be used with the additions of REPORT. As a rule, however, executable programs should only be introduced using REPORT.
  • Although it is not absolutely necessary to specify the name rep, the name of the ABAP program from the repository should always be used.

Addition 1

... MESSAGE-ID mid

Effect

This addition specifies a message class mid that allows the use of short forms of the statement MESSAGE in the program. Here, only the message type and message number are specified in the statement. The message class must be specified directly and appear in the column ARBGB of the database table T100. The variants of the statement MESSAGE in which the message class is specified override the addition MESSAGE-ID.


Example

Default setting of the message class Z_MY_MESSAGES for the program Z_MY_REPORT.

REPORT z_my_report MESSAGE-ID z_my_messages.

Addition 2

... REDUCED FUNCTIONALITY

Effect

This addition is only intended for use with the statement PROGRAM in subroutine pools and is described there.

Continue

REPORT - list_options