sapdev logo background
sapdev logo sapdev logo
Comments

ABAP REPORT Statement syntax, information and example SAP source code



Return to Statement index



REPORT

Short Reference

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

ABAP_ADDITIONS:
1 ... MESSAGE-ID mid
2 ... REDUCED FUNCTIONALITY

What does it do? 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 .

Latest 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.

ABAP_ADDITION_1 ... MESSAGE-ID mid

What does it do? 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 ABAP Coding Default setting of the message class Z_MY_MESSAGES
for the program Z_MY_REPORT.
REPORT z_my_report MESSAGE-ID z_my_messages.

ABAP_ADDITION_2 ... REDUCED FUNCTIONALITY

What does it do? This addition is only intended for the
PROGRAM statement in subroutine pools.
Documentation extract taken from SAP system, � Copyright SAP AG. All rights reserved




REPLACE_TABLE_RANGE
REPORT_DEFINING




comments powered by Disqus