<?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: IF g_custom_container IS INITIAL in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972603#M398923</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that can be added to the previous answers is that there is a more &amp;lt;b&amp;gt;specific&amp;lt;/b&amp;gt; ABAP statement available to check if an instance of a class is available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF ( g_customer_container IS BOUND ).
* ... Container instance is already there -&amp;gt; do nothing 

  ELSE.
*  ... create the custom container instance
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 21 Feb 2007 13:28:06 GMT</pubDate>
    <dc:creator>uwe_schieferstein</dc:creator>
    <dc:date>2007-02-21T13:28:06Z</dc:date>
    <item>
      <title>IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972597#M398917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF g_custom_container IS INITIAL.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT g_custom_container&lt;/P&gt;&lt;P&gt;       EXPORTING &lt;/P&gt;&lt;P&gt;          CONTAINER_NAME = 'CCCONTAINER'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;       EXPORTING&lt;/P&gt;&lt;P&gt;         I_PARENT = g_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the above code what for this line used.&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;IF g_custom_container IS INITIAL&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and after excuting what is the value assigned to  g_custom_container.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:32:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972597#M398917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T11:32:51Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972598#M398918</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;IF g_custom_container IS INITIAL .&lt;/P&gt;&lt;P&gt;This line is checking if the object g_custom_control has already been created or not. YOu shouldn't create an object if it is already there.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:36:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972598#M398918</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T11:36:18Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972599#M398919</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If the container is created already it wont create it furtehr.&lt;/P&gt;&lt;P&gt;Eg: u remove teh IF condition and run ur report it will owrk, but when u click on the grid or scroll or do any operation again the outplut will get generated in the grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To avoid this &amp;lt;b&amp;gt;we have to do this check&amp;lt;/b&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:37:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972599#M398919</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T11:37:50Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972600#M398920</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;b&amp;gt;and after excuting what is the value assigned to g_custom_container.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   g_custom_container  will contain the reference to the container, debug and check the value&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:41:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972600#M398920</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T11:41:55Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972601#M398921</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;         Since container object generally contains your CONTROL objects like ALV etc you should create this object only once. If you create it in every ntry to your PBO then a new container is getting created and you will see a fresh screen every time which is wrong since you are working on the previous screen that screen should be preserved means this container object should exist so you create once and use it every time till you exit the program.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;and after excuting what is the value assigned to g_custom_container.&amp;lt;/b&amp;gt; &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your screen you would have created a custom container you are passing the name of your custom container in this create object statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;sesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Seshatalpasai Madala&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 11:43:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972601#M398921</guid>
      <dc:creator>seshatalpasai_madala</dc:creator>
      <dc:date>2007-02-21T11:43:11Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972602#M398922</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;1.g_customer_conatiner is  reference to  to cl_gui_custom_container,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;by putting a statement  g_custom_container IS INITIAL, &lt;/P&gt;&lt;P&gt;a check is made that is memory is allocated to object g_customer_conatiner .&lt;/P&gt;&lt;P&gt;indirectly saying above statement checks whether it has been created or not.&lt;/P&gt;&lt;P&gt;If the memory already allocated then do not allocate/create it once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. A momory location will be assigned to g_custom_container.&lt;/P&gt;&lt;P&gt;   i.e. a area on screen will be allocated to g_customer_container.&lt;/P&gt;&lt;P&gt;then by  ALV grid will be displayed in the container area by follwoing statements:-&lt;/P&gt;&lt;P&gt;CREATE OBJECT GRID1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;I_PARENT = g_custom_container&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 13:18:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972602#M398922</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-02-21T13:18:21Z</dc:date>
    </item>
    <item>
      <title>Re: IF g_custom_container IS INITIAL</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972603#M398923</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Pavan&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The only thing that can be added to the previous answers is that there is a more &amp;lt;b&amp;gt;specific&amp;lt;/b&amp;gt; ABAP statement available to check if an instance of a class is available:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  IF ( g_customer_container IS BOUND ).
* ... Container instance is already there -&amp;gt; do nothing 

  ELSE.
*  ... create the custom container instance
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;  Uwe&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 21 Feb 2007 13:28:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/if-g-custom-container-is-initial/m-p/1972603#M398923</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2007-02-21T13:28:06Z</dc:date>
    </item>
  </channel>
</rss>

