<?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: Object creation problem in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602170#M270359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;As u said here that student is inherted from person. Object reference should be created first for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links for OO ABAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sap.user72/blog/2005/05/10/a-small-tip-for-the-beginners-in-oo-abap&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geekinterview.com/Interview-Questions/Concepts/OOPS" target="test_blank"&gt;http://www.geekinterview.com/Interview-Questions/Concepts/OOPS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abap_ood.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abap_ood.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/OO/eg.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/OO/eg.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brabandt.de/html/abap_oo.html" target="test_blank"&gt;http://www.brabandt.de/html/abap_oo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/OO/index.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the transaction ABAPDOCU there are lot of programs related to OOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 22 Sep 2006 09:50:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-22T09:50:45Z</dc:date>
    <item>
      <title>Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602168#M270357</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'm working on a small transaction, in which I already defined some classes. In the TOP include for this transaction, I'm trying to define a reference to an object by writing:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA objref TYPE REF TO student.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Student is a class, inheriting from the Person abstract class.&lt;/P&gt;&lt;P&gt;This doesn't work, I get an error saying that 'STUDENT' is unknown. The weird thing is, if I do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA objref TYPE REF TO person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It works fine...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I really don't understand this at all, so if someone have an idea of what's going on, please give me a hand &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:43:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602168#M270357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:43:20Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602169#M270358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where you defined the classes and where are you trying to create object.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regs,&lt;/P&gt;&lt;P&gt;Venkat&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:49:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602169#M270358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:49:38Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602170#M270359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thomas,&lt;/P&gt;&lt;P&gt;As u said here that student is inherted from person. Object reference should be created first for that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check the below links for OO ABAP:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/sap.user72/blog/2005/05/10/a-small-tip-for-the-beginners-in-oo-abap&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geekinterview.com/Interview-Questions/Concepts/OOPS" target="test_blank"&gt;http://www.geekinterview.com/Interview-Questions/Concepts/OOPS&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.geocities.com/victorav15/sapr3/abap_ood.html" target="test_blank"&gt;http://www.geocities.com/victorav15/sapr3/abap_ood.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/abap/OO/eg.htm" target="test_blank"&gt;http://www.erpgenie.com/abap/OO/eg.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.brabandt.de/html/abap_oo.html" target="test_blank"&gt;http://www.brabandt.de/html/abap_oo.html&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.erpgenie.com/sap/abap/OO/index.htm" target="test_blank"&gt;http://www.erpgenie.com/sap/abap/OO/index.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check the transaction ABAPDOCU there are lot of programs related to OOPS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prakash.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:50:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602170#M270359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:50:45Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602171#M270360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Thomas,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As i understand, there are some already defined classes. and you are trying to define a reference to an object which is the child of some class(person) in TOP include. &lt;/P&gt;&lt;P&gt;The subclass(student) does not exist in the include that is the reason you are not able to crreate the ref to this. However, as the parent class(person) exist in this include you can create an object ref to this class.&lt;/P&gt;&lt;P&gt;I would suggest you to either define the subclass in the top include or define the reference to the object(student) in the main program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:50:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602171#M270360</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:50:53Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602172#M270361</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Here is my program (orders of the different includes):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;INCLUDE ZSRS_OBJ_TOP.&lt;/P&gt;&lt;P&gt;INCLUDE ZSRS_OBJ_CLASSES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All my classes (including Person) are defined and implemented in the ZSRS_OBJ_CLASSES include. That means I even shouldn't be able to do:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA objref TYPE REF TO person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in my TOP ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 09:58:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602172#M270361</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T09:58:47Z</dc:date>
    </item>
    <item>
      <title>Re: Object creation problem</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602173#M270362</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Problem solved: I removed the classes include from the program code and put in on top of the TOP include, just after the PROGRAM statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 22 Sep 2006 10:17:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/object-creation-problem/m-p/1602173#M270362</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-22T10:17:38Z</dc:date>
    </item>
  </channel>
</rss>

