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: 

difference

Former Member
0 Kudos

what is the difference between at start-of-selection and end-of-selection.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

START OF SELECTION

START-OF-SELECTION is processed after the selection screen has been processed. If you are

working with a logical database, the corresponding GET events are triggered after START-OFSELECTION.

For further information, refer to the course BC405 'Techniques of List Processing and SAP

Query' and the online documentation.

END OF SELECTION

END-OF-SELECTION is processed after all of the data has been read, and before the list is displayed.

4 REPLIES 4

Former Member
0 Kudos

START OF SELECTION

START-OF-SELECTION is processed after the selection screen has been processed. If you are

working with a logical database, the corresponding GET events are triggered after START-OFSELECTION.

For further information, refer to the course BC405 'Techniques of List Processing and SAP

Query' and the online documentation.

END OF SELECTION

END-OF-SELECTION is processed after all of the data has been read, and before the list is displayed.

Former Member
0 Kudos

start-of-selection event is triggered after the selection screen processed and before the data retrieval from the database.This event is automatically triggered.

end-of-selection event is triggered after all the data have been retrieved from the associated logical data base.It is necessary for LDB reports.

Former Member
0 Kudos

Hi,

To do all data extractions based on selection criteria and populate the finl tables you may use START-OF-SELECTION.

Use END-OF-SELECTION after all this and before data display or download.

START-OF-SELECTION

This event occurs after the selection screen has been processed and before data is read using the logical database. You can use it to prepare for reading data and creating the list by, for example, setting values for internal fields and writing introductory notes on the output list.

In an executable program, any non-declarative statements that occur between the REPORT or PROGRAM statement and the first processing block are also processed in the START-OF-SELECTION block.

END-OF-SELECTION

This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.

Former Member
0 Kudos

Hi,

START-OF-SELECTION

This event occurs after the selection screen has been processed and before data is read using the logical database. You can use it to prepare for reading data and creating the list by, for example, setting values for internal fields and writing introductory notes on the output list.

END-OF-SELECTION

This is the last of the events called by the runtime environment to occur. It is triggered after all of the data has been read from the logical database, and before the list processor is started. You can use the corresponding event block to process and format the data that the program has stored in internal tables or extracts during the various GET events.

The following program is connected to the logical database F1S.

REPORT EVENT_DEMO.

NODES SPFLI.

DATA: SPFLI_TAB TYPE SORTED TABLE OF SPFLI

WITH UNIQUE KEY CITYFROM CITYTO CARRID CONNID,

SPFLI_LINE TYPE SPFLI.

START-OF-SELECTION.

WRITE 'Demo program for END-OF-SELECTION'.

SKIP.

GET SPFLI FIELDS CARRID CONNID CITYFROM CITYTO.

MOVE-CORRESPONDING SPFLI TO SPFLI_LINE.

INSERT SPFLI_LINE INTO TABLE SPFLI_TAB.

END-OF-SELECTION.

LOOP AT SPFLI_TAB INTO SPFLI_LINE.

WRITE: / SPFLI_LINE-CITYFROM,

SPFLI_LINE-CITYTO,

SPFLI_LINE-CARRID,

SPFLI_LINE-CONNID.

ENDLOOP.

This program fills a sorted table with data from the logical database in the GET SPFLI event, and displays them in a list in the END-OF-SELECTIOn event. Depending on what you enter on the selection screen