<?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: Destroy Container Object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165152#M1370793</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can use the free on your own container.. why not use that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 22 Sep 2009 12:15:53 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-22T12:15:53Z</dc:date>
    <item>
      <title>Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165146#M1370787</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a problem with my Dynpro:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On this, I have a Tabstrip, 2 of then contains a Container which I use for an ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Generating and filling this ALV I do in an external function, so I only know how the container is called. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On the top of this dynpro, I have listbox where I can choose a table - regarding my selection, the 2 tables will be filled. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;No the problem: it could be, that after choosing a table from my listbox, the second ALV is filled. Now I choose another table in the listbox - nothing is "behind" this choosen table and the second ALV should be empty. But it's not so - because I don't call my function to create the ALV because I don't have a table to use.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now the qeustino - is there a way to "clear" my custom container only by knowing the way of it? Something like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;Clear container&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN __default_attr="red" __jive_macro_name="color"&gt;Moderator message - Moved to the correct forum&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Rob Burbank on Sep 22, 2009 8:59 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:35:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165146#M1370787</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-22T11:35:33Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165147#M1370788</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try using FREE containter.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope you are also calling method REFRESH&lt;STRONG&gt;DISPLAY&lt;/STRONG&gt;...  (not near the system to tell you exact name) in PBO.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aabhas K Vishnoi on Sep 22, 2009 9:48 PM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Aabhas K Vishnoi on Sep 22, 2009 9:49 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:47:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165147#M1370788</guid>
      <dc:creator>aabhas_wilmar</dc:creator>
      <dc:date>2009-09-22T11:47:09Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165148#M1370789</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;enable the list with user command.&lt;/P&gt;&lt;P&gt;and at PBO you can check the do this job of clearing the container by using method : "FREE" of cl_gui_alv_grid&lt;/P&gt;&lt;P&gt;and also use : call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Soumyaprakash Mishra on Sep 22, 2009 5:18 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:47:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165148#M1370789</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T11:47:16Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165149#M1370790</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;That's not possbile - I can't work with the container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I create the container in my function:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT gs_container-o_container
        EXPORTING
          container_name = container_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I only know the container_name in my program. As you can see, the container is saved in an table (gs_container), which is dynamically filled.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have no chance in the program to work with the container - only the container_name I have...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I called the function this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'ZZ_CREATE_ALV'
      EXPORTING
        container_name = 'T_ALV_BSP'
        tab_name       = ztool_buttons-tab_name
        alv_id         = '2'
      CHANGING
        output_tab     = &amp;lt;itab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;container_name is my container (a custom container on the dynpro), tab_name is the name of the table I chose in the dropdown, alv_id means it's the second ALV and output_tab is the table I want to show in the ALV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When &amp;lt;itab&amp;gt; is not assigned, I won't call the function - so if it has been called with an assinged itab, ALV will be filled, after that, itab is unassinged, function won't be called and so my ALV would keep the old itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;T_ALV_BSP-&amp;gt;free&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Not right. Any other ideas?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:55:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165149#M1370790</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-22T11:55:06Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165150#M1370791</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;have you tried:&lt;/P&gt;&lt;P&gt;call method cl_gui_cfw=&amp;gt;flush.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:57:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165150#M1370791</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T11:57:01Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165151#M1370792</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure, sorry, forget the metion this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It also won't work...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 11:59:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165151#M1370792</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-22T11:59:19Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165152#M1370793</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi,&lt;/P&gt;&lt;P&gt;you can use the free on your own container.. why not use that?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:15:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165152#M1370793</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T12:15:53Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165153#M1370794</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;how to do this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried this way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DATA: T_ALV_BSP TYPE REF TO cl_gui_custom_container.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and then &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;call method T_ALV_BPS=&amp;gt;FREE&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Wont work because the container is always initial (I never create it in the program, only in my function)&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:17:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165153#M1370794</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-22T12:17:14Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165154#M1370795</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;As the container is only known in the function group, you have to free/destroy it in the function group, insure that it is defined in the TOP part of the function group and create a new function module in the same function group that will FREE it. Call this Z_FREE_ALV in the calling report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You may need to keep the relation between the object container id and the container name in an internal table of the FG TOP include if multiple containers are managed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:51:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165154#M1370795</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-22T12:51:25Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165155#M1370796</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you would be creating a screen on your program right? and a custom container where you are displaying your elements. &lt;/P&gt;&lt;P&gt;so? free this container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;else,&lt;/P&gt;&lt;P&gt;change the FM, pass some check flag kind of field and free the container there.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:52:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165155#M1370796</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-22T12:52:06Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165156#M1370797</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I won't change my function - so I have to check how to free my container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It must be possible to say T_ALV-BS=&amp;gt; free and then all the kinds and relations would be deleted that are related to exactly this container...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 22 Sep 2009 12:54:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165156#M1370797</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-22T12:54:26Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165157#M1370798</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello again,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I don't know how to free my container - so I thought about making a new fuction (Z_FREE_CONTAINER), where I make this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Problem - How to get the name of the the container in my custom container?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I just know the name of this (T_ALV_BSP) - how to get the name of the related container?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:17:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165157#M1370798</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-23T07:17:58Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165158#M1370799</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use the same parameters as in Z_CREATE_ALV. Also in Z_CREATE_ALV you should store in the function group data the values of container name, alv_id  and container object created, so the second FM Z_FREE_CONTAINER will easily find the container id when reading a static internal table (and delete the record once container is freed)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:40:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165158#M1370799</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-23T07:40:01Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165159#M1370800</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sure - but then I need to create the ALV with the function.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When I work an other way - it won't work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Isn't there a way to say - this is my custom control (T_ALV_BSP), destroy all childs and everything what is related to this?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 07:48:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165159#M1370800</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-23T07:48:01Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165160#M1370801</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Did you try to use the LIFETIME parameter of objects you created ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 08:50:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165160#M1370801</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2009-09-23T08:50:07Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165161#M1370802</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I've never used this...how to work with this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have I to enter how many seconds it should resist? Because Lifetime is type I...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 08:57:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165161#M1370802</guid>
      <dc:creator>michael_fallenbchel</dc:creator>
      <dc:date>2009-09-23T08:57:50Z</dc:date>
    </item>
    <item>
      <title>Re: Destroy Container Object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165162#M1370803</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For lifetime description look here:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[lifetime|http://help.sap.com/saphelp_nw70/helpdata/en/06/3fa1a59f2811d2bd68080009b4534c/content.htm]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These constants are attributes of class cl_gui_control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;However,  I'm not sure if this will do you any good. haven't read the entire post (yet).&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 Sep 2009 11:07:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/destroy-container-object/m-p/6165162#M1370803</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-09-23T11:07:36Z</dc:date>
    </item>
  </channel>
</rss>

