<?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: OOP and function groups in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313839#M1028299</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;Whenever any function module is called in any program Function Group is loaded in Memory. You can call same function module as many time as you want but Function Group will not be instantiated (i.e. loaded in memory) every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here author is trying to comapre Function Group and Class Instance.&lt;/P&gt;&lt;P&gt;In OOP, Class Instance can be initiated as many times as you are defining an object of that class, you can work independently with one or more instance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 13 Aug 2008 06:30:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-08-13T06:30:48Z</dc:date>
    <item>
      <title>OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313832#M1028292</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;&lt;/P&gt;&lt;P&gt;I got this from SAP library:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The main difference between real object orientation and function groups is that although a program can work with the instances of several function groups at the same time, it cannot work with several instances of a single function group.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone give me some example in code on the above explanation?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Many thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 14:01:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313832#M1028292</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T14:01:55Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313833#M1028293</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;&lt;/P&gt;&lt;P&gt;The main difference between real object orientation and function groups is that although a program can work with the instances of several function groups at the same time, it cannot work with several instances of a single function group.&lt;/P&gt;&lt;P&gt;Explanation:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This requirement is met by object orientation, Abap object allows you to define data and function in calss&lt;/P&gt;&lt;P&gt;instead of function group. using classes , an aba program can work with any number of instances(objects)&lt;/P&gt;&lt;P&gt;based on the same template.complex software system become easier to understand, since object-oriented strucring&lt;/P&gt;&lt;P&gt;provide a closer representation of reality than other programing techniquess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in a well- designed object- oriented system, it should be possible to implement changes at class level, without &lt;/P&gt;&lt;P&gt;having to make alterations at other points in the system this Reduces the overall amount of maintance requried.&lt;/P&gt;&lt;P&gt;through polymorphism and inheritance, object-oriented programing allows you to reuse individual&lt;/P&gt;&lt;P&gt;components, in an object-oriented system , the amount of work involved in revising ang maintaining the system is reduced,&lt;/P&gt;&lt;P&gt;since many problems can be detected and corrected in the desing phase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;venu thaluri&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Aug 2008 14:18:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313833#M1028293</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-12T14:18:41Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313834#M1028294</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi venu thaluri,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks your reply. But what I was asking is the abap coding example?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyone can provide me some example to differentiate between OOP and function group?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 01:51:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313834#M1028294</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T01:51:08Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313835#M1028295</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please go through the slides in the following link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/sdn/go/portal/prtroot/docs/library/uuid/0a33479c-0b01-0010-7485-dc8c09d6bc69]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 02:56:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313835#M1028295</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T02:56:00Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313836#M1028296</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 can take any standard report calling function modules of two different function groups.&lt;/P&gt;&lt;P&gt;When a function module of a function group is called for the first time the entire function group is loaded ("instantiated").&lt;/P&gt;&lt;P&gt;However, this happens only once even if the same or other fm's of the same group are called later because the function group is already loaded (for the executed report). This means that any global data of the function group can be initiated only once. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In contrast, you can instantiate a class as many times as you want within a report yet all "global" instance attributes are initiated for each separate instance and they are completely independent of each other.&lt;/P&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, 13 Aug 2008 04:36:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313836#M1028296</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-08-13T04:36:27Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313837#M1028297</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Uwe,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your explanation. At least I understand abit of the difference now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However, I do not understand what it can be initial only once. In a program, I can call the fm as many times. At the end, I still getting the same result instead of using class objects.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sorry, I am new to this topic.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 06:19:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313837#M1028297</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T06:19:47Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313838#M1028298</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Myahsam&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Each function group has an explicit or implicit event:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOAD-OF-PROGRAM.  " called once and only once&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This event is triggered as soon as any "part" of the function group is accessed for the very first time.&lt;/P&gt;&lt;P&gt;This event is comparable to the CLASS_CONSTRUCTOR of classes.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I try to explain the difference between function group and classes using an example:&lt;/P&gt;&lt;P&gt;- Function group: has a global variable GD_TIME (of TYPE sy-uzeit)&lt;/P&gt;&lt;P&gt;- Class: has an instance attribute MD_TIME (of TYPE sy-uzeit)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The variables should be filled either at event LOAD-OF-PROGRAM (function group) or in the CONSTRUCTOR method (class).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Results:&lt;/P&gt;&lt;P&gt;When you call you function group (i.e. a function module) for the first time GD_TIME will be filled with the time when this function call happened. However, GD_TIME will never change even if you repeatedly call the same or other modules of the same function group (because you never pass LOAD-OF-PROGRAM again).&lt;/P&gt;&lt;P&gt;In constast, MD_TIME will be different for each instance you have created of the class.&lt;/P&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, 13 Aug 2008 06:29:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313838#M1028298</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2008-08-13T06:29:19Z</dc:date>
    </item>
    <item>
      <title>Re: OOP and function groups</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313839#M1028299</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;Whenever any function module is called in any program Function Group is loaded in Memory. You can call same function module as many time as you want but Function Group will not be instantiated (i.e. loaded in memory) every time.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here author is trying to comapre Function Group and Class Instance.&lt;/P&gt;&lt;P&gt;In OOP, Class Instance can be initiated as many times as you are defining an object of that class, you can work independently with one or more instance. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mohaiyuddin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 Aug 2008 06:30:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/oop-and-function-groups/m-p/4313839#M1028299</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-08-13T06:30:48Z</dc:date>
    </item>
  </channel>
</rss>

