<?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: How to access the objects from  multiple classes in  ABAP Objects in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069594#M94359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use two interfaces and implement them in your class which u are going to access.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 Nov 2005 12:23:16 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2005-11-17T12:23:16Z</dc:date>
    <item>
      <title>How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069587#M94352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt; Give me The scenario and solution to the above problem &amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 11:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069587#M94352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T11:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069588#M94353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Welcome to Forum!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to access an object from a class you must create an instance of that class using&lt;/P&gt;&lt;P&gt;data: inst type ref to class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and using CREATE OBJECT .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then you can access the attributes and methods of that class(Public only)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it will be more helpfull for us to solve your problem if you can put more light to your problem&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cheers&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Hemendra Singh Manral&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 11:56:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069588#M94353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T11:56:37Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069589#M94354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Take a look in this c1 class i am using c2 objects.&lt;/P&gt;&lt;P&gt;CLASS C2 DEFINITION DEFERRED.&lt;/P&gt;&lt;P&gt;&amp;nbsp;CLASS C1 DEFINITION.&lt;/P&gt;&lt;P&gt;  PUBLIC SECTION.&lt;/P&gt;&lt;P&gt;    DATA O2 TYPE REF TO C2.&lt;/P&gt;&lt;P&gt; ENDCLASS.&lt;/P&gt;&lt;P&gt;&amp;nbsp;CLASS C2 DEFINITION.&lt;/P&gt;&lt;P&gt;  public section.&lt;/P&gt;&lt;P&gt;    data : num type i value 5.&lt;/P&gt;&lt;P&gt;ENDCLASS.&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt; data : obj1 type ref to C1.&lt;/P&gt;&lt;P&gt;  CREATE OBJECT obj1.&lt;/P&gt;&lt;P&gt;  create object obj1-&amp;gt;o2.&lt;/P&gt;&lt;P&gt;  write:/5 obj1-&amp;gt;o2-&amp;gt;num .&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:02:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069589#M94354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:02:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069590#M94355</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The thing is how to solve the MULTIPLE-INHERITANCE in ABAP OBJECTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;C is a subclass want to access the different methods of 2 different super classes A and B.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:05:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069590#M94355</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:05:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069591#M94356</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;then in that case use Interface.&lt;/P&gt;&lt;P&gt;multiple inheritance is not possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:11:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069591#M94356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:11:58Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069592#M94357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In abap OO you can have only one super class.&lt;/P&gt;&lt;P&gt;multiple inheritence can be acheived by inheriting multiple interfaces.&lt;/P&gt;&lt;P&gt;abap OO is similler to that of JAVA in inheritence.&lt;/P&gt;&lt;P&gt;so you can not have classes a and b both as super at same time for a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;however if still you want to acheive your perpose then you can do it using heirarchical inheritance where b inherits a and c inhrites b. so this way public methods will be accesible in c&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do revert back if any other doubt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link for more clear picture:&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_erp2004/helpdata/en/9f/dba81635c111d1829f0000e829fbfe/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;P&gt;kindly close the thread if problem by awarding points on left side.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Hemendra Singh Manral&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:14:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069592#M94357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:14:54Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069593#M94358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Singh,&lt;/P&gt;&lt;P&gt;pl can u send me one program which is solve multiple inheritance by interfaces to my mail-id as follows.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mn_kumar_2000@yahoo.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:22:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069593#M94358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:22:27Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069594#M94359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use two interfaces and implement them in your class which u are going to access.&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;vijay&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:23:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069594#M94359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:23:16Z</dc:date>
    </item>
    <item>
      <title>Re: How to access the objects from  multiple classes in  ABAP Objects</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069595#M94360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;at present i dont have any ready program.&lt;/P&gt;&lt;P&gt;for global classes go like this--&lt;/P&gt;&lt;P&gt;goto se80 select class/interface and write name of interface press enter&lt;/P&gt;&lt;P&gt;this will create a global interface, where you can define attributes and methods.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;from here you can also create class. or through tx:se24.&lt;/P&gt;&lt;P&gt;this will create global class.&lt;/P&gt;&lt;P&gt;inside a class you can define attributes,interfaces, methods etc as well in properties you can assign a super class also.&lt;/P&gt;&lt;P&gt;for local classes---&lt;/P&gt;&lt;P&gt;local classes/interfaces are defined inside a abap program, their visibility is only within program while global classes are visible throughout the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this link also it will provide a fast way to learn about abap onjects its short too.&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.intelligententerprise.com/channels/applications/feature/archive/heymann.jhtml" target="test_blank"&gt;http://www.intelligententerprise.com/channels/applications/feature/archive/heymann.jhtml&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;read the link already provided it has sample code also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 Nov 2005 12:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-access-the-objects-from-multiple-classes-in-abap-objects/m-p/1069595#M94360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2005-11-17T12:43:36Z</dc:date>
    </item>
  </channel>
</rss>

