Application Development and Automation 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: 
Read only

INITIALIZATION,SELECT-OPTIONS

Former Member
0 Likes
1,122

What is difference between INITIALIZATION,SELECT-OPTIONS with default values?

how to come back to first basic list from 20 th secondary list directrly?

4 REPLIES 4
Read only

Former Member
0 Likes
651

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

Read only

Former Member
0 Likes
651

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

Read only

Former Member
0 Likes
651

- 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.

Read only

abdul_hakim
Active Contributor
0 Likes
651

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