10-11-2007 12:38 PM
we have selectionscreen output, initialization events
first initializatuion,
than at selection-screen output
execute it, than we pressed f3 came bact to selection-screen
than which event ll trigger
thank you
kals.
10-11-2007 1:01 PM
The different events in a report Program are:
Load-of-program
Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects
Initialization.
This event is executed before the selection screen is displayed .
Initialization of all the values.
You can assign different values other than the values defaulted on the selection screen .
You can fill your selection screen with some values at runtime.
At Selection-Screen.
The event is processed when the selection screen has been processed (at the end of PAI ).
Validation & Checks of inputted values happen here
Extras :
ON VALUE-REQUEST FOR psel_low_high .
The pushbutton for F4 (Possible entries) appears beside the appropriate field.
... ON HELP-REQUEST FOR psel_low_high
. ... OUTPUT
This event is executed at PBO of the selection screen every time the user presses ENTER
Start-of-Selection.
Here the program starts selecting values from tables.
End-of-selection.
After all the data has been selected this event writes the data to the screen.
Interactive Events
Used for interactive reporting. It is used to create a detailed list from a basic list.
Events in an ABAP/4 Report Program
Start-Of-Selection
Processing block is executed after processing the selection screen
All the data is selected in this block.
All the main processing on the data except for interactive reporting is handled in this block.
End-Of-Selection
Data which is selected and has been processed is printed to the screen in this block.
List Processing happens in this block
Top-of-Page.
New-Page.
End-of-Page.
Events during List Processing
Top-of-Page.
Triggered by the first write statement in the program
It is used to have a standard header in the program for all the pages.
TOP-OF-PAGE is only executed before outputting the first line on a new page
New-Page.
Can be used when one wants to display different data on different pages
Terminates the current page and continues output on a new page.
Will not trigger the Top-of-Page or End-of-Page.
End-of-Page.
It is used to have a standard footer for all the pages.
Triggered by the program if the number of records exceed the line-count of the program.
Hope u understood....
10-11-2007 12:41 PM
hi Kalyan,
look these:
http://help.sap.com/saphelp_nw04s/helpdata/en/9f/db9a1435c111d1829f0000e829fbfe/frameset.htm
Regards
Allan Cristian
10-11-2007 12:42 PM
Hi Kalayan ,
The event will be triggred in the following order
1. Initilization
2. At selection screen output
3. At Selection Screen
4. Start of selection
Regards
Arun
10-11-2007 12:45 PM
Hi,
cehck teh below thread,,..
http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Reward if helpful.
Regards,
nagaraj
10-11-2007 12:49 PM
Hi
When you run the program, Initialization gets trigerred only once. After this At Selection-screen output gets trigerred.
When you press any button or press enter, At Selection-screen will be trigerred and then again At selection-screen Ouput will be trigerred.
Until you press F8/F9 or click on execute button, after the At selection-screen, output event will be trigerred.
Regards
Navneet.
10-11-2007 12:53 PM
HI,
initialization will be triggered only at the beginning of that program execution.
at selection screen output will be triggered every time before the appearance of that screen.
rgds,
bharat.
10-11-2007 12:55 PM
Hi,
After pressing F3 also first Initialization and then AT selection screen output will trigger. If you have any doubt just place a break point inside the initialization and At selection screen output then you understand the flow.
10-11-2007 1:00 PM
Hi Kalyan..
In the Selection Screen if u press the F3 (Back ) or any other button it will first trigger the event:
AT SELECTION-SCREEN.
reward if Helpful.
10-11-2007 1:01 PM
The different events in a report Program are:
Load-of-program
Triggers the associated event in an internal session after loading a program of type 1, M, F, or S. Also runs the associated processing block once and once only for each program and internal session. The processing block LOAD-OF-PROGRAM has roughly the same function for an ABAP program of type 1, M, F or S as a constructor has for classes in ABAP Objects
Initialization.
This event is executed before the selection screen is displayed .
Initialization of all the values.
You can assign different values other than the values defaulted on the selection screen .
You can fill your selection screen with some values at runtime.
At Selection-Screen.
The event is processed when the selection screen has been processed (at the end of PAI ).
Validation & Checks of inputted values happen here
Extras :
ON VALUE-REQUEST FOR psel_low_high .
The pushbutton for F4 (Possible entries) appears beside the appropriate field.
... ON HELP-REQUEST FOR psel_low_high
. ... OUTPUT
This event is executed at PBO of the selection screen every time the user presses ENTER
Start-of-Selection.
Here the program starts selecting values from tables.
End-of-selection.
After all the data has been selected this event writes the data to the screen.
Interactive Events
Used for interactive reporting. It is used to create a detailed list from a basic list.
Events in an ABAP/4 Report Program
Start-Of-Selection
Processing block is executed after processing the selection screen
All the data is selected in this block.
All the main processing on the data except for interactive reporting is handled in this block.
End-Of-Selection
Data which is selected and has been processed is printed to the screen in this block.
List Processing happens in this block
Top-of-Page.
New-Page.
End-of-Page.
Events during List Processing
Top-of-Page.
Triggered by the first write statement in the program
It is used to have a standard header in the program for all the pages.
TOP-OF-PAGE is only executed before outputting the first line on a new page
New-Page.
Can be used when one wants to display different data on different pages
Terminates the current page and continues output on a new page.
Will not trigger the Top-of-Page or End-of-Page.
End-of-Page.
It is used to have a standard footer for all the pages.
Triggered by the program if the number of records exceed the line-count of the program.
Hope u understood....