<?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: Object reference giving error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308613#M1224113</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take a look into the below code: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_user_comm DEFINITION.
* Defination for the local class method
  PUBLIC SECTION.
    METHODS:
** Method for handling Double Click
    double_click    FOR EVENT double_click
                    OF cl_gui_alv_grid
                    IMPORTING e_row
                              e_column
                              es_row_no,
ENDCLASS.


* Class to define and handle own functions
CLASS lcl_user_comm IMPLEMENTATION.
*---------------------------------------------------------------------*
*       METHOD double_click                                           *
*---------------------------------------------------------------------*
* Define the method for double click
  METHOD double_click.
    PERFORM sub_event_double_click
            USING e_row
                  e_column.
  ENDMETHOD.                    "double_click

ENDCLASS.


* Now in the PBO if you declear like this, then it should work.

DATA: lv_event_receiver1 TYPE REF TO lcl_user_comm.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doen't work please give your code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 07 Mar 2009 20:14:33 GMT</pubDate>
    <dc:creator>former_member376453</dc:creator>
    <dc:date>2009-03-07T20:14:33Z</dc:date>
    <item>
      <title>Object reference giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308609#M1224109</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a piece of code like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: object_ref TYPE REF TO application.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt;CREATE OBJECT object_ref.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a local class "application". &lt;/P&gt;&lt;P&gt;The program is giving a syntax error: "OBJECT_REF" is not an object reference.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What could be the problem and how to solve it?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 19:09:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308609#M1224109</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-07T19:09:25Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308610#M1224110</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Have you declare both definition and implementation for your local class? Make sure that your class definition and implementation both are in place.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kuntal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 19:53:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308610#M1224110</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-07T19:53:07Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308611#M1224111</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kuntal,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, both definition and implementation have been declared.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ajay.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 19:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308611#M1224111</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-07T19:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308612#M1224112</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;to get quick &amp;amp; effective replies, paste ur code pls.&lt;/P&gt;&lt;P&gt;thanq&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 19:59:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308612#M1224112</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-03-07T19:59:02Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference giving error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308613#M1224113</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can take a look into the below code: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS lcl_user_comm DEFINITION.
* Defination for the local class method
  PUBLIC SECTION.
    METHODS:
** Method for handling Double Click
    double_click    FOR EVENT double_click
                    OF cl_gui_alv_grid
                    IMPORTING e_row
                              e_column
                              es_row_no,
ENDCLASS.


* Class to define and handle own functions
CLASS lcl_user_comm IMPLEMENTATION.
*---------------------------------------------------------------------*
*       METHOD double_click                                           *
*---------------------------------------------------------------------*
* Define the method for double click
  METHOD double_click.
    PERFORM sub_event_double_click
            USING e_row
                  e_column.
  ENDMETHOD.                    "double_click

ENDCLASS.


* Now in the PBO if you declear like this, then it should work.

DATA: lv_event_receiver1 TYPE REF TO lcl_user_comm.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it doen't work please give your code&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 07 Mar 2009 20:14:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-giving-error/m-p/5308613#M1224113</guid>
      <dc:creator>former_member376453</dc:creator>
      <dc:date>2009-03-07T20:14:33Z</dc:date>
    </item>
  </channel>
</rss>

