‎2007 Jun 28 12:48 PM
AT SELECTION SCREEN OUTPUT
AT SELECTION-SCREEN ON VALUE-REQUEST
AT SELECTION-SCREEN ON HELP-REQUEST
AT SELECTION-SCREEN ON
AT SELECTION-SCREEN ON BLOCK
AT SELECTION-SCREEN ON RADIOBUTTON GROUP
can any one explain these events in detail and when they will trigger .Its urgent please
‎2007 Jun 28 12:50 PM
Hi,
EVENTS in ABAP Report
These are the Events(In order of execution) in ABAP Report
1.INITIALIZATION
2.AT SELECTION SCREEN OUTPUT
3.AT SELECTION-SCREEN ON VALUE-REQUEST
4.AT SELECTION-SCREEN ON HELP-REQUEST
5.AT SELECTION-SCREEN ON
6.AT SELECTION-SCREEN ON BLOCK
7.AT SELECTION-SCREEN ON RADIOBUTTON GROUP
8.AT SELECTION-SCREEN
Selection screen processing starts after the INITIALIZATION event with AT SELECTION SCREEN OUTPUT. The selection screen is then sent to the screen. User actions on the selection screen result in other events that are either used for field or possible entries help, or that trigger PAI processing of the selection screen. During PAI processing, error messages in the relevant event blocks allow users to return to the selection screen. Only if the AT SELECTION-SCREEN event is exited properly, that is not through an error message, are the other events of the executable program triggered, starting with START-OF-SELECTION.
<b>INITIALIZATION</b>
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.
In the PBO of the selection screen, the
<b>AT SELECTION-SCREEN OUTPUT</b>
event is triggered. This event block allows you to modify the selection screen directly before it is displayed.
<b>AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field></b>
The event is triggered when the user calls the F4 help for the field <field>. If no corresponding event block has been defined, the possible values help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default possible values help mechanism. It is then up to the programmer to ensure that an appropriate list of values is displayed, and that the user can choose a value from it.
You cannot declare the event block AT SELECTION-SCREEN ON VALUE-REQUEST for input fields on the selection screen that are declared within a logical database. You cannot override the possible values help mechanism of a logical database within the program. You can define separate help within the logical database program using the VALUE-REQUEST option in the PARAMETERS and SELECT-OPTIONS statements.
<b>AT SELECTION-SCREEN ON HELP-REQUEST FOR <field></b>
The event is triggered when the user calls the F1 help for the field <field>. If no corresponding event block has been defined, the help from the ABAP Dictionary is displayed, or none at all if the field has no Dictionary reference. If a corresponding event block exists, it takes precedence over the default help mechanism. It is then up to the programmer to ensure that appropriate help is displayed.
You cannot declare the event block AT SELECTION-SCREEN ON HELP-REQUEST for input fields on the selection screen that are declared within a logical database. You cannot override the help mechanism of a logical database within the program. You can define separate help within the logical database program using the HELP-REQUEST option in the PARAMETERS and SELECT-OPTIONS statements.
<b>AT SELECTION-SCREEN ON <field></b>
In the PAI event of the selection screen, the event
is triggered when the contents of each individual input field are passed from the selection screen to the ABAP program. The input field <field> can be checked in the corresponding event block. If an error message occurs within this event block, the corresponding field is made ready for input again on the selection screen.
<b>AT SELECTION-SCREEN ON BLOCK <block></b>
In the PAI event of the selection screen, the event
is triggered when the contents of all of the fields in a block are passed from the selection screen to the ABAP program. You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK <block> and SELECTION-SCREEN END OF BLOCK <block>. You can use this event block to check the consistency of the input fields in the block. If an error message occurs within this event block, the fields in the block are made ready for input again on the selection screen.
<b>AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi></b>
In the PAI event of the selection screen, the event
is triggered when the contents of all of the fields in a radio button group are passed from the selection screen to the ABAP program. To define a radio button group <radi>, use the addition RADIOBUTTON GROUP <radi> in the corresponding PARAMETERS statements. This event block allows you to check the whole group. If an error message occurs within this event block, the radio button group is made ready for input again on the selection screen. The individual fields of radio button groups do not trigger the event AT SELECTION-SCREEN ON <field>.
<b>AT SELECTION-SCREEN</b> 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.
Regards,
Ranjit Thakur.
<b>Please Mark The Helpful Answer.</b>
‎2007 Jun 28 12:52 PM
AT SELECTION SCREEN OUTPUT is the PBO event of your selection screen
AT SELECTION-SCREEN ON VALUE-REQUEST triggers when on your selection screen someone hits F4.
AT SELECTION-SCREEN ON HELP-REQUEST triggers when someone hits F1 on your selection screen.
‎2007 Jun 28 12:53 PM
Hi,
Plz go through the below link.
http://help.sap.com/saphelp_nw04/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm
Regards,
Nagaraj
‎2007 Jun 28 12:54 PM
hi,
AT SELECTION-SCREEN selscreen_event.
Effect
This statement defines event blocks for different events selscreen_event that are triggered by the ABAP runtime environment during selection screen processing.
Selection screen events occur immediately before sending a selection screen and after certain user actions on a displayed selection screen. They assist in selection screen processing in the ABAP program.
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.
value request event ll b triggered when u press f4 in selection screen.
help request ll b triggered when u press f1.
radio button group ll b used to create radio button group in selection screen...
Regards,
viji.
‎2007 Jun 28 12:57 PM
Hi
AT SELECTION SCREEN OUTPUT : This is the PBO event in selection screen.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.
AT SELECTION-SCREEN ON VALUE-REQUEST: To assign F4 help to a field.
AT SELECTION-SCREEN ON HELP-REQUEST: To assign F1 help to a field.
The two events ON HELP-REQUEST and ON VALUE-REQUEST are triggered at the screen events POH and POV of a selection screen if - for the input field of a parameter para or one of the input fields of a selection criterion selcrit - the field help F1 or the input help F4 was called. Other selection events are not triggered.
In the event blocks, a self-defined field or input field can be programmed, which overrides any helps possibly defined in the ABAP Dictionary.
Notes
These event blocks can only be implemented for fields of the selection screen that are defined in the same ABAP program and not in a possibly linked logical database.
With the events for the field and input help, no data is transported between the selection screen and the ABAP program. As with general screens, suitable function modules must be used for these. The parameters and selection criteria changed for the input help are transported to the selection screen.
AT SELECTION-SCREEN ON BLOCK
This event is triggered at the screen event PAI of a selection screen if all the input fields of a block block of the selection screen were passed to the ABAP program. In the event block, the user inputs can be checked. Sending a warning or an error message in the event block makes all the fields of the block block ready for input again
AT SELECTION-SCREEN ON RADIOBUTTON GROUP
This event is triggered at the screen event PAI of a selection screen if all the fields of a radio button group radi of the selection screen were passed to the ABAP program. In the event block, the user input can be checked. Sending a warning or error message in the event block makes all the radion buttons of the block radi ready for input again.
Hope this helps to solve ur problem....
<b>do reward if useful....</b>
regards
dinesh