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

At selection-screen

Former Member
0 Likes
841

Hi to all Experts,

How many At selection-screen Events? and wt is the difference b/n At selection-screen output and At selection-screen on field? And which triggers first? What is the reason?

Plz explain in detail about selection-screen events.

Thanks in advance,

Swathi

7 REPLIES 7
Read only

Former Member
0 Likes
728

Hi

See the events and their order of sequence

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN ON VALUE-REQUEST.

AT SELECTION-SCREEN ON FIELD or ON BLOCK.

AT SELECTION-SCREEN.

Regards

Anji

Read only

Former Member
0 Likes
728

At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.

At selection-screen / <field>: before leaving the selection screen.

We can initialize the selection-screen with calculated default values under this event.

Initialization.

s_date-high = sy-datum.

s_date-low = sy-datum - 15.

Append s_date.

We can validate all the inputs on selection screen fields under this event.

At selection-screen.

If s_carrid-low is initial or

s_connid-low is initial or

s_date is initial.

< ... code for validation... >.

Endif.

We can validate a particular field input on selection screen under this event.

At selection-screen on s_carrid.

If s_carrid-low < > ‘LH’.

<… code for validation…>

Endif.

Sri

Read only

varma_narayana
Active Contributor
0 Likes
728

Hi Swathi..

AT SELECTION-SCREEN OUTPUT.

This event is triggered before displaying the selection Screen. (PBO)

So we can use this event to modify the attributes of fields dynamically.

AT SELECTION-SCREEN .

or

AT SELECTION-SCREEN on <field>.

It is triggered before leaving the Selection Screen.

We can perform the validations in this event.

<b>REWARD IF HELPFUL.</b>

Read only

Former Member
0 Likes
728

Hi,

Order in which AT_SELECTION screen events are triggered are as follows.

1)AT SELECTION-SCREEN OUTPUT

2)AT SELECTION-SCREEN VALUE REQUEST

3)AT SELECTION-SCREEN ON field

at last AT SELECTION-SCREEN

Regards,

Raghavendra

Read only

paruchuri_nagesh
Active Contributor
0 Likes
728

hi swati

sequence

AT SELECTION-SCREEN OUTPUT.

AT SELECTION-SCREEN ON VALUE-REQUEST.

AT SELECTION-SCREEN ON FIELD or ON BLOCK.

AT SELECTION-SCREEN.

the main difference betwen at selection screen output and at selection screen on field is

atselection screen output is expensive comparitavly at selection screen on field

in output validate the whole screen

but not in the case of on field

its validate only particular field

reward if u find useful

regards

Nagesh.Paruchuri

Read only

Former Member
0 Likes
728

Hi

with this link you will get complete idea about the at selection screen events

http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm

<b>AT selection0-screen on filed</b>

This events will be triggered if you do some action on perticular field mentioned in the field option

<b>at selection-screen output</b>

when ever you do any action on the screen then this event wuill trigger

if you click on the field mentioned in the field option then at selection-screen on field will trigger 1st

if you press any button or enter button then at selection-screen output will trigger

<b>Reward if usefull</b>

Read only

mahaboob_pathan
Contributor
0 Likes
728

HI,

There are allmost 11 types of AT SELECTION SCREENS are there.

At selection-screen output : triggered when the selection screen is loaded in memory before being displayed.

At selection-screen / <field>: before leaving the selection screen