Skip to content

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

REPORT

Short 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 the triggering of possible include programs. 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 shoudl only be used for PROGRAM.


Notes

  • In the above statement, the key word REPORT can be replaced by the key word PROGRAM. In executable programs, PROGRAM means the same as REPORT and can be used with the additions of REPORT. As a rule, only initiate executable programs 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, in the program, allows the use of short forms of the statement MESSAGE in which only the message type and message number are specified. The message class must be specified directly and appear in the column ARBGB of the database table T100. The variations of 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 the statement PROGRAM in subroutine pools and is described there.

Continue

REPORT - list_options