<?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: events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302895#M503488</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swapna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to process some action(like Database data retriving) in List then u should use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After complition of all process then u should use End-of-selection for next process like top-of-page and End-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need ur reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Jun 2007 15:49:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-06-01T15:49:18Z</dc:date>
    <item>
      <title>events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302888#M503481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Start-of-selection is default event.&lt;/P&gt;&lt;P&gt;Then what is the porpose of this event ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where we use end-of-selection event ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 05:42:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302888#M503481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T05:42:49Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302889#M503482</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;wen u dont mention any events, then start-of -selection is default.&lt;/P&gt;&lt;P&gt;suppose say in ur report u have used INitialization, at slection-screen,topof page....&lt;/P&gt;&lt;P&gt;say u didnt use  "START_OF-selection".&lt;/P&gt;&lt;P&gt;In this case it wont recognise start-of selection, as the select statements which u have written will come under th events u have mentioned previously (INitialization, at slection-screen,topof page....)&lt;/P&gt;&lt;P&gt;so wen ever u use other events, then u must use START_OF-SELECTION explicitly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF SELECTIOn.&lt;/P&gt;&lt;P&gt;if u want to perform some operetians after all the events, then u can codeunder this statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Revert back if any issues.&lt;/P&gt;&lt;P&gt;Reward with points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naveen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:04:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302889#M503482</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:04:03Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302890#M503483</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Swapna  , &lt;/P&gt;&lt;P&gt;  Start of selection is not a default event , we can write program without start of selection.&lt;/P&gt;&lt;P&gt;As per its definition it is an event which is trigred after the selection screen is displayed and before the data selection is perofrmed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As far of end of selection is concerned , it is not much of use  in case of normal reports , it is significant when we are using logical databases , in that case this event is trigrred when all the data selection from LDB is over and we want to display the output.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302890#M503483</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302891#M503484</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;events:&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/events-related-to-reporting.htm" target="test_blank"&gt;http://www.sap-img.com/abap/events-related-to-reporting.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 06:36:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302891#M503484</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T06:36:03Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302892#M503485</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;End-of-selection.&lt;/P&gt;&lt;P&gt;&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;In this event block, all data read by the logical data base , can be processed summarically. 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;&lt;/P&gt;&lt;P&gt;Jogdand M B&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 09:07:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302892#M503485</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T09:07:57Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302893#M503486</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP/4 offers three types of modularization units: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Events &lt;/P&gt;&lt;P&gt;Subroutines &lt;/P&gt;&lt;P&gt;Function modules &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A modularization unit is a like a shell into which you can put code. It allows you to segregate a group of lines of code from the rest, and then execute them at a specific time. The lines of code within a modularization unit act very much like a mini-program that can be called from another program. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. The event names are initialization, start-of-selection, and end-of-selection. Event names are reserved words. You cannot create new events-you can only use existing ones. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A driver program is one program that controls another (driven) program. SAP supplies driver programs with the R/3 system. You supply the driven program. When you start your program, a driver program always starts first, and then it calls the events in your program. To reiterate, a driver program starts first and then controls when your program gets control. This has always been the case for all of the programs you have written so far; you just have not been aware of it until now.  To repeat once more, when you start your program, a driver program starts first and controls your program by calling events within it. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;It shows the output list to the user. &lt;/P&gt;&lt;P&gt;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. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There are eleven different events in ABAP/4, categorized in Table 17.1 according to how they are triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Table 17.1  ABAP/4 Events&lt;/P&gt;&lt;P&gt;Category Events &lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Driver initialization&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;at selection-screen&lt;/P&gt;&lt;P&gt;start-of-selection&lt;/P&gt;&lt;P&gt;get&lt;/P&gt;&lt;P&gt;end-of-selection  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;User&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;at line-selection &lt;/P&gt;&lt;P&gt;at pfn &lt;/P&gt;&lt;P&gt;at user-command  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Program&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;top-of-page &lt;/P&gt;&lt;P&gt;end-of-page  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you don't see any events in a program, always remember that one still exists-start-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we use the statement &amp;lt;b&amp;gt;stop &amp;lt;/b&amp;gt; immediately control  leaves the current event and goes directly to the end-of-selection event. Executing stop within end-of-selection leaves the event. It doesn't cause an infinite loop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 31 May 2007 11:25:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302893#M503486</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-31T11:25:42Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302894#M503487</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swapna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection u should write whenever u use at slection-screen or initiliaztion events in report though this is a default event,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection: this can trigger after the 'STOP' keyword trigger,&lt;/P&gt;&lt;P&gt;that means if u write 'STOP' keyword in the start-of-selection event after this cursor directly goes to end-of-selection event , then it process the loop or output statements, if u dont write end-of-selection event after the 'STOP' keyword then it comes out from the report,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;see the sample code below and debugg the same for the better understanding,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  yjust_seshu MESSAGE-ID zct.&lt;/P&gt;&lt;P&gt;TABLES: marc.&lt;/P&gt;&lt;P&gt;DATA: g_tab TYPE STANDARD TABLE OF marc,&lt;/P&gt;&lt;P&gt;      g_wa TYPE marc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*selcetion screen&lt;/P&gt;&lt;P&gt;PARAMETERS p_plant LIKE marc-werks.&lt;/P&gt;&lt;P&gt;SELECT-OPTIONS s_matnr FOR marc-matnr OBLIGATORY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;  p_plant = 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;  p_plant = 1000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN.&lt;/P&gt;&lt;P&gt;  DATA: l_plant TYPE werks.&lt;/P&gt;&lt;P&gt;  SELECT SINGLE werks FROM marc INTO l_plant WHERE werks EQ p_plant.&lt;/P&gt;&lt;P&gt;  IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;    MESSAGE i010(zct).&lt;/P&gt;&lt;P&gt;    EXIT.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;  SELECT werks&lt;/P&gt;&lt;P&gt;         matnr&lt;/P&gt;&lt;P&gt;         FROM marc&lt;/P&gt;&lt;P&gt;         INTO TABLE g_tab&lt;/P&gt;&lt;P&gt;         WHERE werks EQ p_plant&lt;/P&gt;&lt;P&gt;           AND matnr IN s_matnr.&lt;/P&gt;&lt;P&gt;    PERFORM SELECT_NEW.&lt;/P&gt;&lt;P&gt;  STOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT g_tab INTO g_wa.&lt;/P&gt;&lt;P&gt;    WRITE:/ g_wa-matnr.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 05:03:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302894#M503487</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T05:03:52Z</dc:date>
    </item>
    <item>
      <title>Re: events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302895#M503488</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi swapna&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if you want to process some action(like Database data retriving) in List then u should use&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After complition of all process then u should use End-of-selection for next process like top-of-page and End-of-page.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;need ur reward points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ravi.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Jun 2007 15:49:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2302895#M503488</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-01T15:49:18Z</dc:date>
    </item>
  </channel>
</rss>

