<?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 Events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697261#M305843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it neccesary to follow the EVENTS sequence in coding?&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;...........&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does it execute in which squence?&lt;/P&gt;&lt;P&gt;=====================&lt;/P&gt;&lt;P&gt;In Sorted internal table it will sort the records automatically.&lt;/P&gt;&lt;P&gt;But in Standard ITAB we have to sort it by using SORT statement.&lt;/P&gt;&lt;P&gt;the why we are still using standard table instead of sorted table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Nov 2006 06:40:30 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-11-07T06:40:30Z</dc:date>
    <item>
      <title>Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697261#M305843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it neccesary to follow the EVENTS sequence in coding?&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;...........&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;..........&lt;/P&gt;&lt;P&gt;.........&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;does it execute in which squence?&lt;/P&gt;&lt;P&gt;=====================&lt;/P&gt;&lt;P&gt;In Sorted internal table it will sort the records automatically.&lt;/P&gt;&lt;P&gt;But in Standard ITAB we have to sort it by using SORT statement.&lt;/P&gt;&lt;P&gt;the why we are still using standard table instead of sorted table?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:40:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697261#M305843</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T06:40:30Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697262#M305844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Even though You write all the sequences in any order the system will trigger that particular event when it has to.. Ok .. And Only in Some particular scenarios only we will use the "SORT" Means as and when we want on one particular field we can go. but in Sorted table based on primary keys it will sort. I don't say it disadvantage. but using Standard table is advantageous then Sorted Table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Murthy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:48:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697262#M305844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T06:48:20Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697263#M305845</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;No need to follow the sequence,it automatically trigger&lt;/P&gt;&lt;P&gt;all the events,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if we use the standard table we need not need to select&lt;/P&gt;&lt;P&gt;all the key fields, if we use sorted table we need to &lt;/P&gt;&lt;P&gt;select all key fields&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:48:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697263#M305845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T06:48:21Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697264#M305846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi siva,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you shulf follow the sequesnce.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;First event -&lt;/P&gt;&lt;P&gt;Initialization : triggered when the report is loaded in memory. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen output : triggered when the selection screen is loaded in memory before being displayed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen : before leaving the selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection : the first event for displaying the report. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event keyword defines an event block whose event is triggered by the ABAP runtime environment &lt;/P&gt;&lt;P&gt;when calling the executable program selection screen processing of a selection screen. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In an executable program, all statements that are not declarations, &lt;/P&gt;&lt;P&gt;and are listed before the first explicit processing block, are assigned to this event block.&lt;/P&gt;&lt;P&gt; If the program does not contain an explicitly defined event block START-OF-SELECTION,&lt;/P&gt;&lt;P&gt; these statements form the complete event block START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; If a program contains an explicitly defined event block START-OF-SELECTION, &lt;/P&gt;&lt;P&gt;these statements are added to the beginning of the event block. &lt;/P&gt;&lt;P&gt;If the program contains no explicitly defined event blocks, &lt;/P&gt;&lt;P&gt;these statements form the entire event block START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-selection : after the start-of-selection is completed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;classiscal report events. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top-of-page : every time a new page is started in the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;end-of-page : every time the list data reaches the footer region of the page. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;interactive report events. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;top of page during line selection : top of page event for secondary list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line-selection : evey time user dbl-clicks(F2) on the list data. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at pF&amp;lt;key&amp;gt; : function key from F5 to F12 to perform interactive action on the list. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at user-command&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_47x200/helpdata/en/56/1eb6c705ad11d2952f0000e8353423/content.htm&lt;/A&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;&lt;/P&gt;&lt;P&gt;You cannot sort a sorted table using the SORT statement. The system always maintains these&lt;/P&gt;&lt;P&gt;tables automatically by their sort order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If an internal table is statically recognizable as a sorted table, the SORT statement causes a syntax error...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the table is a generic sorted table, the&lt;/P&gt;&lt;P&gt;SORT statement causes a runtime error if the sort key is not the same as an extract of the&lt;/P&gt;&lt;P&gt;beginning of the table key, you sort in descending order, or use the AS TEXT addition.. with SORT&lt;/P&gt;&lt;P&gt;In other words, the SORT statement is only allowed for generic internal tables, if it does not violate the&lt;/P&gt;&lt;P&gt;internal sort order..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;when you use a SORTED table with A KEY option, it creates a index internally. After that when you use a LOOP or READ on that table, it uses the index, becuase of which the performance improves. Where as in case of STANDARD table, its not that effective, as there are no indexes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In fact it uses the BINARY SEARCH algorithm while searching a SORTED table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;READ table itab with key = vlaue BINARY SEARCH.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rgds&lt;/P&gt;&lt;P&gt;Anver&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if hlped pls mrk points&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:48:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697264#M305846</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-11-07T06:48:32Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697265#M305847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This is the sequence&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1). Load of Program&lt;/P&gt;&lt;P&gt;2). initialization&lt;/P&gt;&lt;P&gt;3. at selection screen output &lt;/P&gt;&lt;P&gt;4).at selection screen on &amp;lt;field&amp;gt;&lt;/P&gt;&lt;P&gt;5). At selection screen&lt;/P&gt;&lt;P&gt;6). start-of-selection &lt;/P&gt;&lt;P&gt;7). end-of-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Triggerd on the first page and the subsequent triggering is only if there is a page break. &lt;/P&gt;&lt;P&gt;8). top-of-page &lt;/P&gt;&lt;P&gt;9). end-of-page&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For interactive reporting the sequence depends on the user action. If the user double clicks on a line then At line selection is triggered. If the user clicks on some button then At usercommand is triggerd and when the user clicks on a Function Keys like F5,F6 etc then AT pf status is triggered. If there is any page break in the secondary list then the top-of-page during line selection is triggered. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at line selection &lt;/P&gt;&lt;P&gt;at user command &lt;/P&gt;&lt;P&gt;at pf status &lt;/P&gt;&lt;P&gt;top-of-page- during line selection &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_46c/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:52:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697265#M305847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T06:52:42Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697266#M305848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;we can write the events in any order. but it executes the events in the following order . but for easy to view and understanding purpose we will follow the order.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INITIALIZATION.&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN OUTPUT.&lt;/P&gt;&lt;P&gt;AT SECLECTION-SCREEN.&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE.&lt;/P&gt;&lt;P&gt;END-OF-SELECTION.&lt;/P&gt;&lt;P&gt;AT USER-COMMANAD&lt;/P&gt;&lt;P&gt;AT LINE-SELECTION.&lt;/P&gt;&lt;P&gt;TOP-OF-PAGE DURING LINE SELECTION.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   why we are using still standard tables instead of sorted tables means when u add a new record into itab for every record it has check all the records in itab and it takes much time to do that.  so after entering the records into standard itab we will do sort.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Nov 2006 06:55:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/1697266#M305848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-07T06:55:32Z</dc:date>
    </item>
  </channel>
</rss>

