<?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: Parameters required for object creation in classes in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584056#M263358</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;  custom_container1  TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a custom container control for our ALV Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT custom_container1&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;            container_name = cont_on_main&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cntl_error = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            create_error = 3&lt;/P&gt;&lt;P&gt;            lifetime_error = 4&lt;/P&gt;&lt;P&gt;            lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT grid1&lt;/P&gt;&lt;P&gt;              EXPORTING i_parent = custom_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarifiaction pls mail me.&lt;/P&gt;&lt;P&gt;pls reward points, if this helped u.&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;anversha.&lt;/P&gt;&lt;P&gt;anversha.shahul@wipro.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 Sep 2006 09:36:36 GMT</pubDate>
    <dc:creator>anversha_s</dc:creator>
    <dc:date>2006-09-09T09:36:36Z</dc:date>
    <item>
      <title>Parameters required for object creation in classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584054#M263356</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;   Where we can find parameters needed to pass while creating a object. Ex : create object grid&lt;/P&gt;&lt;P&gt;                                   exporting&lt;/P&gt;&lt;P&gt;                                     &amp;lt;parameters needed&amp;gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;  Satya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 09:24:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584054#M263356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T09:24:00Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters required for object creation in classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584055#M263357</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;just look at this program for  refrence..&lt;/P&gt;&lt;P&gt;BCALV_GRID_01&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 09:32:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584055#M263357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T09:32:39Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters required for object creation in classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584056#M263358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi naga,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;chk this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;  custom_container1  TYPE REF TO cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;create a custom container control for our ALV Control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;    CREATE OBJECT custom_container1&lt;/P&gt;&lt;P&gt;        EXPORTING&lt;/P&gt;&lt;P&gt;            container_name = cont_on_main&lt;/P&gt;&lt;P&gt;        EXCEPTIONS&lt;/P&gt;&lt;P&gt;            cntl_error = 1&lt;/P&gt;&lt;P&gt;            cntl_system_error = 2&lt;/P&gt;&lt;P&gt;            create_error = 3&lt;/P&gt;&lt;P&gt;            lifetime_error = 4&lt;/P&gt;&lt;P&gt;            lifetime_dynpro_dynpro_link = 5.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    CREATE OBJECT grid1&lt;/P&gt;&lt;P&gt;              EXPORTING i_parent = custom_container1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for any clarifiaction pls mail me.&lt;/P&gt;&lt;P&gt;pls reward points, if this helped u.&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;anversha.&lt;/P&gt;&lt;P&gt;anversha.shahul@wipro.com&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 09:36:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584056#M263358</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2006-09-09T09:36:36Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters required for object creation in classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584057#M263359</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 only place to find the parameters to be passed while creating an object of a class is method &amp;lt;b&amp;gt;'CONSTRUCTOR'&amp;lt;/b&amp;gt; in  class definition. This method is called when the statement 'create object objname' is executed. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose you need to create an object of type 'cl_gui_alv_grid'. Go to definition of this class in transaction SE24 and look for method 'CONSTRUCTOR'. In this particular case, there are eight parameters that can be supplied while creating the object however, only one i.e. 'I_PARENT' type ref to CL_GUI_CONTAINER is mandatory. You can also use an object of type 'CL_GUI_CUSTOM_CONTAINER' in place of 'CL_GUI_CONTAINER' as 'CL_GUI_CUSTOM_CONTAINER' is a subclass of 'CL_GUI_CONTAINER' and as such has access to all its components.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this was helpful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 Sep 2006 11:20:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584057#M263359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-09T11:20:44Z</dc:date>
    </item>
    <item>
      <title>Re: Parameters required for object creation in classes</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584058#M263360</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Naga&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If a class has a CONSTRUCTOR method then simply check which of its IMPORTING are obligatory (= not optional).&lt;/P&gt;&lt;P&gt;However, sometimes the instantiation of classes is protected or even private. In this case, there will be a "factory" class which usually has a CREATE method to instantiate objects (e.g. CL_RECA_MESSAGE_LIST and CF_RECA_MESSAGE_LIST=&amp;gt;CREATE). In these cases you have to check the CREATE method for obligatory parameters.&lt;/P&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>Sat, 09 Sep 2006 19:18:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/parameters-required-for-object-creation-in-classes/m-p/1584058#M263360</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-09T19:18:19Z</dc:date>
    </item>
  </channel>
</rss>

