‎2007 Apr 19 12:48 PM
hi frnds
in one interview i faced this question.
1. What is the diff b/n At selection-screen and At selection-screen output.
i said something but the inerviewr hasnot statisfied with my answer.
if anybody knows exact diff please let me know .
with regds
Sirisha.
‎2007 Apr 19 12:52 PM
hi,
<b> At selection-screen output </b> is used to make any screen modifications.
It is triggered everytime the screen gets displayed.
<b>At selection-screen</b> is used for making validations.
This gets triggered when some action is done on the screen.
check these threads in case of more info
Regards
Sailaja.
‎2007 Apr 19 12:52 PM
hi,
<b> At selection-screen output </b> is used to make any screen modifications.
It is triggered everytime the screen gets displayed.
<b>At selection-screen</b> is used for making validations.
This gets triggered when some action is done on the screen.
check these threads in case of more info
Regards
Sailaja.
‎2007 Apr 19 12:54 PM
Hi,
At selection-screen is the event in which we validate the selection screen fields
AT selection-screen Output means:
This event is triggered at the screen event PBO of a selection screen. In the event block, the selection screen can be prepared through assignments to the data objects of parameters and selection criteria and through dynamic screen modifications.
The assignments to input fields in the event block AT SELECTION-SCREEN OUTPUT always affect the selection screen and overwrite the user inputs from previous displays of the same selection screen. Assignments in the event blocks LOAD-OF-PROGRAM oder INITIALIZATION, on the other hand, only have an effect at first program start.
reward if useful
regards,
Anji
‎2007 Apr 19 12:57 PM
<b>at selection screen means</b>
The 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.
<b>examples:</b>
<b>AT SELECTION-SCREEN.</b>
IF CARRID-LOW IS INITIAL
OR CITY_FR IS INITIAL
OR CITY_TO IS INITIAL.
MESSAGE E000(HB).
ENDIF.
-
<b>at select screen output means</b>
This event block allows you to modify the selection screen directly before it is displayed..
<b>Example</b>:
PARAMETERS: TEST1(10) MODIF ID SC1,
TEST2(10) MODIF ID SC2,
TEST3(10) MODIF ID SC1,
TEST4(10) MODIF ID SC2.
<b>AT SELECTION-SCREEN OUTPUT.</b>
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 it helps u
Vijay Pawar
‎2007 Apr 19 12:58 PM
Hi,
At selection screen triggers when there is a need for any validation for your screen parameters..
you can give At selection-screen on <parameter>..
At selection-screen output is to modify the screen..
see if you want to disable a paramenter depending on the radio button click.. you have to write your code in AT selection-screen output.
reward if useful
regards,
nazeer.
‎2007 Apr 19 12:59 PM
Hi
In at selection screen we will do validations to the selection screen data. Where as in at selection-screen output we will do modifications to the screen data.
Ex. for at selection screen:
if suppose in selection screen you have select options for vendor number, then in at selection screen we can check whether the value of the vendor number is initial or not, if it is initial then display error message.
Eg. for at selection screen output.
If suppose we have taken some radiobuttons then we want to perform a logic like when one radiobutton is clicked the other radiobuttons should get disabled, then we can write all these things in at selection screen output.
I hope i am clear
Regards
Haritha.