<?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: Suggestion on object oriented design pattern in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033590#M1808178</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Agree with Thomas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you really wanted to code the report according to some architecture while utilizing OO, I would suggest you have a look at the MVC design/architecture concept that WDA uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/WDABAP/Architecture+of+Webdynpro+for+ABAP" title="http://wiki.scn.sap.com/wiki/display/WDABAP/Architecture+of+Webdynpro+for+ABAP"&gt;Architecture of Webdynpro for ABAP - Web Dynpro ABAP - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 10 Jan 2014 12:44:26 GMT</pubDate>
    <dc:creator>habrahams</dc:creator>
    <dc:date>2014-01-10T12:44:26Z</dc:date>
    <item>
      <title>Suggestion on object oriented design pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033586#M1808174</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 am trying to write a report using Object oriented paradigm but not sure on how to lay the design for it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its a report which extracts&amp;nbsp; data from 15 tables and displays in the form of ALV and also one can download it in the share path.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now I had thought of creating a local class with methods :&amp;nbsp; get _data , display_data , and download_data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can someone suggest me a better design other than this??&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Faiz&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;BR /&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 11:50:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033586#M1808174</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-01-10T11:50:56Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion on object oriented design pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033587#M1808175</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I think OO design patterns are overkill for this simple "read data" and "display result as ALV" sort of task.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also see the recent discussion here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A __default_attr="100091" __jive_macro_name="blogpost" class="jive_macro jive_macro_blogpost" data-orig-content="Classical way to ABAP OO style of coding" href="https://community.sap.com/" modifiedtitle="true" title="Classical way to ABAP OO style of coding"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like the "traditional way" is way sufficient here. The bigger challenge will be to effectively read and combine data from 15 tables. Use joins as much as possible.&lt;/P&gt;&lt;P&gt;Downloading is built-in ALV functionality, you don't need to code this again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thomas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:00:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033587#M1808175</guid>
      <dc:creator>ThomasZloch</dc:creator>
      <dc:date>2014-01-10T12:00:47Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion on object oriented design pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033588#M1808176</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Faiz,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For report this pattern is enough ,&lt;/P&gt;&lt;P&gt;Just create the class with the above method in addition to that add the "process_data"&amp;nbsp; method&amp;nbsp; for processing the records,&lt;/P&gt;&lt;P&gt;&lt;BR /&gt;follow the following order:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Create the instance and then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the method "get_data" inside the start of selection and end of selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Call the the method "process_data" after end of selection and call the method display_data after that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Based on sy-ucomm call the method download data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also try to use SALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KK&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033588#M1808176</guid>
      <dc:creator>former_member183069</dc:creator>
      <dc:date>2014-01-10T12:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion on object oriented design pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033589#M1808177</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;There is no need to specify &lt;SPAN class="h1"&gt;END-OF-SELECTION&lt;/SPAN&gt; unless you use logical database (which is not common...). F1 for more details &lt;SPAN __jive_emoticon_name="happy" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/408/images/emoticons/happy.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To topic: there could be used "&lt;SPAN style="text-decoration: line-through;"&gt;factory&lt;/SPAN&gt;" (EDIT sorry, was not meant to be "factory", but something like MVC, but it is overkill yes) design to output data in different ways (ALV, frontend CSV, e-mail...).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:23:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033589#M1808177</guid>
      <dc:creator>Tomas_Buryanek</dc:creator>
      <dc:date>2014-01-10T12:23:34Z</dc:date>
    </item>
    <item>
      <title>Re: Suggestion on object oriented design pattern</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033590#M1808178</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I Agree with Thomas.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But if you really wanted to code the report according to some architecture while utilizing OO, I would suggest you have a look at the MVC design/architecture concept that WDA uses.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at:&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.scn.sap.com/wiki/display/WDABAP/Architecture+of+Webdynpro+for+ABAP" title="http://wiki.scn.sap.com/wiki/display/WDABAP/Architecture+of+Webdynpro+for+ABAP"&gt;Architecture of Webdynpro for ABAP - Web Dynpro ABAP - SCN Wiki&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Harry&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Jan 2014 12:44:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/suggestion-on-object-oriented-design-pattern/m-p/10033590#M1808178</guid>
      <dc:creator>habrahams</dc:creator>
      <dc:date>2014-01-10T12:44:26Z</dc:date>
    </item>
  </channel>
</rss>

