<?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: Move methods from interface to interface in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781016#M648201</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wow. Great solution. I need to read up more on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 01 Sep 2007 00:59:33 GMT</pubDate>
    <dc:creator>GrahamRobbo</dc:creator>
    <dc:date>2007-09-01T00:59:33Z</dc:date>
    <item>
      <title>Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781011#M648196</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello everbody,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;is there any possibility to move methods from one interface to a other (not copy)?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is my case:&lt;/P&gt;&lt;P&gt;I have a implementented class which includes some interfaces.&lt;/P&gt;&lt;P&gt;Now, I want to move some methods of one interface to a new one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The new interface will be also bound in the implemented class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is this possible?&lt;/P&gt;&lt;P&gt;What happens with the implementations of the methods in the exesting class?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Christian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:52:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781011#M648196</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T06:52:58Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781012#M648197</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;IN SE24 there is an option under the menu &amp;lt;b&amp;gt;"Utilites-&amp;gt;Refactoring Assistant".&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But &amp;lt;b&amp;gt;your requirement of&amp;lt;/b&amp;gt; moving a method from One INTERFACE to Another is &amp;lt;b&amp;gt;NOT possible&amp;lt;/b&amp;gt; as this is not technically correct, but IF INTERFACE2 INHERITS INTERFACE1, then this is possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But Moving one method of an interface to another interface is not possible if these interfaces are not related to each other.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 06:57:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781012#M648197</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-08-30T06:57:12Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781013#M648198</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you Sesh.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I must search a other solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 07:15:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781013#M648198</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-30T07:15:27Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781014#M648199</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Christian&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Yes, it is possible to move methods from one interface to another using the &amp;lt;b&amp;gt;Refactoring Assistant&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the &amp;lt;b&amp;gt;scenario &amp;lt;/b&amp;gt;followed by the procedure:&lt;/P&gt;&lt;P&gt;- ZIF_INTERFACE1 with method METHOD_1&lt;/P&gt;&lt;P&gt;- ZIF_INTERFACE2 with method METHOD_2&lt;/P&gt;&lt;P&gt;- ZCL_CLASS implementing both interfaces with different coding in the interface methods&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Aim&amp;lt;/b&amp;gt;: Move ZIF_INTERFACE2&lt;SUB&gt;METHOD_2 to ZIF_INTERFACE1&lt;/SUB&gt;METHOD_2&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Steps for refactoring:&lt;/P&gt;&lt;P&gt;1. Delete method METHOD_2 from interface ZIF_INTERFACE_2 (and activate).&lt;/P&gt;&lt;P&gt;2. SE80 (or SE24): Open class ZCL_CLASS in &amp;lt;i&amp;gt;Change &amp;lt;/i&amp;gt;mode -&amp;gt; popup appears asking whether you want to adjust class? -&amp;gt; Confirm (Yes).&lt;/P&gt;&lt;P&gt;3. Next popup asking whether ZIF_INTERFACE2~METHOD_2 should be deleted or saved as local method -&amp;gt; choose &amp;lt;b&amp;gt;local method&amp;lt;/b&amp;gt;, name METHOD_2 (and activate)&lt;/P&gt;&lt;P&gt;4. Choose: Menu Utilities -&amp;gt; Refactoring Assistant =&amp;gt; expand the hierarchy and &amp;lt;b&amp;gt;drag&amp;amp;drop (!!!&lt;IMG src=") &amp;lt;/b&amp;gt;the local method METHOD_2 to interface ZIF_INTERFACE1 -&amp;gt; save (and activate)

As a result method METHOD_2 has been move from interface ZIF_INTERFACE2 to ZIF_INTERFACE1 while the coding in method ZCL_CLASS-&amp;gt;ZIF_INTERFACE1~METHOD_2 has been preserved.

A great job done by the SAP developers" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 30 Aug 2007 19:09:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781014#M648199</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-08-30T19:09:59Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781015#M648200</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have try it and it works!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much Uwe!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Aug 2007 10:35:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781015#M648200</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-31T10:35:56Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781016#M648201</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;wow. Great solution. I need to read up more on this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;&lt;P&gt;Graham&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 00:59:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781016#M648201</guid>
      <dc:creator>GrahamRobbo</dc:creator>
      <dc:date>2007-09-01T00:59:33Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781017#M648202</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Graham&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I used to be a scientist (originally studied Biochemistry -&amp;gt; see short bio on business card). In science it is extremely difficult to prove that something is not possible or does not exist. You rarely find publications trying to do that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Therefore, if somebody (here in the forums) says that something is not possible I get excited just for the sake of refuting this opinion. In most cases such negative statements are due to&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;- lack of knowledge
- lack of imagination
- a poor snapshot&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It took me just two trials to find the right way. I have not yet used the refactoring assistant that much but I believe that any reasonable refactoring will be supported by this assistant.&lt;/P&gt;&lt;P&gt;Apparently many people believe there is something special about ABAP-OO which is not the case. The major OO-principles can all be applied to ABAP-OO as to any other OO-language (like Java).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 01 Sep 2007 13:52:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781017#M648202</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-09-01T13:52:10Z</dc:date>
    </item>
    <item>
      <title>Re: Move methods from interface to interface</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781018#M648203</link>
      <description>&lt;P&gt;Scenario : Moving a method from one interface to another ist not working as described in the answer.
&lt;/P&gt;&lt;P&gt;dragging the saved local method will ad another method to the existing interface instead of replacing the implementation with the saved implementation. It would add more and more methods to the 'new' interface .&lt;/P&gt;&lt;P&gt;Even worth: Did not work at all, as the saved methods did not copy any of the parameters , saving is wrong for me.&lt;/P&gt;&lt;P&gt;unfortunately i will give up. (task was:  integrating one interface into another -&amp;gt; therefore moving all implementations form one into the new one.  Wanted to move most component of a special interface into a more general one and only keep the more special features in the existing one   ) &lt;/P&gt;&lt;P&gt;  Another comment: Why don't try this: Because before agreeing to adjust, you do not know that there will be the option for a local copy : In the Info before it says, it will just delete the method and therefore the implementation would be lost . There i stopped. &lt;/P&gt;&lt;P&gt; Intuitively i expected, that i keep the methods of the interfaces and will have the option to also  drag and drop methods of included interfaces : This action then would mean to move the implementation instead of adding as new method like it is, when i drag a method of the class  (what is a very nice feature)  &lt;/P&gt;</description>
      <pubDate>Thu, 10 Sep 2020 08:01:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/move-methods-from-interface-to-interface/m-p/2781018#M648203</guid>
      <dc:creator>Uli_42</dc:creator>
      <dc:date>2020-09-10T08:01:53Z</dc:date>
    </item>
  </channel>
</rss>

