Sie sind auf Seite 1von 3

Basic Events in Report Program

Program Flow in ABAP is as below:


INITIALIZATION.
Called before standard selection screen. To initialize the input fields of the standard selection
screen. And can also change the default values of those fields used in the selection screen.
AT SELECTION-SCREEN.
Its the main event called after the selection screen is processed. Triggered after the user
input!PAI" in the selection screen# to validate the input fields.
AT SELECTION-SCREEN OUTPUT.
Called in PB$# to modif% an% screen fields before it is displa%ed.
AT SELECTION-SCREEN ON field.
Called in PAI# to validate a particular field.
AT SELECTION-SCREEN ON block.
Called in PAI# to validate the fields inside a particular bloc&.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP.
Called in PAI# to validate the radiobuttons inside a particular group.
AT SELECTION-SCREEN ON END OF field.
Called in PAI# when user enter values in multiple selections# to validate the fields inside the
whole selection table.
AT SELECTION-SCREEN ON HELP-REQUEST FOR field.
Called when user presses F' for the field. Can be used to create help for input fields without an%
table reference ( can override an% help te)t defined for a field.
AT SELECTION-SCREEN ON ALUE-REQUEST FOR field.
Called when user presses F* for the field. To displa% all the possible values for a field.
START-OF-SELECTION.
Called before data is to be read from database.
END-OF-SELECTION.
Called after data has been read and all data is read% to be formatted and displa%ed.
+,T events are processed onl% if %ou are in -ogical .atabase.
Description of Reporting Events
This section describes in more detail the events that occur when %ou run an e)ecutable program.
The following events occur when %ou run a t%pical e)ecutable program that is lin&ed with a logical
database:
Event Time
INITIALIZATION Before the standard selection screen is displa%ed
AT SELECTION-
SCREEN
After user input on a selection screen has been processed# but while the
selection screen is still active
START-OF-
SELECTION
After the standard selection screen has been processed# before data is read
from the logical database
After the logical database has read a data record from the node node
After all of the nodes of the logical database have been processed that are
hierarchicall% subordinate to the node node in the structure of the logical
database
After all data has been read b% the logical database
List processor events:
Event Time
TOP-OF-PAGE
In list processing when a new page starts
END-OF-PAGE
In list processing when a page ends
AT LINE-
SELECTION
/hen the user triggers the predefined function code PIC0
AT PFnn
/hen the user triggers the predefined function code PFnn
AT USER-COMMAND
/hen the user triggers a function code defined in the program

Das könnte Ihnen auch gefallen