<?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: Interfaces in ABAP Objects? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298681#M1025045</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;Interfaces are like superclasses ( but not the superclasses )&lt;/P&gt;&lt;P&gt;that cannot be instanciated. They do not have any implementation part and do not know the visibility levels of components that is all components are public.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user generally defines the interfaces. In the interfaces, user describes the services that he wants the providers to offer. each class can now decide for itself whether it serves the interface, that is actually the services defined there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: INTERFACE COMPONENTS CAN ONLY BE ACCESSED BY USING OBJECT REFERENCE WHOSE CLASS IMPLEMENTS THE INTERFACE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 04 Aug 2008 06:05:22 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-04T06:05:22Z</dc:date>
    <item>
      <title>Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298680#M1025044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi All,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;     Can someone explain me about interfaces in ABAP Objects with a simple example. What are Interfaces? When do we use Interfaces and how is it different from a CLASS. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;&lt;STRONG&gt;&amp;lt;removed by moderator&amp;gt;&lt;/STRONG&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;Ibrahim&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Mike Pokraka on Aug 6, 2008 1:43 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:00:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298680#M1025044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:00:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298681#M1025045</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;Interfaces are like superclasses ( but not the superclasses )&lt;/P&gt;&lt;P&gt;that cannot be instanciated. They do not have any implementation part and do not know the visibility levels of components that is all components are public.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The user generally defines the interfaces. In the interfaces, user describes the services that he wants the providers to offer. each class can now decide for itself whether it serves the interface, that is actually the services defined there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;NOTE: INTERFACE COMPONENTS CAN ONLY BE ACCESSED BY USING OBJECT REFERENCE WHOSE CLASS IMPLEMENTS THE INTERFACE. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Abhijeet&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:05:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298681#M1025045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:05:22Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298682#M1025046</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Mhmd,&lt;/P&gt;&lt;P&gt;just refer:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="719196"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://membres.lycos.fr/benjaminroger/pg_sap/abap/abap_objects/overview.ppt" target="test_blank"&gt;http://membres.lycos.fr/benjaminroger/pg_sap/abap/abap_objects/overview.ppt&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298682#M1025046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298683#M1025047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The best way to understand Interfaces would be independant of the ABAP language to check out information on Object oriented programming.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In a nut-shell, an interface is a contract and all classes that impliment a certain interface agree to impliment the methods of that interface.  That way a program can utilize a class (for example returned from a factory pattern) without have to know the actual implimenting class just that it impliments the functionality defined by the interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~Ian&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:05:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298683#M1025047</guid>
      <dc:creator>ian_maxwell2</dc:creator>
      <dc:date>2008-08-04T06:05:33Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298684#M1025048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ABAP object doesn't directly support the concept of multiple inheritance. So we achieve it with the help of INTERFACE. &lt;/P&gt;&lt;P&gt;From the technical point of view INTERFACE are the superclass that cannot be instantiated, do not have any an implementation part and only have PUBLIC components. It is used for POLYMORPHISM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For further details,consult with the following links&lt;/P&gt;&lt;P&gt;Interface:&lt;/P&gt;&lt;P&gt;&lt;A href="http://aspalliance.com/1144_Understanding_ABAP_Object.11" target="test_blank"&gt;http://aspalliance.com/1144_Understanding_ABAP_Object.11&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Anirban&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:05:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298684#M1025048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:05:53Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298685#M1025049</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;&lt;A href="http://www.erpgenie.com/abap/OO/syntax.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/OO/syntax.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4eca79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4eca79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sravanthi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298685#M1025049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298686#M1025050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Mohammed Ibrahim,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Interfaces are only definition of methods defined which can later be used by any class and implement those methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Technically, same can be achieved by defining those methods in class itself, but interface provide better flexibility in terms of &lt;STRONG&gt;reusable component&lt;/STRONG&gt; (no need to again and again define common methods, of course implementation may vary), &lt;STRONG&gt;logically grouping functionalities&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example : In drawing, TODRAW, TOCOLOR can be defined as 2 methods logically grouped together to produce a shape. How to and what to draw and color can vary depending on shape your want to produce. Class Rectangle may require very simple implementation of TODRAW interface method while Class Car may require complex implementation of TODRAW method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:30:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298686#M1025050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:30:27Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298687#M1025051</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;Go through the link given below :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/Helpdata/EN/c3/225b6254f411d194a60000e8353423/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/Helpdata/EN/c3/225b6254f411d194a60000e8353423/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4eca79e11d1950f0000e82de14a/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/41/7af4eca79e11d1950f0000e82de14a/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="719196"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With Regards &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Nikunj Shah&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 06:32:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298687#M1025051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-04T06:32:32Z</dc:date>
    </item>
    <item>
      <title>Re: Interfaces in ABAP Objects?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298688#M1025052</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;Interfaces explained with an example : &lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~&lt;/P&gt;&lt;P&gt;Consider a scenario where you need a service from some one. Lets say this service is Translation from German to English.&lt;/P&gt;&lt;P&gt;There is a Service provider - lets call him Interface_Translator.&lt;/P&gt;&lt;P&gt;Ideally what is desired by you - You give him german text and he gives you english text. You should really not bother how he does the translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now lets think of this Interface_Translator. He has a translator (lets say a person) who knows both English and German. So he does it and gives you the result.&lt;/P&gt;&lt;P&gt;Lets say tomorrow ... this person leaves. So what will the Interface_Translator do ?&lt;/P&gt;&lt;P&gt;Lets say He employs 2 persons - One who translated German to Russian and then the other translated Russian to English.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Advantage : You are not affected by the change in the Translation service.&lt;/P&gt;&lt;P&gt;Why ? Because u used the interface to communicate - instead of directly contacting the person who does the translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Lesson : The interface will separate the actual implementation. To put it simpler - Even if the implementation logic changes .. the service that you intend will not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A programming example :&lt;/P&gt;&lt;P&gt;Right now you are calling the method that takes input as German Text and Out put as English text. This method is M1 (on the interface). This interface is implemented by class C1 that does a direct translation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the situation changes... Direct transaltion is not possible... So the same interface is implemented by class C2.&lt;/P&gt;&lt;P&gt;Now also ... your input and out put parameters do not change. so your code does not change.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you were using directly the class method C1 and in future the class C1 is no more... then you need to change all your code to replace C1 by C2.&lt;/P&gt;&lt;P&gt;Advantage : Absolutely no change in your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope it is clear !!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~`&lt;/P&gt;&lt;P&gt;Cheers.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 04 Aug 2008 08:35:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/interfaces-in-abap-objects/m-p/4298688#M1025052</guid>
      <dc:creator>former_member69765</dc:creator>
      <dc:date>2008-08-04T08:35:17Z</dc:date>
    </item>
  </channel>
</rss>

