<?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 Enhancing Standard Class method in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754393#M1582934</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;I need to modify one method on standard class.  I know this question must be already answered in the forum, but i do not find this , i found how to add a new method but not how to modify a method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i must go SE24: Class-&amp;gt;Enhance-&amp;gt;Give mi Z name implementation ;  but then how insert my code into standard method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody can help me about how can i modify a standard method please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2011 00:25:35 GMT</pubDate>
    <dc:creator>former_member425121</dc:creator>
    <dc:date>2011-04-12T00:25:35Z</dc:date>
    <item>
      <title>Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754393#M1582934</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;I need to modify one method on standard class.  I know this question must be already answered in the forum, but i do not find this , i found how to add a new method but not how to modify a method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I know i must go SE24: Class-&amp;gt;Enhance-&amp;gt;Give mi Z name implementation ;  but then how insert my code into standard method ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does somebody can help me about how can i modify a standard method please.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 00:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754393#M1582934</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2011-04-12T00:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754394#M1582935</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&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; Does somebody can help me about how can i modify a standard method please.&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hello Frank,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To "modify" a standard method you have to use ex/implicit enhancement techniques.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can "overwrite" the method implementation by using "overwrite method". Menu path is as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;Edit u2192 Enhancement Operations u2192 Add Overwrite Method&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Further read on: [Enhancements to Global Classes and Interfaces|http://help.sap.com/saphelp_nw04s/helpdata/en/58/4fb541d3d52d31e10000000a155106/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&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>Tue, 12 Apr 2011 04:59:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754394#M1582935</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2011-04-12T04:59:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754395#M1582936</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 need to use implicit enhancement point to modify behavior of that method. Display that method in SE80, activate enhancement framework  (Ctrl+F4) and display implicit enhancement points Edit -&amp;gt; Enhancement Operations -&amp;gt; Show Implicit Enhancement Options. You will see a line with quotes for each implicit enhancement point. For a class method you will have he start and end of method. You can use start of the method to overwrite code. Just don't forget to call exit to avoid execution of original code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 05:00:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754395#M1582936</guid>
      <dc:creator>mvoros</dc:creator>
      <dc:date>2011-04-12T05:00:10Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754396#M1582937</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Suhas , Martin&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I saw the enhancement implicit points in my standard method  (one point at begin method and other point at end of method) &lt;/P&gt;&lt;P&gt;and i added my code at end of method and it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really don't understand about 'do not forget call exit to avoid call the original class'; when i added my code in method it askme for a enhancement Z implementaction name , but i'm modifying the standard class so even i still remaining calling the standard class the method has my modyfications.  Am i right ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 18:04:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754396#M1582937</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2011-04-12T18:04:04Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754397#M1582938</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Frank,&lt;/P&gt;&lt;P&gt;                  Martin mentioned you "'do not forget call exit to avoid call the original class';"  because if you use the begining of the method enhancement options for your Z implementation you don't need to execute the SAP standard code after your custom code execution. That is the reason he mentioned don't forget to call exit after your custom code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Next question answer is "Yes".&lt;/P&gt;&lt;P&gt;Your new custom  Z implementation will be called when the SAP standard method execution comes to that point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Let me know if you have any questions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Greetson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 18:57:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754397#M1582938</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-04-12T18:57:03Z</dc:date>
    </item>
    <item>
      <title>Re: Enhancing Standard Class method</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754398#M1582939</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ok i know now wich was the point.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks Greetson&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Frank&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Apr 2011 01:00:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enhancing-standard-class-method/m-p/7754398#M1582939</guid>
      <dc:creator>former_member425121</dc:creator>
      <dc:date>2011-04-13T01:00:55Z</dc:date>
    </item>
  </channel>
</rss>

