Application Development 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: 

PROBLEM IN INITILOZATIN

Former Member
0 Kudos

1. what is difference between initilization and AT SELECTION SCREEN OUTPUT

7 REPLIES 7

Former Member
0 Kudos

INITIALIZATION ---> this event will run only once for one program

AT SELECTION SCREEN OUTPUT --> this event will run whenever any changes are made toi selection screen

so whenever there is one time initialization of any varible this is done in initialization

Former Member
0 Kudos

Hi Ahmed,

In initialization event the fields are initialized one time. This is a one time event.

At slection screen output the initialization is done for every call.

Say, if we have 3 tabs in the selction screen the at selection-screen output is triggered when each tab is pressed whereas the initialization is trigegred only once

Regards,

Vidya

Former Member
0 Kudos

Hi,

the INITIALIZATION Event is fired before the AT-SELECTION SCREEN OUTPUT and after the LOAD-OF-PROGRAM Event.The AT-SELECTION SCREEN OUTPUT is basically the PBO of the Selection Screen(By Default 1000),so u can Enable/Disable/Hide,etc the fields in this event.

INITIALIZATION will be basically used to provide any default values for the fields.

Regards,

Samson

Former Member
0 Kudos

hi.....

The initializtion event is triggered in executable programs before the selection screen is displayed.

At selection-screen output is processed in each PBO of the selection screen (unlikeINITIALIZATION, which is processed only once).

Former Member
0 Kudos

hi,

The initialization event is <b>one time activity</b>. The fields and variables that needs to be initialized only once are initialized in this event.

At slection screen event is called at <b>everytime on each activity on the screen</b>.This activity can be anything like <b>enter key, clicking on some button, selecting some radiobutton or checking some checkbox.</b> In each Process before Output this event is called.

Regards,

Richa

Former Member
0 Kudos

Hi,

<b>Initialization:</b>

the associated event is executed before the selection screen is displayed.

The parameters and selection criteria (SELECT-OPTIONS) defined in the program already contain default values (if specified). You can assign different values here and also change the database-specific selections.

<b> AT SELECTION SCREEN OUTPUT</b>

This event is executed at PBO of the selection screen every time the user presses ENTER - in contrast to INITIALIZATION. Therefore, this event is not suitable for setting selection screen default values. Also, since AT SELECTION-SCREEN OUTPUT is first executed after the variant is imported (if a variant is used) and after adopting any values specified under SUBMIT in the WITH clause, changing the report parameters or the selection options in AT SELECTION-SCREEN OUTPUT would destroy the specified values.

Here, however, you can use LOOP AT SCREEN or MODIFY SCREEN to change the input/output attributes of selection screen fields.

<b>In simple,</b>

the code written under Initialization is executed before displaying the screen itself (before giving the input)

and the second one is done after the input is given and before the output is displayed

Former Member
0 Kudos

initilization will be called once(when execution starts)

at selection-screen output->when ever screen hits by enter/trigerring any button etc..

regards

srikanth