<?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: What is the difference between function groups and Object Orientation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763588#M1305287</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sameer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call a module of a function group for the first time in your program then the entire function group is loaded. However, this can happen only once within your report and all global variables within the function group will have the same values all the time (except they are manipulated via fm's).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast, you can create as many instances of the same class as you want and all of them can have different global attributes. And all these instances are independent of each other.&lt;/P&gt;&lt;P&gt;On the other hand, if fm_A changes global attributes of the function group and fm_B reads these attributes then fm_B read the changed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in other words:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function Group = can be instantiated only ONCE
Class = can be instantiated unlimited&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jun 2009 10:59:48 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2009-06-17T10:59:48Z</dc:date>
    <item>
      <title>What is the difference between function groups and Object Orientation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763587#M1305286</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello all&lt;/P&gt;&lt;P&gt;I have read about this on the help.sap.com site, I still do not understand it completely, can some one explain me with  a simple example please ? (Not the increment counter example please !).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks a ton.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Sameer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 07:43:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763587#M1305286</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-17T07:43:28Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between function groups and Object Orientation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763588#M1305287</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Sameer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you call a module of a function group for the first time in your program then the entire function group is loaded. However, this can happen only once within your report and all global variables within the function group will have the same values all the time (except they are manipulated via fm's).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast, you can create as many instances of the same class as you want and all of them can have different global attributes. And all these instances are independent of each other.&lt;/P&gt;&lt;P&gt;On the other hand, if fm_A changes global attributes of the function group and fm_B reads these attributes then fm_B read the changed values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or in other words:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Function Group = can be instantiated only ONCE
Class = can be instantiated unlimited&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 10:59:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763588#M1305287</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2009-06-17T10:59:48Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between function groups and Object Orientation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763589#M1305288</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In Classes, you could be having two different types of the Methods: Static and Instance. For the Instance method you MUST instantiate the object. Once you instantiate the object you can get access of attributes and methods as per their visibility. To access the Static methods, you don't have to instantiate the object. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may consider: Function Modules in the Function groups may act as same as the Static Methods of the Class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jun 2009 13:20:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763589#M1305288</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2009-06-17T13:20:25Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between function groups and Object Orientation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763590#M1305289</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 22 Jun 2009 07:01:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763590#M1305289</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-22T07:01:05Z</dc:date>
    </item>
    <item>
      <title>Re: What is the difference between function groups and Object Orientation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763591#M1305290</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 23 Jun 2009 06:52:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/what-is-the-difference-between-function-groups-and-object-orientation/m-p/5763591#M1305290</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-06-23T06:52:56Z</dc:date>
    </item>
  </channel>
</rss>

