<?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 local type definition in a class causing problem in inheritance in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-type-definition-in-a-class-causing-problem-in-inheritance/m-p/3630983#M874547</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;Situation  : &lt;/P&gt;&lt;P&gt;A class with local type defined (by adding code after clicking local types button in se24 - class builder, but NOT in either public or private or protected sections) . This class has private data member of that defined type and also has a public method using that private member. This class is activated and has no problems.&lt;/P&gt;&lt;P&gt;Created a subclass, inheriting the above mentioned class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem : &lt;/P&gt;&lt;P&gt;When I do syntax check or try to activate the created subclass , I get syntax error saying - type unknown in parent class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas if type definition is coded in either public or private or protected section of parent class then its subclass can be activated with no errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any know :&lt;/P&gt;&lt;P&gt;The reason for syntax error ? &lt;/P&gt;&lt;P&gt;Differences in defining types in place after clicking local types button in se24 and that of defining types in either public or private or protected sections of the class ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Apr 2008 00:11:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-15T00:11:06Z</dc:date>
    <item>
      <title>local type definition in a class causing problem in inheritance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-type-definition-in-a-class-causing-problem-in-inheritance/m-p/3630983#M874547</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;Situation  : &lt;/P&gt;&lt;P&gt;A class with local type defined (by adding code after clicking local types button in se24 - class builder, but NOT in either public or private or protected sections) . This class has private data member of that defined type and also has a public method using that private member. This class is activated and has no problems.&lt;/P&gt;&lt;P&gt;Created a subclass, inheriting the above mentioned class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem : &lt;/P&gt;&lt;P&gt;When I do syntax check or try to activate the created subclass , I get syntax error saying - type unknown in parent class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Whereas if type definition is coded in either public or private or protected section of parent class then its subclass can be activated with no errors. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do any know :&lt;/P&gt;&lt;P&gt;The reason for syntax error ? &lt;/P&gt;&lt;P&gt;Differences in defining types in place after clicking local types button in se24 and that of defining types in either public or private or protected sections of the class ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance,&lt;/P&gt;&lt;P&gt;Chan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 00:11:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-type-definition-in-a-class-causing-problem-in-inheritance/m-p/3630983#M874547</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-15T00:11:06Z</dc:date>
    </item>
    <item>
      <title>Re: local type definition in a class causing problem in inheritance</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/local-type-definition-in-a-class-causing-problem-in-inheritance/m-p/3630984#M874548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Chandu&lt;/P&gt;&lt;P&gt;&lt;/P&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; Situation  : &lt;/P&gt;&lt;P&gt;&amp;gt; A class with local type defined (by adding code after clicking local types button in se24 - class builder, but NOT in either public or private or protected sections) . This class has private data member of that defined type and also has a public method using that private member. This class is activated and has no problems.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is already not possible on my system (ECC 6.0). I declared a private type and used it in a public method. Trying to activate the class results in error message:&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;EM&gt;In the PUBLIC SECTION you may only refer to global types when typing parameters. Parameter "..." is local.&lt;/EM&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Private attributes and methods using private local types are no problem because they are neither inherited nor visible externally.&lt;/P&gt;&lt;P&gt;Protected local types and protected attributes / methods should work as well.&lt;/P&gt;&lt;P&gt;However, public attributes and methods require public local types (= global types).&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;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Apr 2008 03:27:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/local-type-definition-in-a-class-causing-problem-in-inheritance/m-p/3630984#M874548</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-04-15T03:27:39Z</dc:date>
    </item>
  </channel>
</rss>

