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

Selection Screen

Former Member
0 Likes
688

Hi,

what is the differnce between at Selection Screen on field and at Selection on Screen? I know one difference is for validation of the fields and next is for the total screen.

Otherthan that any difference between those two?

1 ACCEPTED SOLUTION
Read only

RaymondGiuseppi
Active Contributor
0 Likes
670

<b>AT SELECTION-SCREEN. </b>

1. ... ON psel

2. ... ON BLOCK block

3. ... alone

In the first case, only psel parameter is input-enable in case of error, in the second case the whole block defined between SELECTION-SCREEN BEGIN and END OF BLOCK block is input-ready, in the third case all field are ready for input.

So if your checking depend on one field or some fields you choose the good syntax, also the cursor if not explicitly written will go on first input ready field.

Regards

7 REPLIES 7
Read only

Former Member
0 Likes
670

Hi,

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

Regards,

Padmam.

Read only

Former Member
0 Likes
670

Hi Ram,

Apart from that what u mentioned the Difference between at selection-screen and at selection-screen on field.

.i.e At selection-screen on field: If you enter wrong value in this field it will disable the remaing fileds (i.e Not allow to enter intput for remaing fields)

in At selection-screen it still in enable mode .

this is the diff b/w at selection-screen and on field.

if it is helpful plz reward points

Regards

Rambabu.A

Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
670

Hi,

AT SELECTION-SCREEN ON Is similar to FILED MODULE tha we use in PAI section of the flow logic for normal screens.

You can group some fields by using AT SELECTIOn-SCREEN on block.

<b>

When you raise an error message in AT SELECTION-SCREEN on only that field is open for edit.</b>

Regards,

Sesh

Read only

RaymondGiuseppi
Active Contributor
0 Likes
671

<b>AT SELECTION-SCREEN. </b>

1. ... ON psel

2. ... ON BLOCK block

3. ... alone

In the first case, only psel parameter is input-enable in case of error, in the second case the whole block defined between SELECTION-SCREEN BEGIN and END OF BLOCK block is input-ready, in the third case all field are ready for input.

So if your checking depend on one field or some fields you choose the good syntax, also the cursor if not explicitly written will go on first input ready field.

Regards

Read only

Former Member
0 Likes
670

Hi,

<b>At Selection-screen On Field</b> 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 OUTPUT is trigerred in PBO of selection-screen.

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

Please reward helpful points.

Regards,

Ameet

Read only

former_member189059
Active Contributor
0 Likes
670

See if these help

Read only

Former Member
0 Likes
670

Hi,

At selection screen and At selection screen output :

At selection-screen event will trigger when you want to validate selection-screen fields.

By using this event - you will get F4 Value,F1 Help and Screen field validation like whether data is available or not when user enters in field

At selection-screen output-it is dynamic validation.

if you want to keep field as Password,or disable,intensified.

we use Screen internal table and it has 16 fields.

Refer

http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/at_selec.htm

Regards