<?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 Function module or Globlal class? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102658#M1903303</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 need to write code in the include &lt;STRONG&gt;ZXF04U01&lt;/STRONG&gt;, as forms(perform) are obsolete now, i cant create classes in this include. So i have to go either with function modules or else with Global class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any priority between FM and global classes. Which is better and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;NarsiReddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2015 14:17:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-05-19T14:17:32Z</dc:date>
    <item>
      <title>Function module or Globlal class?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102658#M1903303</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 need to write code in the include &lt;STRONG&gt;ZXF04U01&lt;/STRONG&gt;, as forms(perform) are obsolete now, i cant create classes in this include. So i have to go either with function modules or else with Global class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any priority between FM and global classes. Which is better and why?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;NarsiReddy.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 14:17:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102658#M1903303</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-19T14:17:32Z</dc:date>
    </item>
    <item>
      <title>Re: Function module or Globlal class?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102659#M1903304</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If you have more than one organization and the logic in the customer exit include ZXF04U01 would be shared by more than one, I suggest you convert the customer exit into the custom BADI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Create a custom BADI with a possible filter, with multiple implementation &lt;/LI&gt;&lt;LI&gt;&lt;SPAN style="font-size: 13.3333330154419px;"&gt;Call the BADI using CALL BADI in the include ZXF04U01&lt;/SPAN&gt;&lt;/LI&gt;&lt;LI&gt;Implement the BADI and write your own logic within it for that org unit.&lt;/LI&gt;&lt;LI&gt;If more than one org unit, create another BADI implementation&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It has lot of artifacts and would need more time to develop, but by doing so you have these advantages:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;You use the Object Oriented technique as the BADI implementation would require an implementing class&lt;/LI&gt;&lt;LI&gt;Flexible design - a new implementation can be created with a new filter&lt;/LI&gt;&lt;LI&gt;Code segregation - each org has its own implementation&lt;/LI&gt;&lt;LI&gt;You enforce other developers who would change the include, not to use obsolete statements.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you think, its overkill and you don't have multiple org structure, create the Function Module. Make sure to copy the same signature in your custom FM as well.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;BR /&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 14:53:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102659#M1903304</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2015-05-19T14:53:51Z</dc:date>
    </item>
    <item>
      <title>Re: Function module or Globlal class?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102660#M1903305</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Or replace Customer Exit EXIT_SAPMF02D_001 of Enhancement SAPMF02D with some method of BAdI CUSTOMER_ADD_DATA(_CS) some simulation of a dummy customer screen?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2015 15:03:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-or-globlal-class/m-p/11102660#M1903305</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2015-05-19T15:03:57Z</dc:date>
    </item>
  </channel>
</rss>

