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
515

Types of At SELECTION-SCREEN events?explain?

4 REPLIES 4
Read only

Former Member
0 Likes
492

1. at selection-screen on field

2. at selection-screen output

3. at selection-screen block

4. at selection-screen on value-request

5. at selection-screen on help-request and their difference?

For knowing Selection-screens:

First you must have right understanding of Events.

- Events are introduced by Event Keyword. They end when again next processs begins.

Selection-screens are special screen defined in ABAP.

- This ABAP at run time only controls the flow logic of Selection-screens. The PBO and PAI triggers the num of. selection-screens.

The basic form of the selection screen events is the AT SELECTION-SCREEN event. This event occurs after the runtime environment has passed all input data from the selection screen to the ABAP program. The other selection screen events allow programmers to modify the selection screen before it is sent and specifically check user input.

At Selection-screen OUTPUT is trigerred in PBO of selection-screen.

- This allows you to modify the Selection-screen, before it is displayed.

At Selection-screen On Field is triggered in PAI of selection-screens.

- The input fields can b 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 is trigerred in PAI event.

- You define a block by enclosing the declarations of the elements in the block between the statements SELECTION-SCREEN BEGIN OF BLOCK block - END OF BLOCK block. You can use this event block to check the consistency of the input fields in the block.

At Selection-screen On value request.

- This event is trigerred for F4 help.

At Selection-screen On help request .

- This event is triggered when the user clicks F1 for help on fileds.

Reward me if its useful.

Regards

Ravi

Read only

suresh_datti
Active Contributor
0 Likes
492

<a href="https://forums.sdn.sap.com/search!default.jspa?objID=f50">Answer</a>.

~Suresh

Read only

Former Member
0 Likes
492

Hi,

There three important types are there ...

AT SELECTION-SCREEN - To validate selection screen variables

AT SELECTION-SCREEN ON FIELD - field specific validations, it will execute before AT SELECTION-SCREEN

AT SELECTION-SCREEN OUTPUT - This is for dynamic screen changes

For more information - http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/frameset.htm

regards

  • Dj

reward for all useful answers.

Read only

Former Member
0 Likes
492

hi Ramnarayana,

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

<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 <field></b>

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>

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>.

<b>AT SELECTION-SCREEN ON <seltab></b>

event is triggered for the current line of the selection table. It can then be processed like a single field.

Next, the

<b>AT SELECTION-SCREEN ON END OF <seltab></b>

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.

<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.

<b>AT SELECTION-SCREEN ON RADIOBUTTON GROUP <radi></b>

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

<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.

<b>follow this link for more information on AT SELECTION-SCREEN.</b>

http://help.sap.com/saphelp_nw2004s/helpdata/en/79/34a234d9b511d1950e0000e8353423/content.htm

regards,

Ashokreddy