<?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/6445413#M1412925</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  plz go through the link...U will get idea about handle the events...&lt;/P&gt;&lt;P&gt;  [http://help.sap.com/saphelp_nw70/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm]&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>Fri, 04 Dec 2009 09:39:21 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-12-04T09:39:21Z</dc:date>
    <item>
      <title>Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445412#M1412924</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;Any one can say &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to handle events in ABAP Object ?&lt;/P&gt;&lt;P&gt;Because Class contains of Variables, Methods &amp;amp; Events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Shriraam&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 08:20:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445412#M1412924</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-04T08:20:22Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445413#M1412925</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;  plz go through the link...U will get idea about handle the events...&lt;/P&gt;&lt;P&gt;  [http://help.sap.com/saphelp_nw70/helpdata/en/ce/b518b6513611d194a50000e8353423/frameset.htm]&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>Fri, 04 Dec 2009 09:39:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445413#M1412925</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-04T09:39:21Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445414#M1412926</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Because Class contains of Variables, Methods &amp;amp; Events .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To be precise, variables are so called &lt;EM&gt;attributes&lt;/EM&gt; &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As for the events, refer [Triggering and Handling Events|http://help.sap.com/saphelp_nw70ehp1/helpdata/en/71/a8a77955bc11d194aa0000e8353423/frameset.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Dec 2009 11:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445414#M1412926</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2009-12-04T11:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445415#M1412927</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Triggering Events &lt;/P&gt;&lt;P&gt;RAISE EVENT &amp;lt;evt&amp;gt; EXPORTING... &amp;lt;ei&amp;gt; = &amp;lt;fi&amp;gt;...&lt;/P&gt;&lt;P&gt;The self-reference ME is automatically passed to the implicit parameter SENDER. &lt;/P&gt;&lt;P&gt;Handling Events &lt;/P&gt;&lt;P&gt;Events are handled using special methods. To handle an event, a method must&lt;/P&gt;&lt;P&gt;1. be defined as an event handler method for that event&lt;/P&gt;&lt;P&gt;2. be registered at runtime for the event.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Declaring Event Handler Methods &lt;/P&gt;&lt;P&gt;METHODS &amp;lt;meth&amp;gt; FOR EVENT &amp;lt;evt&amp;gt; OF &amp;lt;cif&amp;gt; IMPORTING.. &amp;lt;ei&amp;gt;..&lt;/P&gt;&lt;P&gt;The event handler method does not have to use all of the parameters passed in the RAISE EVENT statement. &lt;/P&gt;&lt;P&gt;If you want the implicit parameter SENDER to be used as well, you must list it in the interface. &lt;/P&gt;&lt;P&gt;Registering Event Handler Methods &lt;/P&gt;&lt;P&gt;SET HANDLER... &amp;lt;hi&amp;gt;... FOR...&lt;/P&gt;&lt;P&gt;Handler methods are executed in the order in which they were registered.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check these this.&lt;/P&gt;&lt;P&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="2813570"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.henrikfrank.dk/abapuk.html" target="test_blank"&gt;http://www.henrikfrank.dk/abapuk.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf" target="test_blank"&gt;https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/com.sap.km.cm.docs/library/webas/abap/an%20easy%20reference%20for%20alv%20grid%20control.pdf&lt;/A&gt; &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>Mon, 07 Dec 2009 04:52:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445415#M1412927</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-12-07T04:52:32Z</dc:date>
    </item>
    <item>
      <title>Re: Events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445416#M1412928</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Shriraam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Classes may have events which can be triggered.&lt;/P&gt;&lt;P&gt;Example: Class CL_GUI_ALV_GRID has events for double-clicking (DOUBLE_CLICK), hotspot (HOTSPOT_CLICK), changing the toolbar (TOOLBAR), and many more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class CL_GUI_ALV_GRID is somewhat special because all events are already registered meaning they are active. As soon as a user double-clicks on a row in an ALV list event DOUBLE_CLICK is triggered (or raised).&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Raising an event means that the (instance of the) class tells the "outside" world that something has happened which might be of interest for "somebody".&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;If another class is interested in these events (i.e. wants to be "informed" as soon as an event is raised) this class has to register for the event. The ABAP command looks like this:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
SET HANDLER: lcl_eventhandler=&amp;gt;handle_double_click FOR go_grid.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;LCL_EVENTHANDLER is a so-called event handler class (you can choose any name for it yet there are some best practices).&lt;/P&gt;&lt;P&gt;Using the SET HANDLER command method HANDLE_DOUBLE_CLICK registers for the corresponding event DOUBLE_CLICK of the instance go_grid (again, you can choose any name for the event handler method yet there are some best practices for naming).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As soon as a user double-clicks on a row in the ALV list of instance go_grid the OO Control Framework checks for all registered (and active) event handler methods which are then executed in random order.&lt;/P&gt;&lt;P&gt;Thus, the flow looks like this (simplified):&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
[1] Build ALV list
[2] PBO: Display ALV list
[3] User double-clicks on row
[4] Execute coding of all registered (and active) event handler methods
[5] Return back to displayed ALV list (do NOT pass PAI)
...
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this gives you some insights into events and event handling.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2009 21:27:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/events/m-p/6445416#M1412928</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-12-30T21:27:56Z</dc:date>
    </item>
  </channel>
</rss>

