<?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 subclass instance not created during runtime in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179482#M1624131</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;For an existing standard class a subclass was created and during runtime the me object reference points to the subclass name there by allowing the subclass additional/custom methods to be triggered. &lt;/P&gt;&lt;P&gt;We have done service pack upgrade in the system and during runtime I find the subclass does not exist in the me object reference due to which the custom code in the subclass is not being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix the above issue so that and subclass instance is created by the superclass during runtime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 Sep 2011 19:41:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-09-14T19:41:37Z</dc:date>
    <item>
      <title>subclass instance not created during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179482#M1624131</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;For an existing standard class a subclass was created and during runtime the me object reference points to the subclass name there by allowing the subclass additional/custom methods to be triggered. &lt;/P&gt;&lt;P&gt;We have done service pack upgrade in the system and during runtime I find the subclass does not exist in the me object reference due to which the custom code in the subclass is not being called.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How do I fix the above issue so that and subclass instance is created by the superclass during runtime?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Sep 2011 19:41:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179482#M1624131</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-14T19:41:37Z</dc:date>
    </item>
    <item>
      <title>Re: subclass instance not created during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179483#M1624132</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok I guess I need to rephrase the question..&lt;/P&gt;&lt;P&gt;I have a standard class say SAP_Class and a subclass of this class say Z_Class. Now during run time in statements like me-&amp;gt;call_some_method() how is the subclass method invoked? In debug I can find the me is pointing Z_class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After the Service pack upgrade I can find the same call me-&amp;gt;call_some_method() points to SAP_Class instead of Z_class. How to fix this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Duplicate post deleted. Please continue with this post&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Sep 15, 2011 4:48 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 08:16:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179483#M1624132</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T08:16:37Z</dc:date>
    </item>
    <item>
      <title>Re: subclass instance not created during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179484#M1624133</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; After the Service pack upgrade I can find the same call me-&amp;gt;call_some_method() points to SAP_Class instead of Z_class. How to fix this?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you might be knowing &lt;EM&gt;me&lt;/EM&gt; is the self-reference variable which contains the reference to the instance of the class in which it is accessed. So my question to you is : Where did you check the method call; in the subclass or the superclass? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If possible, post the code snippet for better responses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 11:24:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179484#M1624133</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-15T11:24:35Z</dc:date>
    </item>
    <item>
      <title>Re: subclass instance not created during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179485#M1624134</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had put a breakpoint to debug in the subclass which was being invoked. &lt;/P&gt;&lt;P&gt;In the new system where the service pack has been applied I have put breakpoint in the same method but the subclass method is not being called. So the issue is the subclass instance is not created. But how do you set the subclass instance to be created during runtime? Do i need to do any changes or if the subclass inherits superclass the instance will be created automatically?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 12:01:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179485#M1624134</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-09-15T12:01:47Z</dc:date>
    </item>
    <item>
      <title>Re: subclass instance not created during runtime</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179486#M1624135</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Srinivas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;I had put a breakpoint to debug in the subclass which was being invoked. &lt;/P&gt;&lt;P&gt;In the new system where the service pack has been applied I have put breakpoint in the same method but the subclass method is not being called.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;The superclass method is being called. I'm sure after facing this problem(and solving it, of course) you'll have a better understanding of the 'polymorphic' behaviour of objects &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;if the subclass inherits superclass the instance will be created automatically?&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;NO!!! &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must understand none of us has a crystal ball where we can gaze &amp;amp; find out the solution. If you want valuable responses please provide as much info as possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Sep 2011 14:54:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/subclass-instance-not-created-during-runtime/m-p/8179486#M1624135</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-09-15T14:54:51Z</dc:date>
    </item>
  </channel>
</rss>

