Skip to Content
author's profile photo Former Member
Former Member

start-of-selection

Hi All!

I would like to know when exactly start-of-selection event gets triggered in detail.

Thanks.

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

6 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 01:38 PM

    so do the At selection-screen and start-of-selection events both trigger at F8?

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi again,

      1. No

      2. AT SELECTION-SCREEN

      EVENT will fire

      if we press ENTER KEY

      or some radiobutton or button on selection screen.

      3. If we press F8,

      a) AT SELECTION-SCREEN (will fire first)

      b) START-OF-SELECTION (will fire afterwards)

      4. to get a taste of it , just copy paste.

      5.

      report abc.

      parameters : a type c.

      at selection-screen .

      message 'AT SELECTION SCREEN' type 'I'.

      start-of-selection.

      message 'START OF SELECTION.' type 'I

      regards,

      amit m.

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 01:31 PM

    Hi shilpa,

    1. As soon as we press the EXECUTE button.

    regards,

    amit m.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 01:32 PM

    Hi,

    START-OF-SELECTION.

    Effect

    Event keyword:

    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.

    Sameena

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 01:37 PM

    Hi shilpa.

    this is the first event for your list once all the events are triggered in selection screen the data is retirve from the database.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 01:47 PM

    Hi Shilpa,

    The START-OF-SELECTION Event is triggered by default in a program though you dont code the event in your program.

    Thanks,

    Krishna

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 20, 2006 at 04:10 PM

    Hi Shilpa,

    At Selection-Screen event is used for field validations like whether the user input is correct or not.

    Start-of-selection event is for doing some data manipulation on the user input.

    Please read the following, u will get an idea.

    Contrary to first appearances, ABAP/4 programs are

    event-driven. An event is a tag that identifies a section of code. The section of code associated with an event begins with an event name and ends when the next event name is encountered.

    Three Basic Events

    1 report ztx1701.

    2 initialization.

    3 write / '1'.

    4

    5 start-of-selection.

    6 write / '2'.

    7

    8 end-of-selection.

    9 write / '3'.

    The code produces the following output:

    1

    2

    3

    These are the basic steps followed by each program :

    1)It triggers the initialization event, causing the code belonging to

    initialization to be executed. If you have not coded an initialization event

    in your program, the driver program skips this step.

    2)It shows the selection screen for your program. (A selection screen is the

    screen that contains the input fields for your parameter statements.) If your

    program doesn't have a selection screen, it skips this step.

    3)It triggers the start-of-selection event, causing the code belonging to that

    event to be executed. If you have not coded a start-of-selection event in your program,

    it skips this step.

    4)It triggers the end-of-selection event in your program, executing all of the code

    belonging to it. If you haven't coded an end-of-selection, it skips this step.

    5)It shows the output list to the user.

    The order of execution for events is determined by the driver program,

    not by your program.Therefore, you can code the events in any order and the execution

    order will still be the same. The order of events in your program doesn't matter;

    they will always be triggered in the same sequence by the driver program.

    There are eleven different events in ABAP/4, categorized in Table 17.1 according to how they are triggered.

    ABAP/4 Events

    Category Events

    Driver initialization

    at selection-screen

    start-of-selection

    get

    end-of-selection

    User at line-selection

    at pfn

    at user-command

    Program top-of-page

    end-of-page

    If found helpful, please do reward.

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.