‎2008 Nov 27 6:19 AM
initialization.
write /'a'.
at selection-screen.
write /'b'.
start-of-selection.
write /'c'.
top-of-page.
write /'d'.
output of this is :
d
a
c
why at selection-screen is not executed here and when it is trigerred?
Edited by: shweta gupta on Nov 27, 2008 7:19 AM
‎2008 Nov 27 7:10 AM
Since their are no entries in selection screen ,I meen you have nto used parameter or select-option to creation selection screen that`s why no defualt selection screen is generated for this program.
You have to use Select-option or parameter to defien the selection-screen.
Regards
Neha
‎2008 Nov 27 6:21 AM
Hi,
At selection screen you can validate the field values only,
please go through the key word documentaion
Regards
ramchander Rao.K
‎2008 Nov 27 6:22 AM
Hi,
At selection screen is getting executed....try to see the program execution in debbuging mode...you will find the value B is getting overwritten.
‎2008 Nov 27 6:23 AM
Hi shweta,
At selection screen is an input event. when this event is triggerd an input screen is displayed where we give input values based on which we select the required values from internal tables in start-of-selection event.
Thanks
Rajesh Kumar
‎2008 Nov 27 6:23 AM
Hi
When you do any operation in selection screen then only this will work.
AT SELECTION-SCREEN event occur while the selection screen is being processed.
Thanks
Suganya
‎2008 Nov 27 6:58 AM
Hi Shweta,
AT SELECTION-SCREEN will not work because there is no selection screen.
Thanks
Ankur Sharma
‎2008 Nov 27 7:10 AM
Since their are no entries in selection screen ,I meen you have nto used parameter or select-option to creation selection screen that`s why no defualt selection screen is generated for this program.
You have to use Select-option or parameter to defien the selection-screen.
Regards
Neha
‎2008 Nov 27 10:40 AM
than why initialization block is executed here.if you are not creating any selection screen using select-options n all
Edited by: shweta gupta on Nov 27, 2008 11:42 AM
‎2008 Nov 27 7:22 AM
Hi Shweta,
the execution is like... First its initialization and when it gets a WRITE statement in it your TOP-OF-PAGE is triggered. after that START-OF-SELECTION, as there is no parameter or select-option thats why your At-selection screen is not executed. And if you mention your selection-screen than INITIALIZATION will be suppresed by it.
try to debug your program with break point at INITIALIZATION event, you will get a clear idea.
With luck,
Pritam.
‎2008 Nov 27 10:46 AM
Hi Shweta,
See all these events are triggered in a sequence. When you execute this program. First it is checked if initialization block is containing a write satement or not. If it is there it triggers Top-Of-Page event.
Then only after executing Top-Of-Page block it executes write statement of initialization block.
Hope you understand.
Thanks
Nitesh