1. Initialization
2. At line-selection
3. Start-of-selection
4.Top-of-page
5. Top-of -page during at line-selection
6. At PF
7. At user-command
8.End-of-selection
9. End-of-page
Hi Kiran,
Below is the list of events:
At selection-screen output : triggered when the selection screen is loaded in memory before
being displayed.
end-of-page : every time the list data reaches the footer region of the page.
top of page during line selection : top of page event for secondary list.
at line-selection : evey time user dbl-clicks(F2) on the list data.
at pF<key> : function key from F5 to F12 to perform interactive action on the list.
There is no mandatory event in a report program. Events are actually used to organize the
statements and control the flow of the program. If the program contains no explicitly
defined event blocks, all the statements in the program form the entire event block
START-OF-SELECTION. ABAP runtime environment automatically introduces a
START-OF-SELECTION at the first execution line.
ABAP/4 report programs are event driven programs. Following events are triggered in a
report.
4. START-OF-SELECTION: This is the the first and default event for displaying the
report. Data retrieval logic is written under this event.
OUTPUT EVENT(5, 6):
5. TOP-OF-PAGE: This event is triggered every time a new page is started in the list.
6. END-OF-PAGE : This event is triggered every time the list data reaches the footer
region of the page.
In addition of the above, the following events are possible in case of Interactive Reports.
1. Top of page during line selection : top of page event for secondary list.
3. At pF<key> : function key from F5 to F12 to perform interactive action on the list.
4. At user-command.
==================================================
ABAP is an event-driven programming language. The general flow of an ABAP program is controlled by
events. These events are defined in an ABAP program using event keywords. All statements between event
keywords or between an event keyword and a FORM statement form processing blocks.
For clarity of reading code, it is good programming practice to code event processing blocks in the order in
which they will be triggered during execution. However, they do not have to be coded in a sequential order.
Within an ABAP Processing Block, statements are processed sequentially (top to bottom).
Finally, the code in the END-OF-SELECTION processing block is executed.
All ABAP statements that are not written as part of a processing block (after an event keyword) or a FORM-
ENDFORM block are automatically part of the Start-of Selection processing block if they are coded above all
other event keywords or subroutines.
Following are the system-triggered events which occur during the run time of a report program . These
events are presented in the order in which they are processed. These are called run time events.
The other set of events that occur occur while the ABAP processor is processing the output list of a report
program are called output events.
Proper usage of LINE-COUNT is to include the number of lines per page, as well as how many lines are
reserved for the footer.
For example, the following statement will display 50 lines of output, and then 3 lines of footer information.
REPORT YPROG LINE-COUNT 53(3).
Interactive Events
12) At Line-Selection.
13) At PF key
14) At User-Command
15) Top-of-page During Line-Selection.