Friday, April 22, 2022

EVENTS IN CLASSICAL REPORTS IN SAP ABAP

 


EVENTS IN CLASSICAL REPORTS


INITIALIZATION

AT SELECTION-SCREEN

AT SELECTION-SCREEN ON <FIELD>

AT SELECTION-SCREEN OUTPUT

AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD>

START-OF-SELECTION

TOP-OF-PAGE

END-OF-PAGE

END-OF-SELECTION


Now we discuss what are the uses of these events.


INITIALIZATION:- This is the first event to be triggered. This event is triggered before the selection-screen is displayed. This event is used to give default vales to selection-screen fields.


AT SELECTION-SCREEN:-  This event is triggered after giving input in selection-screen fields. This event is used to handle the user actions on the screen. This is also used to validate all the selection-screen fields.


AT SELECTION-SCREEN ON <FIELD>:- This is used to validate a particular field present on the selection-screen.


AT SELECTION-SCREEN OUTPUT:- This is used to change the selection-screen properties dynamically.


AT SELECTION-SCREEN ON VALUE-REQUEST FOR <FIELD>:- This  is used to give F4 help to a particular field resent on the selection-screen.


START-OF-SELECTION:-  Main logic of the program is written in this event. Usually write statement is recognized from this event.


TOP-OF-PAGE:- This is used to write something on top of every page. The first write statement or output statement (SKIP) of a page triggers this event.


END-OF-PAGE: -  This event is used to write something at end of every page. Last line of the page triggers this event. We have to allocate the line for end of page.


END-OF-SELECTION:- Usually program output is written in this event. This event is used to handle abnormal termination of the program. The stop statement written in start-of-selection event takes the control to end-of-selection event. 

No comments:

Post a Comment