<?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 syntax error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914613#M1598019</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has the variable  IT_LFA11 been declared as a instance variable in your class or as a local variable to a method of a class ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To access the variable with OBJ-&amp;gt;IT_LFA11 , it_lfa11 must be a instance variable of the corresponding class. Please post ur code , that might give a better idea of your problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 03 Jul 2011 17:41:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-07-03T17:41:15Z</dc:date>
    <item>
      <title>Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914610#M1598016</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I am new to ABAP..I have declared a variable in the global class event_method. I am trying to use that variable value in the Report. But I am getting syntax error "Field "IT_LFA11" is unknown. It is neither in one of the specified".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Globalclass method &lt;/P&gt;&lt;P&gt;data: IT_LFA11 TYPE FRE_LFA1_TTY.	&lt;/P&gt;&lt;P&gt;..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IT_LFA11 = IT_LIFNR..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Report.&lt;/P&gt;&lt;P&gt;IT_LFA11 = OBJ-&amp;gt;IT_LFA11.	&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me in this regard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2011 00:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914610#M1598016</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-02T00:01:54Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914611#M1598017</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;Have you declared IT_LFA11 in the Parameters of the method.!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you didnt created IT_LFA11 in the method parameters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 02 Jul 2011 09:13:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914611#M1598017</guid>
      <dc:creator>Kiran_Valluru</dc:creator>
      <dc:date>2011-07-02T09:13:16Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914612#M1598018</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I cann't declare as export parameter as I copy the parameters from event method to method....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Harish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 07:15:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914612#M1598018</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-03T07:15:55Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914613#M1598019</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Has the variable  IT_LFA11 been declared as a instance variable in your class or as a local variable to a method of a class ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To access the variable with OBJ-&amp;gt;IT_LFA11 , it_lfa11 must be a instance variable of the corresponding class. Please post ur code , that might give a better idea of your problem .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Pawan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 03 Jul 2011 17:41:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914613#M1598019</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-03T17:41:15Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914614#M1598020</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please check whether IT_LFA11 is an instance or static attribute of the global class that you are referring to here.&lt;/P&gt;&lt;P&gt;&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;Adithya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Jul 2011 12:05:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914614#M1598020</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-04T12:05:17Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914615#M1598021</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;1. Make sure that IT_LFA11 is declared as object or has been declared like "TYPE REF TO" so that it can hold objects.&lt;/P&gt;&lt;P&gt;2. Make sure that IT_LFA11  is declared in attribute of a class or in mother class.&lt;/P&gt;&lt;P&gt;3. See to it that all your classes are active.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Nope&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Jul 2011 01:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914615#M1598021</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-07T01:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914616#M1598022</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please post more code (formatted as code) and we can reveal that data: IT_LFA11 is not declaring any global attribute. Note the name IT implies that it is an Importing Table parameter which you already denied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let us know what you are doing and what kind of result you want. Help is right around the corner.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Jul 2011 17:08:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914616#M1598022</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2011-07-09T17:08:16Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914617#M1598023</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Halo Harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I believe OBJ is an instance reference of Global Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say if you have created a Global Class G1 and declared public instance  attributes  say A1, A2 etc, then you can access the same externally in the report .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
data: obj type ref to G1.

create object obj.

obj-&amp;gt;A1 = 'Public attribute A1'.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Moreover if you have declared types(Public) in the types tab of class builder. you can access the same in the reprt like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;G1=&amp;gt;T1 where T1 is the public type declared in the class&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Arshad&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 Jul 2011 04:47:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914617#M1598023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-07-15T04:47:23Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914618#M1598024</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hai harish,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1).you have to declare object in following manner,&lt;/P&gt;&lt;P&gt;data: &amp;lt;objectname&amp;gt; type ref to &amp;lt;classname&amp;gt;.&lt;/P&gt;&lt;P&gt;create object &amp;lt;objectname&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2). you have to check that the class is decared as final,becoz if final means we can't access.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3).you have to check it_kna11 is properly decared or not i.e, it should be public.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914618#M1598024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-05T10:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914619#M1598025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ignore&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Keshav.T on Oct 5, 2011 4:05 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Oct 2011 10:35:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914619#M1598025</guid>
      <dc:creator>kesavadas_thekkillath</dc:creator>
      <dc:date>2011-10-05T10:35:25Z</dc:date>
    </item>
    <item>
      <title>Re: Object reference syntax error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914620#M1598026</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;&lt;BR /&gt;Please Do not Declare It_lfa11 in Event_Method Parameters .&lt;BR /&gt;Instead of Declaring in Event_method Parameter just Declare it in "Attributes Tab" that is public section of class &lt;/P&gt;&lt;P&gt;as a&amp;nbsp; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_lfa11 type stanard table of &amp;lt;strcuture&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then your problem will solve..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;Hiriyappa.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Sep 2012 05:00:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-reference-syntax-error/m-p/7914620#M1598026</guid>
      <dc:creator>hiriyappa_myageri</dc:creator>
      <dc:date>2012-09-10T05:00:07Z</dc:date>
    </item>
  </channel>
</rss>

