REPORT

Short Reference

Syntax

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

Extras:

1. ... MESSAGE-ID mid

2. ... DEFINING DATABASE ldb

Effect

The statement REPORT must be the first statement of an independent program following the triggering of possible Include programs. It introduces an executable program. You must specify the name rep directly. You can use the optional addition list_options to influence the basic list of the program. You can use the other additions to set a messageclass and define a logicaldatabase.

Notes

Addition 1

... MESSAGE-ID mid

Effect

This addition specifies a message class mid that, in the program, allows the use of shortforms 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 SABAPDOCU for the program Z_MYREPORT.

REPORT z_myreport MESSAGE-ID sabapdocu.

Addition 2

... DEFINING DATABASE ldb

Effect

This addition shows that the current program is the database program of the logical database ldb. The name of this logical database has a maximum length of 20 characters. Logical databases are maintained with the tool Logical Database Builder of the ABAP Workbench, in which the framework program is generated automatically including the statement REPORT. The name of the framework program is SAPDBldb.

Example

Introduction of the logical database F1S.

REPORT sapdbf1s DEFINING DATABASE f1s.