05-30-2007 6:29 AM
hi all can u tell me the difference between selection screen output and selection screen on field.
05-30-2007 6:31 AM
Hi,
AT SELECTION-SCREEN OUTPUT is generally used to hide/enable/disable fields using the SCREEN internal table..This is like PBO in dialog programming.
AT SELECTION-SCREEN ON is used to validate one particular field..And if there is any error in the validation..The other fields will be disabled for input..This is like FIELD xxx MODULE xxx in dialog programming..
Thanks,
Naren
05-30-2007 6:31 AM
Hi,
AT SELECTION-SCREEN OUTPUT is generally used to hide/enable/disable fields using the SCREEN internal table..This is like PBO in dialog programming.
AT SELECTION-SCREEN ON is used to validate one particular field..And if there is any error in the validation..The other fields will be disabled for input..This is like FIELD xxx MODULE xxx in dialog programming..
Thanks,
Naren
05-30-2007 6:32 AM
hi suresh,
selection screen output can work for entire selection-screen where as selction-screen on field can work for that particular field.
regards,
seshu.
05-30-2007 6:32 AM
Hi
<b>Selection-screen output : Event used for design time considerations/validations before selection-screen display.
Selection-screen on field/Radiobutton griup : Event used for run time considerations/validations after selection-screen display.</b>
Regards,
Sree
Message was edited by:
sree ram
05-30-2007 6:33 AM
Hi,
selection-screen output will be triggered before the appearance of the selection-screen.
selection-screen on field is for validating a particular field in the selection-screen.
rgds,
bharat.
05-30-2007 6:34 AM
hi,
AT SELECTION-SCREEN OUTPUT is generally used to hide/enable/disable fields using the SCREEN internal table..This is like PBO in dialog programming.it is triggered before the selection screen appears in the output list.
AT SELECTION-SCREEN ON is used to validate one particular field..And if there is any error in the validation..The other fields will be disabled for input..This is like FIELD xxx MODULE xxx in dialog programming.. it is triggered after selection screen is displayed to the user.
if helpful reward some points.
with regards,
suresh babu aluri.
05-30-2007 6:34 AM
hi
at selection-screen output is triggered
a) when the screen is showed first time
b) whenever we press ENTER and the screen is refreshed again
c)whenver any fcode gets fired (radiobutton,checkbox, listbox etc)
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.
05-30-2007 6:34 AM
Hi
Selection-scerrn output is the PBO and selection-screen-on is the PAI of the screen.So before execution if u need to change something you can write it in 'OUTPUT' and if u need to change at the tome of execution if u need to change something write it on 'ON' field..
Reward All Helpfull Answers..........
05-30-2007 6:34 AM
Hi,
check this link...
http://help.sap.com/saphelp_erp2004/helpdata/en/e4/2adbec449911d1949c0000e8353423/frameset.htm
***do rewards if usefull
Regards,
vijay
05-30-2007 6:38 AM
at selection-screen output
event is used to validate screen table fields. it is triggred after selection screen is loaded.
you can get more details on
http://help.sap.com/saphelp_nw2004s/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/frameset.htm
more on these
AT SELECTION-SCREEN event is triggered in the PAI of the selection screen once the ABAP runtime environment has passed all of the input data from the selection screen to the ABAP program. If an error message occurs in this processing block, the selection screen is redisplayed with all of its fields ready for input. This allows you to check input values for consistency.
Example
REPORT demo_at_selection_screen .
NODES spfli.
AT SELECTION-SCREEN.
IF carrid-low IS INITIAL
OR airp_fr-low IS INITIAL
OR airp_to-low IS INITIAL.
MESSAGE e888(sabapdocu) WITH text-001.
ENDIF.
In the PAI event of the selection screen, the event
AT SELECTION-SCREEN ON field
event is triggered. 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.
Example
REPORT event_demo.
NODES spfli.
AT SELECTION-SCREEN ON city_fr.
IF carrid-low EQ 'AA' AND city_fr NE 'NEW YORK'.
MESSAGE e010(hb).
ENDIF.
If the user enters AA in the first input field, but not NEW YORK for the departure city, an error message is displayed in the status line until the user enters the correct city.
regards
sathish
05-30-2007 6:38 AM
Hi,
AT SELECTION-SCREEN OUTPUT is generally used for all the fields in the selection screen,this we use mosly for modifying the screen in the sense converting the input field to an output filed or making a visible field to an invisible field.
AT SELECTION-SCREEN ON is used to validate one particular field. every time u execute ur program , first this validation will be processed and later ur actual code.
i hope u understand what i am saying.