What is the function of Start-of-Selection?(give me a practical answers)

Showing Answers 1 - 6 of 6 Answers

hi fnd,
          Generally start-of-selection event is used to fetch the data from the database.
If we do not mention any event in ur report the default event that is triggered is START-OF-SELETION event. For example

START-OF-SELECTION.
SELECT VBELN
             POSNR
             NETPR
  FROM VBAP
 INTO TABLE ITAB
WHERE VBELN IN S_VBELN.

Regards,
Kiran Kumar.G.A

                     Have a Nice Day..

  Was this answer useful?  Yes

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 as shown in the below example.
 

START-OF-SELECTION.

SELECT kunnr
             land1
             name1
             FROM kna1  INTO TABLE ITAB WHERE kunnr IN s_kunnr.


                                                               or


In an executable program, the corresponding event is processed after the selection screen has been displayed and before data is read using a logical database.


Note


The REPORT statement always executes a START-OF-SELECTION implcitly. Consequently all processing logic between the REPORT statement and the next event keyword is automatically processed in the START-OF-SELECTION event.
Immediately afterwards, the system processes the statements that belong to an explicit START-OF-SELECTION block.



                                          


  Was this answer useful?  Yes

Give your answer:

If you think the above answer is not correct, Please select a reason and add your answer below.

 

Related Answered Questions

 

Related Open Questions