Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

selection-screen

Former Member
0 Likes
904

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
883

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

9 REPLIES 9
Read only

Former Member
0 Likes
883

Hi,

At selection screen you can validate the field values only,

please go through the key word documentaion

Regards

ramchander Rao.K

Read only

Former Member
0 Likes
883

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.

Read only

Former Member
0 Likes
883

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

Read only

Former Member
0 Likes
883

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

Read only

Former Member
0 Likes
883

Hi Shweta,

AT SELECTION-SCREEN will not work because there is no selection screen.

Thanks

Ankur Sharma

Read only

Former Member
0 Likes
884

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

Read only

0 Likes
883

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

Read only

Former Member
0 Likes
883

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.

Read only

Former Member
0 Likes
883

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