<?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: OO Object: Constructor and Static Attribute? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624802#M873307</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justa adding a bit more information about CLASS_CONSTRUCTOR :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are executed once per program&lt;/P&gt;&lt;P&gt;They are first executed when : -Create an instance of the class or&lt;/P&gt;&lt;P&gt;                                             -Acessing a static attribute of the class&lt;/P&gt;&lt;P&gt;                                             -Calling a static methid of the class&lt;/P&gt;&lt;P&gt;                                             -Register and event for this class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Apr 2008 18:48:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-03T18:48:36Z</dc:date>
    <item>
      <title>OO Object: Constructor and Static Attribute?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624800#M873305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've defined an internal table to my Class as a static attribute. I would like it to be filled once during runtime and it should stay populated because it is a static attribute....right?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Please confirm: I need to create a method "Constructor". Within this method, it should load the internal table. This will occur when I say "Create Object" in my code automatically?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Am I correct?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;           Thank-You.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 19:25:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624800#M873305</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T19:25:58Z</dc:date>
    </item>
    <item>
      <title>Re: OO Object: Constructor and Static Attribute?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624801#M873306</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;You need to create the &lt;STRONG&gt;CLASS_CONSTRUCTOR&lt;/STRONG&gt; method to populate the static internal table. This method run in the first time you use the create object or when you call a static method. And this method run only once per class. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The &lt;STRONG&gt;CONSTRUCTOR&lt;/STRONG&gt; method is called every time you create a new instance to the class using the command CREATE OBJECT.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, the CLASS_CONSTRUCTOR run only once, instead the times that the class is instancied and the CONSTRUCTOR run one time per instance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 02 Apr 2008 19:45:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624801#M873306</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-02T19:45:56Z</dc:date>
    </item>
    <item>
      <title>Re: OO Object: Constructor and Static Attribute?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624802#M873307</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Justa adding a bit more information about CLASS_CONSTRUCTOR :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;They are executed once per program&lt;/P&gt;&lt;P&gt;They are first executed when : -Create an instance of the class or&lt;/P&gt;&lt;P&gt;                                             -Acessing a static attribute of the class&lt;/P&gt;&lt;P&gt;                                             -Calling a static methid of the class&lt;/P&gt;&lt;P&gt;                                             -Register and event for this class&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Apr 2008 18:48:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oo-object-constructor-and-static-attribute/m-p/3624802#M873307</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-03T18:48:36Z</dc:date>
    </item>
  </channel>
</rss>

