EVENTS IN INTERACTIVE REPORTS IN SAP ABAP.
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
AT LINE-SELECTION
AT USER-COMMAND
TOP-OF-PAGE DURING LINE-SELECTION
AT LINE-SELECTION:- This event is used to generate an interactive list when ever particular in the out is double clicked.
TOP-OF-PAGE DURING LINE-SELECTION:- This event is used to write some thing on top of every page of individual secondary lists. Top-of-page event is used
to write something on only basic list.
AT USER-COMMAND:- This is used to handle user action on the screen when ever standard menu bar and application tool are changed.
In these interactive lists we take the help of HIDE table. Hide is an intermediate memory area which is used to hold the values that are used for generation of next secondary list. Hide statement should be used after write statement. Then only you will get correct results. Other wise you will get wrong values. Hide table values you cant see even in debug mode.
SY-LSIND:- This is also a system variable which gives present processing list number. Its value will be 0 for basic list and 1 to 20 for secondary lists. We will make use of this sy-lsind in our next program to tell the system about which logic should be executed while going to a particular list..
SY-LILLI:- This is a system variable which will hold the clicked line number.
SY-LISEL:- This is also a system variable which will hold all the contents of clicked line.
SY-UCOMM:- This system variable is used to hold the function code that is triggered for the user actions on the screen