<?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: How to modulerise code within an implicit enhancement? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489437#M1931919</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Sap Learner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point 1.&amp;nbsp; You can only generate a finite number of subroutine pools per session.&amp;nbsp; (38 I think although it's too long ago for me to remember exactly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point 3.&amp;nbsp; You would not be able to use procedures in the include since an implicit enhancement (or an explicit one for that matter) occurs within a coding block such as a form or a function module.&amp;nbsp; You cannot embed forms inside other forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that just leaves point 2.&amp;nbsp; You could also do the same thing with a function group but custom classes are a good idea which also provides you with encapsulation and a lower maintenance effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's good to see someone thinking about good coding practices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 30 Dec 2015 08:05:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2015-12-30T08:05:04Z</dc:date>
    <item>
      <title>How to modulerise code within an implicit enhancement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489436#M1931918</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;I would like some ideas on how to modulerise code within an implicit enhancement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I understand that implicit enhancements should be used wisely and only minimum code needs to be used, however i have come across many of our customers who have systems in which they have a lot of code written in an implicit enhancement. Of-course in most cases it starts as small piece of code but then over a period of time more and more code is added to the existing enhancement and it becomes un-maintainable. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have been thinking of different options to modularise the code wihtin an implicit enhancement:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt; To create a Subroutine Pool Include Program and write perform statements in the implicit which will call the forms defined in the subroutine pool ( type F program in SE38 )&lt;/LI&gt;&lt;LI&gt; Create a custom class for each implicit enhancement and write all the logic in individual methods. This way if there is a need to add more code later on then we can simply create more methods instead of writing code in the same place?&lt;/LI&gt;&lt;LI&gt;Create a normal Include program ( type I program in se38 ) and write all the code within this include - ofcourse using performs and forms. This is very similar to point 1 above just the program type defined is different.&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the above have some pros and cons. I am not sure if its a good idea to keep creating additional custom repository object for each implicit enhancement. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Any other suggestions? Which one do you thing is a good approach?&lt;/P&gt;&lt;P&gt;&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, 30 Dec 2015 07:48:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489436#M1931918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-30T07:48:43Z</dc:date>
    </item>
    <item>
      <title>Re: How to modulerise code within an implicit enhancement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489437#M1931919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi Sap Learner.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point 1.&amp;nbsp; You can only generate a finite number of subroutine pools per session.&amp;nbsp; (38 I think although it's too long ago for me to remember exactly).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Point 3.&amp;nbsp; You would not be able to use procedures in the include since an implicit enhancement (or an explicit one for that matter) occurs within a coding block such as a form or a function module.&amp;nbsp; You cannot embed forms inside other forms.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So that just leaves point 2.&amp;nbsp; You could also do the same thing with a function group but custom classes are a good idea which also provides you with encapsulation and a lower maintenance effort.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It's good to see someone thinking about good coding practices.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Good luck!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rich&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:05:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489437#M1931919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-30T08:05:04Z</dc:date>
    </item>
    <item>
      <title>Re: How to modulerise code within an implicit enhancement?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489438#M1931920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Many Thanks Rich. Appreciate your feedback. &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 30 Dec 2015 08:32:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-modulerise-code-within-an-implicit-enhancement/m-p/11489438#M1931920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-12-30T08:32:31Z</dc:date>
    </item>
  </channel>
</rss>

