2006 Aug 09 12:02 PM
what is the difference between AT SELECTION-SCREEN AND AT SELECTION-SCREEN OUTPUT events
what is the difference between AT SELECTION-SCREEN AND AT SELECTION-SCREEN OUTPUT events
2006 Aug 09 12:03 PM
SUDHARSAN
Welcome to SDN !!!
AT SELECTION-SCREEN OUTPUT --> PBO of Selection Screen.
AT SELECTION-SCREEN --> (equivalent to) PAI of Selection Screen.
In this case, if there is any invalid entry in the Selection Screen, then the Selection Screen is Displayed again to correct the incorrect entry field.
I hope you understand the PBO(called before Displaying the Selection screen) and PAI(called after displaying the Selection screen).
Thanks
Jack
<b>Allot points if my post helps!!!</b>
2006 Aug 09 12:04 PM
hi,
AT SELECTION-SCREEN OUTPUT 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. So, it is called in PBO just before the output.
And AT SELECTION-SCREEN is triggered at least twice during actions on selection screens that are linked into another selection screen as a subscreen - first for the linked selection screen itself, and then for the linking selection screens. And this is called in PAI
Regards,
Richa
2006 Aug 09 12:04 PM
Hi,
AT SELECTION-SCREEN is a general event for selection screen.
AT SELECTION-SCREEN OUTPUT is particularly for changing the attributes of selection screen dynamically.
regards.
santosh.
2006 Aug 09 12:05 PM
at selection-screen : triggers when there is a user action on the selection screen.
at selection-screen output: This part will trigger to process anything just before the actual output to the screen.
regards,
ravi
2006 Aug 09 12:06 PM
HI,
<b>AT SELECTION-SCREEN</b>
This event only makes sense in reports, i.e. in programs set to type 1 in the attributes. Type 1 programs are started via a logical database and always have a selection screen where the user can specify the database selections.
The event is processed when the selection screen has been processed (at the end of PAI).
If an error message (MESSAGE Emnr) is sent during the event, all fields on the selection screen become ready for input.
After further user input, AT SELECTION-SCREEN is executed again.
<b>AT SELECTION-SCREEN OUTPUT.</b>
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.
Here, however, you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields.
Regards,
HRA
| User | Count |
|---|---|
| 3 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |