<?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: Error while redefining a method in sub class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866214#M1788240</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijaya lakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method is already Created in your above screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/309578" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 28 Oct 2013 07:02:13 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-10-28T07:02:13Z</dc:date>
    <item>
      <title>Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866211#M1788237</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When i am trying to redefine ( SYNC_DATA ) method in one subclass, i am getting the following error&lt;/P&gt;&lt;H3&gt;&lt;SPAN style="color: #ff0000;"&gt;"A Component SYNC_DATA has already been inherited from ZCL_IPS_EXCEL_MASTER"( this is parent class)&lt;/SPAN&gt;&lt;/H3&gt;&lt;P&gt;please check the screen shot, could you please let me know what is the issue ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance Thanks&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/309566" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 06:39:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866211#M1788237</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T06:39:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866212#M1788238</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please check your methods, SYNC_DATA is already defined(i.e. inherited from parent)....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please select the existing method for re-definition rather than&amp;nbsp; creating new..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 06:43:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866212#M1788238</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T06:43:33Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866213#M1788239</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As Maju said, you need to redefine the same method from menu options. It won't allow you to create another method with the same name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also if you want to invoke the super class method in addition to your redefined code, you need to call super-&amp;gt;SYNC_DATA() before the re-definition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ajay Bose&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 06:57:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866213#M1788239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T06:57:45Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866214#M1788240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Vijaya lakshmi,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Method is already Created in your above screen shot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG class="migrated-image" src="https://community.sap.com/legacyfs/online/storage/attachments/storage/7/jiveimages/309578" width="450" /&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 07:02:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866214#M1788240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T07:02:13Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866215#M1788241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Maju&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could you please let me know , how to call this SYNC_DATA&amp;nbsp; method in my program &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance Thanks&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866215#M1788241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T08:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866216#M1788242</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;You can call your method using objects or from the "Pattern" button in ABAP editor..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use Pattern so that it gives you the same interface as u call a function module.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. From SE38, press "Pattern Button"&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. Click on ABAP Object patterns radio button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. Now Select "call Method" radio button..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4. &lt;STRONG&gt;Instance:&lt;/STRONG&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Provide the Object created for the class&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Class/Interface:&lt;/STRONG&gt; provide the class name&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;STRONG&gt;Method:&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/STRONG&gt;provide the Method name&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;5. ENTER&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866216#M1788242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T08:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866217#M1788243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear Friends&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;could you please let me know , how to call this SYNC_DATA&amp;nbsp; method in my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Advance Thanks&lt;/P&gt;&lt;P style="font-style: inherit; font-family: inherit;"&gt;Vijaya&lt;/P&gt;&lt;P class="jive-thread-reply-btn"&gt;&lt;/P&gt;&lt;DIV class="jive-thread-reply-btn-helpful" style="font-style: inherit; font-size: 11px; font-family: inherit;"&gt;&lt;A _jive_internal="true" href="https://answers.sap.com/thread/3445146" style="margin: 0 20px 0 0; padding: 2px 14px 4px 28px; font-weight: bold; font-style: inherit; font-family: inherit; background-color: #f3f3f3; color: #3778c7;"&gt;Error while redefining a method in sub class&lt;/A&gt;&lt;P&gt;&lt;/P&gt;&lt;/DIV&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:19:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866217#M1788243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T08:19:44Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866218#M1788244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SYNC_DATA&amp;nbsp; is declared as protected &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Inline image 1" class="jiveImage" src="https://mail.google.com/mail/ca/?ui=2&amp;amp;ik=680557c666&amp;amp;view=att&amp;amp;th=141fe3534e01685f&amp;amp;attid=0.1&amp;amp;disp=emb&amp;amp;realattid=ii_141fe31760ebe230&amp;amp;zw&amp;amp;atsh=1" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when i try to call this method i am getting "&lt;STRONG style="color: #222222; font-family: arial, sans-serif; background-color: #ff0000;"&gt; ACCESS TO PROTECT METHOD SYNC_DATA&amp;nbsp; IS NOT ALLOWED&lt;/STRONG&gt;"&amp;nbsp; could you please let me know how to call this method in my program&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advance thanks&lt;/P&gt;&lt;P&gt;Vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 08:54:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866218#M1788244</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T08:54:29Z</dc:date>
    </item>
    <item>
      <title>Re: Error while redefining a method in sub class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866219#M1788245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would recommend you to first understand the Object oriented concepts and start your work..Please search through scn for threads and documents...&lt;/P&gt;&lt;P&gt;To being with see this: &lt;A _jive_internal="true" href="https://answers.sap.com/docs/DOC-10236"&gt;http://scn.sap.com/docs/DOC-10236&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"&lt;SPAN style="color: #000000; font-family: Arial; background-color: #f2f4f7;"&gt;In subclasses, it is not possible to access the protected components of the superior classes using reference variables of the type of the superior class, because otherwise an attribute of an object of the dynamic type of the superior class or another subclass could be changed.&lt;/SPAN&gt;"{SAP Documentation}&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please use the correct Object(instance) to access the method..&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 28 Oct 2013 09:38:40 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-redefining-a-method-in-sub-class/m-p/9866219#M1788245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-10-28T09:38:40Z</dc:date>
    </item>
  </channel>
</rss>

