Reports in abap
Abap reports
Report --> final output of the program.
* classical report
* interactive report
1 classical report --> 0 to 19 interactive report.
1. Classical
* Top-of-page
* Initialization
* At selection-screen
* Start-of-selection
* End-of-selection
* End-of-page
-- All events are optional
-- Every event has its own property and will be trigger based on some prerequisites.
-- No sequence to be maintained and no duplicates of the event.
-- No syntax check if some event is missing.
-- format and spelling must be maintained.
Example program
REPORT ZAJAY_PRACTICE.
TOP-OF-PAGE.
write: / 'TOP-OF-PAGE'.
INITIALIZATION.
write: / 'INITIALIZATION'.
At SELECTION-SCREEN.
write: / 'at SELECTION-SCREEN'.
START-OF-SELECTION.
write: / 'START-OF-SELECTION'.
End-of-SELECTION.
write: / 'end-of-SELECTION'.
End-of-page.
write: / 'end-of-page'.
Output
top-of-page.
initialization.
start-of selection.
end-of-selection.
Page number
write : sy-pagno color6.
Between pages line.
write: sy-uline.
Comments
Post a Comment