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

about AT Selection-screen

former_member577909
Participant
0 Likes
576
    • When does we use AT SELECTION-SCREEN .... OUTPUT option is used.,

and also please explain what are other options are generally used.

Thankyou for your time in giving the answers.

Bhaskar.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
548

AT SELECTION-SCREEN OUTPUT event is PBO event in Reports ( Type 1)

Before the selction screen dislpyed to the user, it gets executed, no of times selection screen is displayed, the same number of times this block gets executed.

Screen modifications can be done under this event by using SCREEN structure.

Hope this may be useful.

Regards,

Sujatha.

5 REPLIES 5
Read only

seshatalpasai_madala
Product and Topic Expert
Product and Topic Expert
0 Likes
548

Hi,

AT SELECTION-SCREEN .... OUTPUT is the event corresponding to PBO of your dynpor's. Here you can initialize the values to your screen fields also you can use LOOP AT SCREEN to change the attributes of screen fields liek hiding the screen field etc.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD1'.

SCREEN-INVISIBLE = '1'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

AT SELECTION SCREEN OUTPUT is PBO and AT SELECTION SCREEN is PAI.

you can also use AT SELECTION SCREEN ON for specific fields which is similar to FIELD MODULE in your flow logic of normal dynpros.

Regards,

Sesh

Read only

Former Member
0 Likes
549

AT SELECTION-SCREEN OUTPUT event is PBO event in Reports ( Type 1)

Before the selction screen dislpyed to the user, it gets executed, no of times selection screen is displayed, the same number of times this block gets executed.

Screen modifications can be done under this event by using SCREEN structure.

Hope this may be useful.

Regards,

Sujatha.

Read only

Former Member
0 Likes
548

it is used when u want to change ur selectiion screeen parameters dynamically depending upon the one or two parametrs at ur selection screen..

like u can say if one checkbox is selected then a input field shud appera on screen and when it is unchecked that field shud also be invisible..

demo code -

TABLES : SSCRFIELDS,mara.

SELECTION-SCREEN BEGIN OF BLOCK B1 WITH FRAME TITLE TEXT-001.

SELECT-OPTIONS : S_MATNR FOR MARA-MATNR.

PARAMETERS : R1 RADIOBUTTON GROUP RB1 DEFAULT 'X',

R2 RADIOBUTTON GROUP RB1,

R3 RADIOBUTTON GROUP RB1,

R4 RADIOBUTTON GROUP RB1.

SELECTION-SCREEN PUSHBUTTON /10(20) FRST USER-COMMAND FRST.

SELECTION-SCREEN PUSHBUTTON /10(20) SCND USER-COMMAND SCND.

SELECTION-SCREEN END OF BLOCK B1.

DATA : ACTIVE1 VALUE '1',

ACTIVE2 VALUE '1'.

initialization.

move 'frst' to frst.

move 'scnd' to scnd.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'R1' OR SCREEN-NAME = 'R2' .

SCREEN-INVISIBLE = ACTIVE1.

MODIFY SCREEN.

ENDIF.

IF SCREEN-NAME = 'R3' OR SCREEN-NAME = 'R4' .

SCREEN-INVISIBLE = ACTIVE2.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

AT SELECTION-SCREEN.

CASE SSCRFIELDS-UCOMM.

WHEN 'FRST'.

ACTIVE1 = '0'.

ACTIVE2 = '1'.

WHEN 'SCND'.

ACTIVE2 = '0'.

ACTIVE1 = '1'.

ENDCASE.

Read only

jayanthi_jayaraman
Active Contributor
0 Likes
548

Hi,

AT SELECTION-SCREEN is used as PAI and AT SELECTION-SCREEN OUTPUT is used as PBO.

Check this link.

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

Read only

Former Member
0 Likes
548

hi

these are the options

AT SELECTION-SCREEN.

Extras:

1. ... ON psel

2. ... ON END OF sel

3. ... ON VALUE-REQUEST FOR psel_low_high

4. ... ON HELP-REQUEST FOR psel_low_high

5. ... ON RADIOBUTTON GROUP radi

6. ... ON BLOCK block

7. ... OUTPUT

at selection-screen output is the PBO of selection screen .

i.e. it will trigger before showing the selection-screen.

and others are PAI i.e after user interaction for the perticular things.

regards

shiba dutta