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

reg : EVENTS ?

Former Member
0 Likes
835

what is the diffrence between

At Selection-Screen

and At Selection-Screen output ?

what is the diffrence between

At Selection-Screen

and At Selection-Screen output ?

6 REPLIES 6
Read only

Former Member
0 Likes
815

Hi,

At-Selection screen output

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

At-Selection screen

This is PAI--Process after Input...

for more details chk this:

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

Regards,

madhu

Read only

Former Member
0 Likes
815

At Selection-screen output will trigger before the selection-screen, which is used to validate(Eg:visible/invisible/inactive etc.) the screen fields.

At selection-screen is used to validate the fields/do action after the selection-screen displays.

Read only

Former Member
0 Likes
815

At Selection-Screen is triggered when the user hits enter or execute from the selection screen whilst at selection-screen output is triggered before the screen is displayed.

Gareth.

Read only

rahulkavuri
Active Contributor
0 Likes
815

AT SELECTION-SCREEN

When user enters the values in the fields of selection screen and clicks on execute button, this event gets triggered. This event is basically for checking the values entered by the user for the fields of the selection screen i.e., data validity checking. This event is for entire selection screen. For example:

You are accepting carrid, connid, fldate from user and you don’t want to proceed if user enters no value for carrid and fldate. Using AT SELECTION-SCREEN can do this.

Select-options: carrid1 for sflight-carrid,

Connid1 for sflight-connid,

F1date1 for sflight-f1date.

AT SELECTION-SCREEN.

If carrid1-low ne ‘ ’ and fldate1-low = ‘ ’.

Error message.

Endif.

In this case, if both the fields are entered blank, then the user gets error message.

Basically, this event is for many fields on selection screen. Usually, it is for the fields which are logically related.

About AT SELECTION-SCREEN OUTPUT check this link

https://forums.sdn.sap.com/click.jspa?searchID=1279876&messageID=2829609

dont forget to award points if found helpful

Read only

Former Member
0 Likes
815

hi,

check this help...

AT SELECTION-SCREEN.

The AT SELECTION-SCREEN event is triggered in the PAI of the selection screen once the ABAP runtime environment has passed all of the input data from the selection screen to the ABAP program. If an error message occurs in this processing block, the selection screen is redisplayed with all of its fields ready for input. This allows you to check input values for consistency.

AT SELECTION-SCREEN OUTPUT...

This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.

do reward if it helps,

priya.

Read only

Former Member
0 Likes
815

Hi,

AT SELECTION-SCREEN OUTPUT

This event occurs before the standard selection screen is called. You can use it, for example, to initialize the input fields of the standard selection screen. This is the only possible way to change the default values of parameters or selection criteria defined in logical databases. To change a selection criterion, you must fill at least the components <seltab>-SIGN,

<seltab>-OPTION, and <seltab>-LOW of the selection table <seltab>, otherwise it remains undefined.

AT SELECTION-SCREEN

The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.

The standard selection screen in an executable program or in the logical database linked to it is automatically called between the INITIALIZATION and START-OF-SELECTION events. When you call the selection screen, and when users interact with it, the ABAP runtime environment generates selection screen events, which occur between INITIALIZATION and START-OF-SELECTION.

You can define event blocks for these events in your program to change the selection screen or process user input.

Regards,

Sruthi