<?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: More instances in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-instances/m-p/6045824#M1351553</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you need to create 3 object ref variable with different name like hk1, hk2, ....  of the same class... then use the create object statement to create 3 different instances ..... then you can access all their methods and respective attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will surely help you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Punit Raval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 04 Aug 2009 11:24:28 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-04T11:24:28Z</dc:date>
    <item>
      <title>More instances</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-instances/m-p/6045823#M1351552</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 think it will be easy for you, but it's still unclear for me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I've created a class in SE24 called ZCL_HK with a method called TEST, please read the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: hk TYPE REF TO ZCL_HK.&lt;/P&gt;&lt;P&gt;CREATE OBJECT hk.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;CREATE OBJECT hk.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;CREATE OBJECT hk.&lt;/P&gt;&lt;P&gt;CALL METHOD hk-&amp;gt;test.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each create object statement creates a new instance of the class.&lt;/P&gt;&lt;P&gt;My question is, now, how can I access the 3 different instances and their methods and attributes? I mean now I wanted to access both the 1st and the second instances attributes, not only the third...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you&lt;/P&gt;&lt;P&gt;Tamás&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Tamás Nyisztor on Aug 4, 2009 1:13 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 11:12:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-instances/m-p/6045823#M1351552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T11:12:36Z</dc:date>
    </item>
    <item>
      <title>Re: More instances</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/more-instances/m-p/6045824#M1351553</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you need to create 3 object ref variable with different name like hk1, hk2, ....  of the same class... then use the create object statement to create 3 different instances ..... then you can access all their methods and respective attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this will surely help you!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Punit Raval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Aug 2009 11:24:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/more-instances/m-p/6045824#M1351553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-04T11:24:28Z</dc:date>
    </item>
  </channel>
</rss>

