<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: simple question......... in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580085#M589903</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;START-OF-SELECTION is default event even without mentioning when u r not using any event before.&lt;/P&gt;&lt;P&gt;If ur using any event like AT SELECTION-SCREEN, INITIALIZATION then u have to specify the START-OF-SELECTION. Any event block will end with another event keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION is mainly used when the LDB finishes all its work.&lt;/P&gt;&lt;P&gt;In an executable program without logical data base, there is no need to implement the event block END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Jul 2007 05:59:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-25T05:59:37Z</dc:date>
    <item>
      <title>simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580080#M589898</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;when to use start-of-selection and end-of-selection both and when only start-of-selection?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:53:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580080#M589898</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:53:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580081#M589899</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;Start-of-selection is used to retrieve the data.&lt;/P&gt;&lt;P&gt;End-of-selection is used to display the data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:54:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580081#M589899</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:54:27Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580082#M589900</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Start-of-selection&amp;lt;/b&amp;gt; is the event where you will code ur sql statements, this is the event which will be triggered automatically even for normal programs, not only for reports even if you dont specify this event in the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At Selection screen is the event to validate the input values given in the selection screen using initialization event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First in the sequence AT SELECTION SCREEN event will be triggered and then START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;END-OF-SELECTION&amp;lt;/b&amp;gt;, will fire only when you actually write it after the selection of the data is over. Usually between the START and END OF SELECTION you fetch the data and after the END OF SELECTION, you process the data and write that as output as display the same as ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;START-OF-SELECTION&amp;lt;/b&amp;gt; event is triggered after the selection screen has been processed.&lt;/P&gt;&lt;P&gt;You can use this event for generating list for eg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;END-OF-SELECTION&amp;lt;/b&amp;gt; event is triggered after all the records have been read from the logical&lt;/P&gt;&lt;P&gt;database and before the list processor is started.You can use this event block to process&lt;/P&gt;&lt;P&gt;and format the data the program has stored in the internal tables or extraced during various GET Events..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can ignore END-OF-SELECTION if you dont use LDB in your program..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:56:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580082#M589900</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:56:32Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580083#M589901</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;is their any loop case........?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:56:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580083#M589901</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:56:44Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580084#M589902</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;START-OF-SELECTION. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This event keyword defines an event block whose event is triggered by the ABAP runtime environment when calling the executable program selection screen processing of a selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example..&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;The first program contains an explicit event block START-OF-SELECTION and shows the recommended spelling. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT test_start_of_selection. &lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  text = `Hello World!`. &lt;/P&gt;&lt;P&gt;  WRITE text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the second program, there is an assignment before the first processing block, which is inserted in the event block START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT test_start_of_selection. &lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `Hello World!`. &lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  WRITE text. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the third program, there is no explicit processing block. All statements form the event block START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT test_start_of_selection. &lt;/P&gt;&lt;P&gt;DATA text TYPE string. &lt;/P&gt;&lt;P&gt;text = `Hello World!`. &lt;/P&gt;&lt;P&gt;WRITE text. &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;This statement defines an event block, whose event is raised by the ABAP-runtime environment during the calling of an executable program , if the logical database, with which the program is linked, has completely finished its work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Example...&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT demo_get. &lt;/P&gt;&lt;P&gt;NODES: spfli, sflight, sbook. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: weight       TYPE p DECIMALS 4, &lt;/P&gt;&lt;P&gt;      total_weight TYPE p DECIMALS 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION. &lt;/P&gt;&lt;P&gt;  carrid-sign = 'I'. &lt;/P&gt;&lt;P&gt;  carrid-option = 'EQ'. &lt;/P&gt;&lt;P&gt;  carrid-low = 'AA'. &lt;/P&gt;&lt;P&gt;  carrid-high = 'LH'. &lt;/P&gt;&lt;P&gt;  APPEND carrid TO carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  WRITE 'Luggage weight of flights'. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET spfli FIELDS carrid connid cityfrom cityto. &lt;/P&gt;&lt;P&gt;  SKIP. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;  WRITE: / 'Carrid:', spfli-carrid, &lt;/P&gt;&lt;P&gt;           'Connid:', spfli-connid, &lt;/P&gt;&lt;P&gt;         / 'From:  ', spfli-cityfrom, &lt;/P&gt;&lt;P&gt;           'To:    ', spfli-cityto. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET sflight FIELDS fldate. &lt;/P&gt;&lt;P&gt;  SKIP. &lt;/P&gt;&lt;P&gt;  WRITE: / 'Date:', sflight-fldate. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GET sbook FIELDS luggweight. &lt;/P&gt;&lt;P&gt;  weight = weight + sbook-luggweight. &lt;/P&gt;&lt;P&gt;GET sflight LATE FIELDS carrid . &lt;/P&gt;&lt;P&gt;  WRITE: / 'Luggage weight =', weight. &lt;/P&gt;&lt;P&gt;  total_weight = total_weight + weight. &lt;/P&gt;&lt;P&gt;  weight = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;  ULINE. &lt;/P&gt;&lt;P&gt;  WRITE: / 'Sum of luggage weights =', total_weight. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pavan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:58:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580084#M589902</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:58:00Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580085#M589903</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;START-OF-SELECTION is default event even without mentioning when u r not using any event before.&lt;/P&gt;&lt;P&gt;If ur using any event like AT SELECTION-SCREEN, INITIALIZATION then u have to specify the START-OF-SELECTION. Any event block will end with another event keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION is mainly used when the LDB finishes all its work.&lt;/P&gt;&lt;P&gt;In an executable program without logical data base, there is no need to implement the event block END-OF-SELECTION. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 05:59:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580085#M589903</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T05:59:37Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580086#M589904</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;in loop case we can use start-of-selection but in simple case we use start-of-selection and end-of-selection both.Is it correct?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:00:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580086#M589904</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:00:52Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580087#M589905</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Praveen,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;START-OF-SELECTION.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Event keyword:&lt;/P&gt;&lt;P&gt;In an executable program, the corresponding event is processed&lt;/P&gt;&lt;P&gt;after the selection screen has been displayed and before data&lt;/P&gt;&lt;P&gt;is read using a logical database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The REPORT statement always executes a START-OF-SELECTION&lt;/P&gt;&lt;P&gt;implcitly. Consequently all processing logic between the&lt;/P&gt;&lt;P&gt;REPORT statement and the next event keyword is automatically&lt;/P&gt;&lt;P&gt;processed in the START-OF-SELECTION event.&lt;/P&gt;&lt;P&gt;Immediately afterwards, the system processes the statements&lt;/P&gt;&lt;P&gt;that belong to an explicit START-OF-SELECTION block.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;END-OF-SELECTION.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The END-OF-SELECTION event is triggered in type 1 programs once the logical database has finished reading all data and before the list processor is started.&lt;/P&gt;&lt;P&gt;If used in non Logical Database reports, It may trigger after the processing of START-OF-SELECTION is complete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if contents are useful....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mandeep.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:10:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580087#M589905</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-25T06:10:25Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580088#M589906</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START OF SELECTION you need to use to execute your code after data selectio and validation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Everything that is not there in any event block will be concidered under this event bloc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION Is optional for normal reports and is only required for reports with Logical Database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Jul 2007 06:12:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580088#M589906</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-07-25T06:12:56Z</dc:date>
    </item>
    <item>
      <title>Re: simple question.........</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580089#M589907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Answered.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 25 Mar 2011 06:28:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/simple-question/m-p/2580089#M589907</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-03-25T06:28:01Z</dc:date>
    </item>
  </channel>
</rss>

