‎2007 Jul 11 10:36 AM
what is the exact purpose of at selection-screen output,when will it trigger,what will it do
‎2007 Jul 11 11:07 AM
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!
‎2007 Jul 11 12:55 PM
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
‎2007 Jul 11 12:57 PM
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
‎2007 Jul 11 12:59 PM
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