<?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: Issue with custom container destructor. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507342#M1559126</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Along with below code &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF text_editor IS NOT INITIAL.
    CALL METHOD text_editor-&amp;gt;free( ).
    FREE text_editor.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use one extra statement which i used in the below code. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF text_editor IS NOT INITIAL.
    CALL METHOD text_editor-&amp;gt;free( ).
    FREE text_editor.
    CALL METHOD text_editor-&amp;gt;delete_text( ).
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Dec 2010 03:51:15 GMT</pubDate>
    <dc:creator>venkat_o</dc:creator>
    <dc:date>2010-12-07T03:51:15Z</dc:date>
    <item>
      <title>Issue with custom container destructor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507341#M1559125</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have created a module pool program, which has a custom container and I have set up NOTES in this container.&lt;/P&gt;&lt;P&gt;Now, everytime I Press the back button after saving the transaction, I have the destructor code written.&lt;/P&gt;&lt;P&gt;the code is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
  IF text_editor IS NOT INITIAL.
    CALL METHOD text_editor-&amp;gt;free( ).
    FREE text_editor.
  ENDIF.

  IF editor_container IS NOT INITIAL.
    CALL METHOD editor_container-&amp;gt;free( ).
    FREE editor_container.
  ENDIF.

* finally flush
  CALL METHOD cl_gui_cfw=&amp;gt;flush
    EXCEPTIONS
      OTHERS = 1.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But, in the same session , when i enter a different transaction number and come on the Notes screen, I see the &lt;/P&gt;&lt;P&gt;data of the previous transaction in notes. I have checked everything. It seems he issue is with the destructor.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advice.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;sapper&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Neil Gardiner on Dec 8, 2010 9:17 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Dec 2010 22:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507341#M1559125</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-06T22:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with custom container destructor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507342#M1559126</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;Along with below code &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF text_editor IS NOT INITIAL.
    CALL METHOD text_editor-&amp;gt;free( ).
    FREE text_editor.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Use one extra statement which i used in the below code. &lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;IF text_editor IS NOT INITIAL.
    CALL METHOD text_editor-&amp;gt;free( ).
    FREE text_editor.
    CALL METHOD text_editor-&amp;gt;delete_text( ).
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Venkat.O&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 03:51:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507342#M1559126</guid>
      <dc:creator>venkat_o</dc:creator>
      <dc:date>2010-12-07T03:51:15Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with custom container destructor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507343#M1559127</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I had tried that ... but still the same issue ...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 15:23:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507343#M1559127</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-07T15:23:51Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with custom container destructor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507344#M1559128</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If all you want to do is simply clear the text then all you need to do is call the &lt;STRONG&gt;delete_text&lt;/STRONG&gt; method. There is no need to call the &lt;STRONG&gt;desctrutor&lt;/STRONG&gt; or &lt;STRONG&gt;flush&lt;/STRONG&gt; methods.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Dec 2010 22:39:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507344#M1559128</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-12-07T22:39:34Z</dc:date>
    </item>
    <item>
      <title>Re: Issue with custom container destructor.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507345#M1559129</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi d sappanese,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;just make sure hat you do not fill it inadvertently with the same text as before: Make sure the old text is cleared in your program.&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;Clemens&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 12 Dec 2010 16:24:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-with-custom-container-destructor/m-p/7507345#M1559129</guid>
      <dc:creator>Clemenss</dc:creator>
      <dc:date>2010-12-12T16:24:01Z</dc:date>
    </item>
  </channel>
</rss>

