<?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: error regarding events in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433814#M1052396</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Sep 2008 11:36:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-09-17T11:36:59Z</dc:date>
    <item>
      <title>error regarding events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433810#M1052392</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting the below error when the code provided below is getting executed. Am getting error at &lt;/P&gt;&lt;P&gt;call method G_TREE-&amp;gt;SET_REGISTERED_EVENTS statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The error is&lt;/P&gt;&lt;P&gt;"Access not possible using 'NULL' object reference"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please refer this code....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;EVENT-EVENTID = CL_GUI_SIMPLE_TREE=&amp;gt;EVENTID_NODE_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt; EVENT-APPL_EVENT = ' '.&lt;/P&gt;&lt;P&gt;  append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method G_TREE-&amp;gt;SET_REGISTERED_EVENTS&lt;/P&gt;&lt;P&gt;    exporting&lt;/P&gt;&lt;P&gt;      EVENTS                    = EVENTS&lt;/P&gt;&lt;P&gt;    exceptions&lt;/P&gt;&lt;P&gt;      CNTL_ERROR                = 1&lt;/P&gt;&lt;P&gt;      CNTL_SYSTEM_ERROR         = 2&lt;/P&gt;&lt;P&gt;      ILLEGAL_EVENT_COMBINATION = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler&lt;/P&gt;&lt;P&gt;          G_APPLICATION-&amp;gt;HANDLE_NODE_DOUBLE_CLICK &lt;/P&gt;&lt;P&gt;                                             for G_TREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the mistake i am commiting?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 10:50:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433810#M1052392</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T10:50:03Z</dc:date>
    </item>
    <item>
      <title>Re: error regarding events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433811#M1052393</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;EVENT-EVENTID = CL_GUI_SIMPLE_TREE=&amp;gt;EVENTID_NODE_DOUBLE_CLICK.&lt;/P&gt;&lt;P&gt;EVENT-APPL_EVENT = ' '.&lt;/P&gt;&lt;P&gt;append EVENT to EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method G_TREE-&amp;gt;SET_REGISTERED_EVENTS&lt;/P&gt;&lt;P&gt;exporting&lt;/P&gt;&lt;P&gt;EVENTS = EVENTS&lt;/P&gt;&lt;P&gt;exceptions&lt;/P&gt;&lt;P&gt;CNTL_ERROR = 1&lt;/P&gt;&lt;P&gt;CNTL_SYSTEM_ERROR = 2&lt;/P&gt;&lt;P&gt;ILLEGAL_EVENT_COMBINATION = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;set handler&lt;/P&gt;&lt;P&gt;G_APPLICATION-&amp;gt;HANDLE_NODE_DOUBLE_CLICK &lt;/P&gt;&lt;P&gt;for G_TREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess you are declaring G_TREE Type Ref To CL_GUI_SIMPLE_TREE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You need to create and Object &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create object G_TREE before you can use it to call a method&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 10:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433811#M1052393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T10:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: error regarding events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433812#M1052394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Kaluvala. I had put the create object statement after that call method statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting error for this statement as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET HANDLER g_application-&amp;gt;handle_node_double_click FOR g_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have declared a class as&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CLASS lcl_application DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created the ref variable for this class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: g_application TYPE REF TO lcl_application,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I appreciate your previous help. Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 11:19:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433812#M1052394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T11:19:42Z</dc:date>
    </item>
    <item>
      <title>Re: error regarding events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433813#M1052395</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;Always remember if you are using -&amp;gt; it means you are reffering to some method of an object unlike while using =&amp;gt; where the method is static or instance-independent &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I guess before setting the handle you need to create object for g_application as well&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create Object G_APPLICATION. did you do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SET HANDLER g_application-&amp;gt;handle_node_double_click FOR g_tree.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;santhosh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 11:26:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433813#M1052395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T11:26:06Z</dc:date>
    </item>
    <item>
      <title>Re: error regarding events</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433814#M1052396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for your help&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Sep 2008 11:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-regarding-events/m-p/4433814#M1052396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-09-17T11:36:59Z</dc:date>
    </item>
  </channel>
</rss>

