<?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: Observer Design Pattern: Looking for redesign ABAP OO code example in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265483#M1632530</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for this fast delivery of the complete example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks very fine and I think that it will fit perfectly in my research work. I will have a look asap on it and get back to you with feedback and the results of the applied methodology that hopefully work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 03 Nov 2011 21:57:31 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-03T21:57:31Z</dc:date>
    <item>
      <title>Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265477#M1632524</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am looking for an example for ABAP OO code that has been redesigned by applying the Observer Design Pattern. I would be very interested in both the code before as well as the code after the pattern is being applied.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance and kind regards, Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 26 Oct 2011 22:03:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265477#M1632524</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-26T22:03:05Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265478#M1632525</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;plz follow link, may help u:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;&amp;lt;External link removed&amp;gt;&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks &amp;amp; regards.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator Message: Don't spoonfeed.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Suhas Saha on Oct 27, 2011 11:06 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 04:21:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265478#M1632525</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T04:21:29Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265479#M1632526</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Suhas Saha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answer. It helps but unfortunately does not give me the complete truth &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;). What I am looking for is a concrete real-world example for ABAP code with a "bad" design that has then be reengineered to a "good" design. Hence, I need the situation before and after the observer design pattern is being applied. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Does anybody know such an example from standard R/3 code?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and kind regards, Alexander&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 19:33:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265479#M1632526</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T19:33:14Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265480#M1632527</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Observer can be implemented using the EVENTS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I had recently implemented the observer at one of my client's place. I had screen with so many ALVs. One ALV was kind of editable and other were just showing the information of the current row as well as some total information. So, initially I started with the Main ALV and SUB(1 and 2) for other ALVs. Now, when I need to refresh my ALVs based on the main ALV data, I had to explicitly update the data of the each Sub ALV. The code was kind of static and requirement was not yet fixed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Later on we need to add one more ALV on the same screen. It was easy to change the existing method where I was doing the explicit refresh of each ALV. But I thought of using the Events.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I created an event REFRESH_DETAILS for main ALV. so, when data gets changed (which I was catching by DATA_CHANGED event of ALV), I raise the event.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  RAISE EVENT REFRESH_DETAILS
    exporting new_data = it_Data.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In Sub ALVs, I created the event handler method to handle the event REFRESH_DETAILS of the main ALV.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  methods: handle_refresh_details 
      for event REFRESH_DETAILS of ZCL_MAIN_ALV.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I also had to register the Handler.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  SET HANDLER me-&amp;gt;handle_refresh_details FOR ALL INSTANCES.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'll soon write a post on my [ABAP Help blog|http://help-abap.zevolving.com/] with all the details.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 20:25:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265480#M1632527</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-10-27T20:25:35Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265481#M1632528</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Samel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks a lot for this very useful and helpful example! It would be great if you could provide me the complete example. That is exactly what I am looking for. In case you are interested, I can provide you a paper of mine in which my research work is reflected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Oct 2011 21:03:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265481#M1632528</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-10-27T21:03:48Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265482#M1632529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As promised, I have tried to write two post:&lt;/P&gt;&lt;P&gt;Concept -- [ABAP Objects Design Patterns u2013 Observer|http://help-abap.zevolving.com/2011/10/abap-objects-design-patterns-%e2%80%93-observer/]&lt;/P&gt;&lt;P&gt;Real Time example which I mentioned above -- [Case Study: Observer Design Pattern Usage|http://help-abap.zevolving.com/2011/11/case-study-observer-design-pattern-usage/]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Naimesh Patel&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 03:24:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265482#M1632529</guid>
      <dc:creator>naimesh_patel</dc:creator>
      <dc:date>2011-11-03T03:24:19Z</dc:date>
    </item>
    <item>
      <title>Re: Observer Design Pattern: Looking for redesign ABAP OO code example</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265483#M1632530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naimesh,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thank you very much for this fast delivery of the complete example.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It looks very fine and I think that it will fit perfectly in my research work. I will have a look asap on it and get back to you with feedback and the results of the applied methodology that hopefully work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind regards, Alex&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Nov 2011 21:57:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/observer-design-pattern-looking-for-redesign-abap-oo-code-example/m-p/8265483#M1632530</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-03T21:57:31Z</dc:date>
    </item>
  </channel>
</rss>

