<?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: creat object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584172#M1273359</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The classes don't inherit from each other, they are performing certain task thats all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this always because they are public static and also you need to keep in mind before using that it meets your requirement. certain times it may happen that you need to create a screen with the ALV container and some parameters on the screen, at this point of time, default screen will not work, you will have to create your own screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 15 May 2009 09:32:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-15T09:32:43Z</dc:date>
    <item>
      <title>creat object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584169#M1273356</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;something I don't understand. I create a instance grid to display my alv as follows:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: grid TYPE REF TO cl_gui_alv_grid.

  CREATE OBJECT grid
    EXPORTING
      i_parent = cl_gui_custom_container=&amp;gt;default_screen.


  CALL METHOD grid-&amp;gt;set_table_for_first_display
    EXPORTING
      i_structure_name              = 'ZXML'
      is_layout                     = gs_layout
    CHANGING
      it_outtab                     = gs_structure-list
    EXCEPTIONS
      invalid_parameter_combination = 1
      program_error                 = 2
      too_many_lines                = 3
      OTHERS                        = 4.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what I not understand is, why can I use default screen from cl_gui_custom_container? It's not the class which I define for grid.&lt;/P&gt;&lt;P&gt;And the classes cl_gui_custom_container and cl_gui_alv_grid don't inherit from each other.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:14:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584169#M1273356</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:14:50Z</dc:date>
    </item>
    <item>
      <title>Re: creat object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584170#M1273357</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 code,&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  CREATE OBJECT grid&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      i_parent = cl_gui_custom_container=&amp;gt;default_screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;uses the default screen created by SAP.... so cl_gui_custom_container=&amp;gt;default_screen gets the default screen with the container and that container is assigned/linked with the alv grid which you are displaying.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now if you don't want that, then you will have to create your own screen and you also will have to create another object for the class cl_gui_custom_container and while creating object for that class you will have to give the container name which you have mentioned in the screen you have created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;To display alv grid using OOPs concept you need a container on the screen mandatorily.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;hence either using the default standard sap screen or defining your own screen will do.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope I am able to clear your doubt&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:23:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584170#M1273357</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:23:07Z</dc:date>
    </item>
    <item>
      <title>Re: creat object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584171#M1273358</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I know the logical of default_screen, what I not understand is why I can use this attribut? Can I use is always as this is a public static attribut? Or should the classes which I use inherit from each other as the mentioned one from me?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:25:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584171#M1273358</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:25:29Z</dc:date>
    </item>
    <item>
      <title>Re: creat object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584172#M1273359</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The classes don't inherit from each other, they are performing certain task thats all.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can use this always because they are public static and also you need to keep in mind before using that it meets your requirement. certain times it may happen that you need to create a screen with the ALV container and some parameters on the screen, at this point of time, default screen will not work, you will have to create your own screen&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 15 May 2009 09:32:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creat-object/m-p/5584172#M1273359</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-15T09:32:43Z</dc:date>
    </item>
  </channel>
</rss>

