<?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: CL_GUI_CUSTOM_CONTAINER in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901391#M936123</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will free memory occupied by object..&lt;/P&gt;&lt;P&gt;suppose u wann display 2 alv dynamically then u can delete existing one and make new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example to free&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD picture-&amp;gt;free&lt;/P&gt;&lt;P&gt;EXCEPTIONS cntl_error = 1&lt;/P&gt;&lt;P&gt;cntl_system_error = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 03 Jun 2008 11:33:11 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-03T11:33:11Z</dc:date>
    <item>
      <title>CL_GUI_CUSTOM_CONTAINER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901389#M936121</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi xperts,&lt;/P&gt;&lt;P&gt;I am using CL_GUI_CUSTOM_CONTAINER class in one of my module pool program. Could you please explain me what is the usage of Free method in this class in detail, if possible with some examples.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 09:29:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901389#M936121</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T09:29:43Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_CUSTOM_CONTAINER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901390#M936122</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;The FREE-method is the destructor for the object-reference of the class CL_GUI_CUSTOM_CONTAINER.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Free-text-field on dynpro 2000.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: gr_text_container       TYPE REF TO cl_gui_custom_container,
      gr_text                 TYPE REF TO cl_gui_textedit.

    CREATE OBJECT gr_text_container
      EXPORTING
        container_name              = 'GR_TEXT_CONTAINER'
      EXCEPTIONS
        cntl_error                  = 1
        cntl_system_error           = 2
        create_error                = 3
        lifetime_error              = 4
        lifetime_dynpro_dynpro_link = 5.

    CREATE OBJECT gr_text
      EXPORTING
        parent                     = gr_text_container
        wordwrap_mode       = cl_gui_textedit=&amp;gt;wordwrap_at_windowborder
        wordwrap_to_linebreak_mode = cl_gui_textedit=&amp;gt;false
      EXCEPTIONS
        error_cntl_create           = 1
        error_cntl_init                = 2
        error_cntl_link               = 3
        error_dp_create             = 4
        gui_type_not_supported = 5.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the user is leaving this dynpro (e.g. back-button), therefore you should free the object-reference:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL METHOD gr_text_container-&amp;gt;free( ).
 CLEAR: gr_text_container,
        gr_text.
 CALL METHOD cl_gui_cfw=&amp;gt;flush.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sven&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 10:28:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901390#M936122</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T10:28:10Z</dc:date>
    </item>
    <item>
      <title>Re: CL_GUI_CUSTOM_CONTAINER</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901391#M936123</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it will free memory occupied by object..&lt;/P&gt;&lt;P&gt;suppose u wann display 2 alv dynamically then u can delete existing one and make new &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;example to free&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD picture-&amp;gt;free&lt;/P&gt;&lt;P&gt;EXCEPTIONS cntl_error = 1&lt;/P&gt;&lt;P&gt;cntl_system_error = 2.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 03 Jun 2008 11:33:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/cl-gui-custom-container/m-p/3901391#M936123</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-03T11:33:11Z</dc:date>
    </item>
  </channel>
</rss>

