<?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: Syntax Error in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222216#M1207524</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;it has got a simple problem in that and the problem is....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE METHOD needs to have decleared and defined befor being used...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here its coming befor declearation and definition so you are getting the error ....I TOO HAD SAME PROBLEM BEFORE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 17 Feb 2009 07:29:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-17T07:29:33Z</dc:date>
    <item>
      <title>Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222215#M1207523</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;Could some one tell me what is wrong in the followin code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am getting a syntax error in a code similar to the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CLASS cl_class2 DEFINITION DEFERRED.

CLASS cl_calss1 DEFINITION.
PUBLIC SECTION.
    METHODS: method1 IMPORTING ref_class2 TYPE REF TO cl_class2.
ENDCLASS.

CLASS cl_class1 IMPLEMENTATION.
   METHOD method1.
     CALL METHOD ref_class2-&amp;gt;method2 EXPORTING ref_class1 = me. 
  ENDMETHOD.
ENDCLASS.

CLASS cl_class2 DEFINITION.
  PUBLIC SECTION.
    METHODS: method2 IMPORTING ref_class1 TYPE REF TO cl_class1.
ENDCLASS.

CLASS cl_class2 IMPLEMENTATION.
    METHOD method2.
     &amp;lt;some logic comes here&amp;gt;
   ENDMETHOD.
ENDCLASS.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the above code I am getting a syntax error saying "Method 'method2' is unknown or PROTECTED or PRIVATE." when the method2 is called in the method1 implementation.&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;Naga Sai&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 07:15:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222215#M1207523</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T07:15:19Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222216#M1207524</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;it has got a simple problem in that and the problem is....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;THE METHOD needs to have decleared and defined befor being used...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and here its coming befor declearation and definition so you are getting the error ....I TOO HAD SAME PROBLEM BEFORE THIS&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 07:29:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222216#M1207524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T07:29:33Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222217#M1207525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks a lot Mohit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 17 Feb 2009 11:24:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5222217#M1207525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-17T11:24:33Z</dc:date>
    </item>
  </channel>
</rss>

