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

sel

Former Member
0 Likes
904

what is the exact purpose of at selection-screen output,when will it trigger,what will it do

4 REPLIES 4
Read only

Former Member
0 Likes
766

Hi,

AT SELECTION-SCREEN OUTPUT

event is triggered. This event block allows you to modify the selection screen and its fields directly before it is displayed.

Initializations of selections screen fields at this moment always take effect, whereas at the execution of an executable program, initializations at moment INITIALIZATION only take effect at the first program start, and are otherwise overwritten by the previous user inputs at the beginning of AT SELECTION-SCREEN OUTPUT.

REPORT demo_at_selection_screen_pbo.

PARAMETERS: test1(10) TYPE c MODIF ID sc1,

test2(10) TYPE c MODIF ID sc2,

test3(10) TYPE c MODIF ID sc1,

test4(10) TYPE c MODIF ID sc2.

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF screen-group1 = 'SC1'.

screen-intensified = '1'.

MODIFY SCREEN.

CONTINUE.

ENDIF.

IF screen-group1 = 'SC2'.

screen-intensified = '0'.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Reward if useful!

Read only

Former Member
0 Likes
766

Hi,

<b>At selection-screen output</b> : triggered when the selection screen is loaded in memory before being displayedi.e. it is trigerred in PBO of selection-screen.

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

Hope this helps.

Reward if helpful.

Regards,

Sipra

Read only

Former Member
0 Likes
766

Hi,

Generally, if we wnat to modify the selection-screen layout, then we use AT SELECTION-SCREEN OUTPUT statement.

e.g. if u have 4 fields on your selection screen and I want to make 1 field of them as non-editable with a default value of '10'.

then I will write the code as :

AT SELECTION-SCREEN OUTPUT.

LOOP AT SCREEN.

IF SCREEN-NAME = 'FIELD1'.

SCREEN-INPUT = 0.

SCREEN-OUTPUT = 1.

MODIFY SCREEN.

ENDIF.

ENDLOOP.

Not only this u can hide a field, make a field mandatory and do many more things with the fields on the selection-screen using the AT SELECTION-SCREEN OUTPUT event. This event actually is a PBO event for Selection screen.

Reward points if useful

Regards

Ashu

Read only

Former Member
0 Likes
766

Hi sandeep

Mostly selection screen will use for Report purpose.

Exact purpose means, we can select single data or purticular data or Range of datas.(Ex 10 to 100).

if its useful reward points

Thanks

senthil