<?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/5783639#M1308739</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gary &amp;amp; Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of your solutions have solved the problem. Could you please let me know the reason why start-of-selection has to be mentioned or why the implemention should be moved to the end of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naga Sai Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 22 Jun 2009 13:30:59 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-06-22T13:30:59Z</dc:date>
    <item>
      <title>Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783635#M1308735</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;I'm getting a syntax error in the following code at last line saying 'Statemetn is not accessible'. Can some one tell me why it is not accessabile &amp;amp; what wrong in the code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

REPORT  ztest_classes.
*&amp;amp;---------------------------------------------------------------------*


*----------------------------------------------------------------------*
*       CLASS class1 DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS class1 DEFINITION.
  PUBLIC SECTION.
    METHODS: fun1.
    DATA: var1.
ENDCLASS.                    "class1 DEFINITION

*----------------------------------------------------------------------*
*       CLASS class1 IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS class1 IMPLEMENTATION.
  METHOD fun1.
    WRITE:/ 'Inside FUN1 of class1'.
  ENDMETHOD.                                                "fun1
ENDCLASS.                    "class1 IMPLEMENTATION


DATA: ref1 TYPE REF TO class1.

CREATE OBJECT ref1.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naga Sai Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:11:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783635#M1308735</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T13:11:56Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783636#M1308736</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Try &lt;/P&gt;&lt;P&gt;START-OF-SELECTION.&lt;/P&gt;&lt;P&gt; CREATE OBJECT ref1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or INITIALIZATION&lt;/P&gt;&lt;P&gt; CREATE OBJECT ref1.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:18:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783636#M1308736</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T13:18:06Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783637#M1308737</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or you an move your implementations to the end of the program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT  ztest_classes.
*&amp;amp;---------------------------------------------------------------------*
 
 
*----------------------------------------------------------------------*
*       CLASS class1 DEFINITION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS class1 DEFINITION.
  PUBLIC SECTION.
    METHODS: fun1.
    DATA: var1.
ENDCLASS.                    "class1 DEFINITION
 

 
 
DATA: ref1 TYPE REF TO class1.
 
CREATE OBJECT ref1.
 ref1-&amp;gt;fun1( ).


*----------------------------------------------------------------------*
*       CLASS class1 IMPLEMENTATION
*----------------------------------------------------------------------*
*
*----------------------------------------------------------------------*
CLASS class1 IMPLEMENTATION.
  METHOD fun1.
    WRITE:/ 'Inside FUN1 of class1'.
  ENDMETHOD.                                                "fun1
ENDCLASS.                    "class1 IMPLEMENTATION&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:22:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783637#M1308737</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-06-22T13:22:18Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783638#M1308738</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Basically you should have some event such as START-OF-SELECTION after your class implementation.&lt;/P&gt;&lt;P&gt;Otherwise anything declared is considered as a part of the class and if it is not declared within the implementation you get this syntax error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ankur Parab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:29:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783638#M1308738</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T13:29:17Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783639#M1308739</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Gary &amp;amp; Rich.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Both of your solutions have solved the problem. Could you please let me know the reason why start-of-selection has to be mentioned or why the implemention should be moved to the end of the code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naga Sai Swapna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:30:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783639#M1308739</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T13:30:59Z</dc:date>
    </item>
    <item>
      <title>Re: Syntax Error</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783640#M1308740</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;  Could you please let me know the reason why.... &lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Because otherwise, you will get a syntax error.  &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Basically it is a qwirk of the ABAP syntax checker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 13:39:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-error/m-p/5783640#M1308740</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2009-06-22T13:39:32Z</dc:date>
    </item>
  </channel>
</rss>

