2007 Jul 12 12:08 PM
Hi all
In my pgm im using at selection-screen & at selection-screen-output.but i never used at selection-screen on. let me knw how can i use at selection-screen on with example and give me the difference between at selection-screen, at selection-screen output, at selection-screen on.. please help me..
regards
abhi
2007 Jul 12 12:11 PM
Hi Abhi,
The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.
AT SELECTION-SCREEN OUTPUT
event is triggered. This event block allows you to modify the selection screen directly before it is displayed.
AT SELECTION-SCREEN ON <field>
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.
AT SELECTION-SCREEN ON BLOCK <block>
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>.
AT SELECTION-SCREEN ON <seltab>
event is triggered for the current line of the selection table. It can then be processed like a single field.
Next, the
AT SELECTION-SCREEN ON END OF <seltab>
event is triggered. This event block allows you to check the whole selection table <seltab>. Warning messages are displayed as dialog boxes, not in the status line.
AT SELECTION-SCREEN ON HELP-REQUEST FOR <field>
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.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi>
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
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
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.
follow this link for more information on AT SELECTION-SCREEN.
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm
Thanks,
Reward If Helpful.
Hi all
In my pgm im using at selection-screen & at selection-screen-output.but i never used at selection-screen on. let me knw how can i use at selection-screen on with example and give me the difference between at selection-screen, at selection-screen output, at selection-screen on.. please help me..
regards
abhi
2007 Jul 12 12:11 PM
Hi Abhi,
The event AT SELECTION-SCREEN is the basic form of a whole series of events that occur while the selection screen is being processed.
AT SELECTION-SCREEN OUTPUT
event is triggered. This event block allows you to modify the selection screen directly before it is displayed.
AT SELECTION-SCREEN ON <field>
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.
AT SELECTION-SCREEN ON BLOCK <block>
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>.
AT SELECTION-SCREEN ON <seltab>
event is triggered for the current line of the selection table. It can then be processed like a single field.
Next, the
AT SELECTION-SCREEN ON END OF <seltab>
event is triggered. This event block allows you to check the whole selection table <seltab>. Warning messages are displayed as dialog boxes, not in the status line.
AT SELECTION-SCREEN ON HELP-REQUEST FOR <field>
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.
AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi>
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
AT SELECTION-SCREEN ON VALUE-REQUEST FOR <field>
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.
follow this link for more information on AT SELECTION-SCREEN.
http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm
Thanks,
Reward If Helpful.
2007 Jul 12 12:11 PM
Hi,
It is used to validate the particular field on selection screen once data is entered in selection screen.
parameters p_matnr type mara-matnr.
at selection-screen on p_matnr.
if p_matnr is initial.
message e000(zz) with 'Enter Pernr'.
leave list-processing.
endif.
2007 Jul 12 12:12 PM
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.
2007 Jul 12 12:16 PM
<b>order of execution</b>
AT selection-screen output.
At selection-screen on <field>.
at selection-screen on value-request for <field>.
At selection-screen.
| User | Count |
|---|---|
| 4 | |
| 2 | |
| 2 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 | |
| 1 |