<?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 instance attributes and static attributes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674522#M297677</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;   Can anybody please explain me instance and static attributes with examples...please&lt;/P&gt;&lt;P&gt;Thanks n Regards&lt;/P&gt;&lt;P&gt;vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 31 Oct 2006 21:24:18 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-10-31T21:24:18Z</dc:date>
    <item>
      <title>instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674522#M297677</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;   Can anybody please explain me instance and static attributes with examples...please&lt;/P&gt;&lt;P&gt;Thanks n Regards&lt;/P&gt;&lt;P&gt;vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 21:24:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674522#M297677</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T21:24:18Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674523#M297678</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Instance attributes, we need to create an object before working with them.ie Suppose there are 5 instance attributes, we need to create objects for all these 5 attributes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While for static attributes, one object is enough for all of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Foe eg: Suppose that you have 5 instance attributes, if we want to assign values to them, you have to create 5 objects and then assign value to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the other hand, if you have 5 static attributes, you need to have just one object . Assigning value to attribute of that object once is enough to assign values to all the 5 of them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This may sound similar to static variables in other languages like C,C++ etc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Award points if found useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 21:35:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674523#M297678</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T21:35:11Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674524#M297679</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sylendar&lt;/P&gt;&lt;P&gt;  Can u please give me some example.iam very much confused with this oops concept.also can u suggest me which is the best place to find out some info abt abap objects.&lt;/P&gt;&lt;P&gt;Thanks and regards&lt;/P&gt;&lt;P&gt;vijaya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 21:39:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674524#M297679</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T21:39:42Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674525#M297680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can go through this link which contains OOP documents I have uploaded...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.esnips.com/web/OOP" target="test_blank"&gt;http://www.esnips.com/web/OOP&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also go to transaction code ABAPDOCU and go to &amp;lt;b&amp;gt;ABAP Objects&amp;lt;/b&amp;gt; section.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also get nice programs in this site.&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;&amp;lt;b&amp;gt;Award points if found useful.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;SP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Oct 2006 21:44:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674525#M297680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-10-31T21:44:57Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674526#M297681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;A SIMPLE EXPLANATION TO UR QUESTION WOULD BE &lt;/P&gt;&lt;P&gt;STATIC ATTRIBUTES BELONG TO THE CLASS ITSELF .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE INSTANCE ATTRIBUTES BELONG TO THE INSTANCE OF DAT CLASS i.e. OBJECTS OF THAT CLASS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;STATIC ATTRIBUTES CAN BE ACCESSED EVEN WITHOUT CREATING OBJECT OF DAT CLASS  COZ THEY BELONG TO THE CLASS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHILE TO ACCESS INSTANCE ATTRIBUTES U NEED TO CREATE OBJECT OF DAT CLASS .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 22 Nov 2006 06:51:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674526#M297681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-22T06:51:53Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674527#M297682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;  Instance attributes are confined to each instance of the class.&lt;/P&gt;&lt;P&gt;  Static     attributes remain the same for the whole class irrespective of any number of instances.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For example....&lt;/P&gt;&lt;P&gt;Consider there is a scenario where one user is creating 100 sales orders of type 'OR' (Standard Order). The Order type and the user remain the same. Whereas the details for the sales order like Sold to party, Items specific to each sales order.&lt;/P&gt;&lt;P&gt;  So, in the above case Order type and User Id are Static variables, they remain the same across all the instances. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;Instance attributes are for example the items of the sales order, Sales order number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I have answered your question.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Vara&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 28 Nov 2006 22:43:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674527#M297682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-28T22:43:10Z</dc:date>
    </item>
    <item>
      <title>Re: instance attributes and static attributes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674528#M297683</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vijaya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Instance attributes&lt;/P&gt;&lt;P&gt;There exist one instance attribute for each instance of the class, thus they exist seperately for each object. Instance attributes are declared with the DATA keyword.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Static attributes&lt;/P&gt;&lt;P&gt;Static attributes exist only once for each class. The data are the same for all instances of the class, and can be used e.g. for instance counters. Static attributes are defined with the keyword CLASS-DATA.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PRIVATE SECTION.&lt;/P&gt;&lt;P&gt;  CLASS-DATA: counter type i,   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kinshuk&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 29 Nov 2006 06:18:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/instance-attributes-and-static-attributes/m-p/1674528#M297683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-11-29T06:18:37Z</dc:date>
    </item>
  </channel>
</rss>

