<?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 ABAP OO question in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867444#M929464</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;Can someone please explain me the concept withe the below behavior ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System : SAPCRM 20007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class : CL_BT311H_C_CSROVERVIEW_IMPL&lt;/P&gt;&lt;P&gt;Super Class : CL_BT311H_C_CSROVERVIEW.(A)&lt;/P&gt;&lt;P&gt;Super class of A : CL_CRM_UIU_BT_H_OVW_VIEWSET (B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method Do_Handle_event is defined in the Super class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at method call EH_ONCREATE_CLOSED(line 64) in the above do_handle_event method. This method is not defined in the super class (A) but is defined in Sper class B. In this case, wouldn't we need to use  keyword 'SUPER' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I double click on EH_ONCREATE_CLOSED method it takes me to the Super class B. I would expect the same behavior when I debuf, i.e control must go to the definition of the method in super class B. But in debug mode EH_ONCREATE_CLOSED takes us to the definition in implementation class ( CL_BT311H_C_CSROVERVIEW_IMPL) ( There is a method with same name  EH_ONCREATE_CLOSED in the impl class. Why this behavior ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 May 2008 05:37:02 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-15T05:37:02Z</dc:date>
    <item>
      <title>ABAP OO question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867444#M929464</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;Can someone please explain me the concept withe the below behavior ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System : SAPCRM 20007.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Class : CL_BT311H_C_CSROVERVIEW_IMPL&lt;/P&gt;&lt;P&gt;Super Class : CL_BT311H_C_CSROVERVIEW.(A)&lt;/P&gt;&lt;P&gt;Super class of A : CL_CRM_UIU_BT_H_OVW_VIEWSET (B)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method Do_Handle_event is defined in the Super class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please look at method call EH_ONCREATE_CLOSED(line 64) in the above do_handle_event method. This method is not defined in the super class (A) but is defined in Sper class B. In this case, wouldn't we need to use  keyword 'SUPER' ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I double click on EH_ONCREATE_CLOSED method it takes me to the Super class B. I would expect the same behavior when I debuf, i.e control must go to the definition of the method in super class B. But in debug mode EH_ONCREATE_CLOSED takes us to the definition in implementation class ( CL_BT311H_C_CSROVERVIEW_IMPL) ( There is a method with same name  EH_ONCREATE_CLOSED in the impl class. Why this behavior ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 05:37:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867444#M929464</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T05:37:02Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP OO question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867445#M929465</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Not all of us have access to CRM.  Can you construct or find an example that's part of a package in BC?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you have an object defined with ref to CL_BT311H_C_CSROVERVIEW_IMPL and call a method.  If that method isn't defined in the class, but is defined (protected or public) in a superclass, then the superclass method will be called.  You only use SUPER when you've defined the method in the subclass, but want to run the superclass implementation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Re:the debugger.  It just works like that.  I don't see what the problem is.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;matt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 08:10:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867445#M929465</guid>
      <dc:creator>matt</dc:creator>
      <dc:date>2008-05-15T08:10:33Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP OO question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867446#M929466</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the answer Matt. I'm still not clear with the behavior during debug. Let me see if I can explain it more clearly here..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have three classes: 1) IMPL CLASS 2) SUPER CLASS A (Super class of IMPL) 3) SUPER CLASS B (SUPER CLASS OF A)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) Method : EH_ONCREATE_CLOSED called in Superclass A.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) Super class A does not have definition for EH_ONCREATE_CLOSED method. Super class B has this method defined(protected method). When I double click on this method it takes me to the method definition in the super class.&lt;/P&gt;&lt;P&gt;(so far, I understand the behavior)&lt;/P&gt;&lt;P&gt;3)  The same method EH_ONCREATE_CLOSED (again protected) is also defined in IMPL Class. I have a break point at the statement that triggers the method call in super class A and I do F5. It takes me to EH_ONCREATE_CLOSED method in IMPL Class. The question I have here is why it doesn't take me to the definition of the method in super class B ? Because that is where it takes me when I do double click on the method call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your time and appreciate your help.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sreesanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:34:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867446#M929466</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:34:58Z</dc:date>
    </item>
    <item>
      <title>Re: ABAP OO question</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867447#M929467</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Matt,&lt;/P&gt;&lt;P&gt;Package BC does not have any classes in it.. I was not sure what you wanted me to check in this package. Can you please let me know what to look for here to get better understanding of the concept ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sreesanth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 May 2008 14:44:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/abap-oo-question/m-p/3867447#M929467</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-15T14:44:51Z</dc:date>
    </item>
  </channel>
</rss>

