<?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: Modularization of Procedural ABAP Code in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/modularization-of-procedural-abap-code/m-p/5199184#M1202994</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do not reply to this post.  I should have placed it in the ABAP Performance Tuning thread.  I am moving it to there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 21:26:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-16T21:26:04Z</dc:date>
    <item>
      <title>Modularization of Procedural ABAP Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modularization-of-procedural-abap-code/m-p/5199183#M1202993</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Does anyone know of sources which make the argument for or speak of the benefits of modularizing classical (procedural) ABAP code into procedures (a.k.a. sub-routines)?  When I refer to modularization and procedures, I mean much more than just breaking up the code into FORMs.  With modularization, global variables, structures, and tables are not referenced in sub-routines.  Instead, the sub-routine's input and output are governed exclusively by the sub-routine's formal parameters (i.e., USING... and CHANGING...).  Within the sub-routine, i/o parameters and locally-declared variables, structures and tables are referenced.  This approach has a variety of benefits:  improved program readability; easier program maintenance and troubleshooting; and data encapsulation.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;While such an approach is embraced near-universally in the academic community and extensively in the professional world (for most computer languages), I find that modularization is rare in the ABAP world.  I suspect that this is the case due to some combination of the following reasons:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1)  ABAP descended extensively from Cobol which does not well-facilitate modularization (if my recollection is correct);&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2)  Modularization was unwieldy and syntactically cumbersome in the earlier versions of ABAP (i.e., IMPORTING..., EXPORTING...); and&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)  A large percentage of ABAP coders, particularly years ago, were not university-trained in computer science.  So they were never taught the benefits or the discipline of modularization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So, in an effort to persuade my colleagues and manager of the benefits and reasonableness of modularization, I would like to present to them numerous texts which advocate it.  Given how modularization is ubiquitously embraced in the larger computer science world, I am afraid that it may be hard to find texts which advocate what is generally viewed as obvious.  So far, I have found two sources:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &lt;EM&gt;ABAP Objects&lt;/EM&gt; written by Horst Keller and Sascha Kruger; and &lt;/P&gt;&lt;/LI&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; &lt;EM&gt;Data Structures, Algorithms, and Program Style&lt;/EM&gt; by James F. Korsh (a Pascal-centric book). &lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would much appreciate being pointed to any on-line or hardcopy sources.  While ABAP-focused books may be most persuasive to my colleagues, I would appreciate any source regardless of which computer programming language the text primarily deals with.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 21:18:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modularization-of-procedural-abap-code/m-p/5199183#M1202993</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T21:18:04Z</dc:date>
    </item>
    <item>
      <title>Re: Modularization of Procedural ABAP Code</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/modularization-of-procedural-abap-code/m-p/5199184#M1202994</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please do not reply to this post.  I should have placed it in the ABAP Performance Tuning thread.  I am moving it to there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 21:26:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/modularization-of-procedural-abap-code/m-p/5199184#M1202994</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T21:26:04Z</dc:date>
    </item>
  </channel>
</rss>

