<?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/2524287#M571639</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2672722"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3620723"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3322286"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jul 2007 05:04:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-18T05:04:34Z</dc:date>
    <item>
      <title>Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524286#M571638</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please tell me about events used in report in the order of their execution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and their explanation......&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basavaraj&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524286#M571638</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524287#M571639</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Refer&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="2672722"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3620723"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="3322286"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:04:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524287#M571639</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:04:34Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524288#M571640</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;Events: Initialization&lt;/P&gt;&lt;P&gt;at selection-screen&lt;/P&gt;&lt;P&gt;at selection-screen on value request.&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-page&lt;/P&gt;&lt;P&gt;at user-command&lt;/P&gt;&lt;P&gt;at line-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Order:&lt;/P&gt;&lt;P&gt;1. Initialization&lt;/P&gt;&lt;P&gt;2. at selection-screen&lt;/P&gt;&lt;P&gt;3. at selection-screen on value request&lt;/P&gt;&lt;P&gt;4. start of selection.&lt;/P&gt;&lt;P&gt;when WRITE statement is triggered&lt;/P&gt;&lt;P&gt;top-of page.&lt;/P&gt;&lt;P&gt;end-of-page.&lt;/P&gt;&lt;P&gt;end-of selection.&lt;/P&gt;&lt;P&gt;at user-command.&lt;/P&gt;&lt;P&gt;at line-selection&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Go through the following&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the order of execution in Classical/Interactive Report Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classical Reports&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reports which are properly formatted (header, footer, page numbers etc.,) with the help of one or more external events like top-of-page,end-of-page etc., are called as CLASSICAL REPORTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Standard list.&lt;/P&gt;&lt;P&gt;Output of Report program is nothing but Standard list. It consists of one continuous page of 60,000 lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To restrict number of lines per page.&lt;/P&gt;&lt;P&gt;Report Zxxxxx line-count 25.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Report Zxxxxx line-count 25(3).&lt;/P&gt;&lt;P&gt;( In this case 3 lines are reserved for footer)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To restrict Output width.&lt;/P&gt;&lt;P&gt;Report Zxxxx line-size 125.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To suppress standard page heading.&lt;/P&gt;&lt;P&gt;Report Zxxxx no standard page heading&lt;/P&gt;&lt;P&gt;Above all at a time:&lt;/P&gt;&lt;P&gt;Report Zxxxx line-count 25(3) &lt;/P&gt;&lt;P&gt;line-size 125&lt;/P&gt;&lt;P&gt;no standard page heading.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Screen Events List Events&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initialization. Start-of-selection &lt;/P&gt;&lt;P&gt;At selection-screen. Top-of-page.&lt;/P&gt;&lt;P&gt;At selection-screen on &amp;lt;field&amp;gt;. End-of-page.&lt;/P&gt;&lt;P&gt;End-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can initialize the selection-screen with calculated default values under this event.&lt;/P&gt;&lt;P&gt;Initialization.&lt;/P&gt;&lt;P&gt;s_date-high = sy-datum.&lt;/P&gt;&lt;P&gt;s_date-low = sy-datum - 15.&lt;/P&gt;&lt;P&gt;Append s_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can validate all the inputs on selection screen fields under this event.&lt;/P&gt;&lt;P&gt;At selection-screen.&lt;/P&gt;&lt;P&gt;If s_carrid-low is initial or &lt;/P&gt;&lt;P&gt;s_connid-low is initial or&lt;/P&gt;&lt;P&gt;s_date is initial.&lt;/P&gt;&lt;P&gt;&amp;lt; ... code for validation... &amp;gt;.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;We can validate a particular field input on selection screen under this event.&lt;/P&gt;&lt;P&gt;At selection-screen on s_carrid.&lt;/P&gt;&lt;P&gt;If s_carrid-low &amp;lt; &amp;gt; &amp;#145;LH&amp;#146;.&lt;/P&gt;&lt;P&gt;&amp;lt;&amp;#133; code for validation&amp;#133;&amp;gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If any of the other event comes before&lt;/P&gt;&lt;P&gt;&amp;#145;Select&amp;#133;Endselect.&amp;#146; statements, then to break&lt;/P&gt;&lt;P&gt;that event, we require this S-O-S event.&lt;/P&gt;&lt;P&gt;Start-of-selection.&lt;/P&gt;&lt;P&gt;Select * from &amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;&amp;#133;&amp;#133;&amp;#133;&amp;#133;&lt;/P&gt;&lt;P&gt;Endselect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If we need some portion of the output (like&lt;/P&gt;&lt;P&gt;column headings) to appear in all the pages,&lt;/P&gt;&lt;P&gt;then we use this event.&lt;/P&gt;&lt;P&gt;Top-of-page.&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;Carrier&amp;#146;,10 &amp;#145;Connection&amp;#146; 20 &amp;#145;Date&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If there is no external output statement before&lt;/P&gt;&lt;P&gt;&amp;#145;Top-of-page&amp;#146; event, then this event will not &lt;/P&gt;&lt;P&gt;work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Once the cursor reaches the last line of the &lt;/P&gt;&lt;P&gt;page, automatically this event will be triggered.&lt;/P&gt;&lt;P&gt;Report Zxxx line-count 25(3).&lt;/P&gt;&lt;P&gt;In this case line numbers 23, 24 and 25 are &lt;/P&gt;&lt;P&gt;reserved for footer.&lt;/P&gt;&lt;P&gt;Once the cursor reaches 23rd line, this event&lt;/P&gt;&lt;P&gt;will be triggered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;End-of-page.&lt;/P&gt;&lt;P&gt;Write:/ sy-uline(75).&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;This is end of page:&amp;#146;,sy-pagno.&lt;/P&gt;&lt;P&gt;Write:/ sy-uline(75).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event is used for concluding part of List.&lt;/P&gt;&lt;P&gt;End-of-selection.&lt;/P&gt;&lt;P&gt;Write:/ &amp;#145;This is end of the Report&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interactive Report&lt;/P&gt;&lt;P&gt;A simple report or even a classical report displays a clustered list with all the requested output at one go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever it is displayed, it is final. That means, the user can not interact with with that list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A simple report or even a classical report displays a clustered list with all the requested output at one go. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What ever it is displayed, it is final. That means, the user can not interact with with that list.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the interactive reports, we can create as many as 21 lists. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The first list is called &amp;#145;Basic list&amp;#146; and all the successive lists are called &amp;#145;Secondary lists&amp;#146;. Each list is again an interactive.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Basic list is not deleted when secondary list is created. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A secondary list may either overlay the basic list or appear in an additional dialog window on the same screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system variable associated with list number is &amp;#145;SY-LSIND&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For basic list SY-LSIND = 0 and for secondary lists, SY-LSIND varies from 1 to 20.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;User can interact with the list by the following ways.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Double clicking or single click and pressing F2 (function key) or single click with &amp;#145;hotspot on&amp;#146;.&lt;/P&gt;&lt;P&gt;OR&lt;/P&gt;&lt;P&gt;Selecting from menu bar or from application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the events used in classical reports can be used in Basic List.&lt;/P&gt;&lt;P&gt;The event &amp;#145;End-of-page&amp;#146; can be used in Secondary Lists also.(the other six events can not be used in secondary lists)&lt;/P&gt;&lt;P&gt;You can not place &amp;#145;select-options&amp;#146; in secondary lists.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The following additional events are &lt;/P&gt;&lt;P&gt;applicable to secondary lists.&lt;/P&gt;&lt;P&gt;Top-of-page during line-selection.&lt;/P&gt;&lt;P&gt;At line-selection.&lt;/P&gt;&lt;P&gt;At user-command.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you double click on any field in the basic list, you will be navigating to secondary list with detailed information pertaining to clicked field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As such we need to store the clicked field information at some variable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;#145;Hide&amp;#146; temporarily stores the content of clicked field for later use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The default title of the out put is the text what we enter during creation of program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This title can be changed using:&lt;/P&gt;&lt;P&gt;SET TITLEBAR &amp;#145;AAA&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI status includes:&lt;/P&gt;&lt;P&gt;Menu bar&lt;/P&gt;&lt;P&gt;Application tool bar and&lt;/P&gt;&lt;P&gt;Activating standard tool bar&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI status can be created using&lt;/P&gt;&lt;P&gt;SET PF-STATUS &amp;#145;BBB&amp;#146;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can have 8 menus ( out of which, 2 menus are reserved for &amp;#145;System&amp;#146; and &amp;#145;Help&amp;#146;).&lt;/P&gt;&lt;P&gt;Each menu can have 15 menu items.&lt;/P&gt;&lt;P&gt;Each menu item can have 3 levels of submenus.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can create 35 items in application tool bar.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Refer &lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2005vp/helpdata/en/9f/db9a2e35c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:08:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524288#M571640</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:08:51Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524289#M571641</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Basavraj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;First event -&amp;lt;/b&amp;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;&amp;lt;b&amp;gt;interactive report events.&amp;lt;/b&amp;gt; &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;&amp;lt;b&amp;gt;Reward pts if found usefull :)&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Sathish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jul 2007 05:17:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/2524289#M571641</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-18T05:17:05Z</dc:date>
    </item>
  </channel>
</rss>

