‎2007 Feb 02 4:22 PM
What is difference between INITIALIZATION,SELECT-OPTIONS with default values?
how to come back to first basic list from 20 th secondary list directrly?
‎2007 Feb 02 4:28 PM
initialization.
INITIALIZATION.
Effect
Event keyword:
The corresponding event is triggered in executable programs before the selection screen is displayed.
The parameters (PARAMETERS) and selection criteria (SELECT-OPTIONS) in the program have already been filled with any default values. You can change any of these value in this event block if requiered. You can also change the database-specific selections if your program uses a logical database.
Select Options
Effect
Declares a variable selection option.
Objects defined using this statement can have two purposes:
In reports (programs with type 1):
You can execute reports with the SUBMIT statement. The statements SELECT-OPTIONS and PARAMETERS determine the technical interface and the user interface. The parameters and selection options you specify are displayed on the selection screen for the user to enter values (see also the addition NO-DISPLAY or SUBMIT without the addition VIA SELECTION-SCREEN.
In all programs (except subroutine pools, that is, programs with type S):
Program-internal objects, that are filled at runtime by user input on selection screens. The SELECT-OPTIONS filled in this way can then be used in the WHERE clause of a SELECT statement for selecting data.
2. use SY-LSIND.
SY-LSIND = 0
‎2007 Feb 02 4:31 PM
Using SELECT-OPTIONS with defaults only allows you to fill in one simple value. The INITIALIZATION event allows you to fill in complex selection criteria.
Rob
‎2007 Feb 02 5:16 PM
- initialization is bypassed if you run your program in batch with variant... so don't put any logic to initialization which needs to be executed in any case.
- defaults in the declaration of select-options - to define simple conditions.
- to go back in list stack -> set sy-lsind... to appropriate level.
‎2007 Feb 02 6:48 PM
hi
INITIALIZATION for initializing the selection screen values.
SELECT-OPTIONS for defining multiple values in sel.screen for database access.
give sy-lsind = 0 for coming back to the basic liste.
Cheers,
Hakim