The ABAP REPORT should have the following structure i.e The CODING
SEQ.
Program Declarartion
DECLARATION SECTION .
Things like Report Name,Programmer Name ,Request For Change(RFC)
number, Change History Etc.
INCLUDE DECLARATIONS .
Includes like programTOP for data declaration, programF01 for form routines
programO01 for PBO modules,programI01 for PAI modules Etc.
Data Work area declaration
TABLES DECLARATION .
Here declare all the tables by using TABLES keyword.
TYPE-POOLS DECLARATION.
Any type pools used in the report like VRM(for use with ListBox)
should be declared here using TYPE-POOLS command.
TYPES DECLARATION .
Any type sused should be deined here by using TYPES keyword.
CONSTANTS .
All constants should be declared here starting with C_name using
keyword CONSTANTS.
DATA VARIABLES
All data variables decalred with DATA keyword should be here
DATA STRUCTURES
All structures declared with DATA should be here.
INTERNAL TABLES
All internal tables should be declared here.
RANGES DEFINITIONS.
All the ranges defined in the program using RANGES statement should be declared here.
FIELD GROUPS DECLARATION.
FIELD SYMBOL DECLARATION.
Events Declaration
INITIALIAZATION.
AT SELECTION-SCREEN ON VALUE-REQUEST FOR field.
AT SELECTION-SCREEN ON HELP-REQUEST FOR field.
AT SELECTION-SCREEN ON FIELD field.
AT SELECTION-SCREEN ON BLOCK block.
AT SELECTION-SCREEN OUTPUT.
AT SELECTION-SCREEN.
START OF SELECTION
GET field1,field2.
END OF SELECTION.
List Events
TOP OF PAGE
END OF PAGE.
AT LINE-SELECTION.
AT USER_COMMAND.
AT PFn.
Declaration of FORM ROUTINES.
FORM ....
ENDFORM.