<?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: Overwriting method for standard class in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396265#M1924779</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The another method that is called in overwritten method might be private or protected method of that class. So this cannot be accessed in Overwritten method.&lt;/P&gt;&lt;P&gt;To call these methods, instead of overwritten method, implement implicit enhancement with all standard and your logic in place and at end use @ Check 1 =2 . or return statement so that your code is executed instead of standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 29 Jun 2016 13:17:45 GMT</pubDate>
    <dc:creator>former_member249486</dc:creator>
    <dc:date>2016-06-29T13:17:45Z</dc:date>
    <item>
      <title>Overwriting method for standard class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396264#M1924778</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a requirement where I need to insert a code in the class CL_ILM_CHECK_API. It has got a method EXECUTE_ANALYSIS_ARCH. I need to insert the code in the middle of the method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did a overwriting method and have created by going to Edit-&amp;gt;enhancement operations-&amp;gt;overwriting method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;There is another method named CREATE_TABLE_DYNAMIC which is called inside this overwriting method. When i try to activate the code, it is resulting in an error stating that the given method is private.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have seen a variable called CORE_OBJECT referring to the class CL_ILM_CHECK_API.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i use this variable to solve my issues.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also do i need to create a new method in the class CL_ILM_CHECK_API and make it public so that I can call the overwritten method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kindly provide your inputs on the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;ES&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 04 Nov 2015 17:43:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396264#M1924778</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-11-04T17:43:19Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting method for standard class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396265#M1924779</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The another method that is called in overwritten method might be private or protected method of that class. So this cannot be accessed in Overwritten method.&lt;/P&gt;&lt;P&gt;To call these methods, instead of overwritten method, implement implicit enhancement with all standard and your logic in place and at end use @ Check 1 =2 . or return statement so that your code is executed instead of standard.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Jun 2016 13:17:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396265#M1924779</guid>
      <dc:creator>former_member249486</dc:creator>
      <dc:date>2016-06-29T13:17:45Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting method for standard class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396266#M1924780</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Eshwar,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can modify the code where the call to the method create_table_dynamic is made as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;core_object-&amp;gt;create_table_dynamic( ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Don't make any changes to the visibility of the overwritten method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you face any issues further.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and Regards,&lt;/P&gt;&lt;P&gt;Vinay Mutt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 07:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396266#M1924780</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2016-06-30T07:32:43Z</dc:date>
    </item>
    <item>
      <title>Re: Overwriting method for standard class</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396267#M1924781</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you overwrite a method for a given class the first time, the system asks you whether you want to have access to private/protected members. You must reply "yes", which will make your local enhancement class a "friend" of the enhanced class. Then, you may use the CORE_OBJECT instance to access these private/protected members. No need to "create a new method".&lt;/P&gt;&lt;P&gt;As it seems you replied "no", you have to delete your enhancement implementation, activate, and create again, so that the system asks you the question again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BUT, I would recommend to do it without an overwrite method, so that to benefit of upgrade procedure, by doing a change of standard (i.e. asking for an access key).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Jun 2016 10:45:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/overwriting-method-for-standard-class/m-p/11396267#M1924781</guid>
      <dc:creator>Sandra_Rossi</dc:creator>
      <dc:date>2016-06-30T10:45:30Z</dc:date>
    </item>
  </channel>
</rss>

