<?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 create an object in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527942#M241529</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL&lt;/P&gt;&lt;P&gt;CAN ANYBODY EXPLAIN ME WHAT IS THIS 'BCALV_GRID_DEMO_0100_CONT1'&lt;/P&gt;&lt;P&gt;AND WHAT IS AN INSTANCE EXACTLY?(WHILE CREATING AN OBJECT ON FILLER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;KANNY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 01 Sep 2006 09:42:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-09-01T09:42:15Z</dc:date>
    <item>
      <title>create an object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527942#M241529</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI ALL&lt;/P&gt;&lt;P&gt;CAN ANYBODY EXPLAIN ME WHAT IS THIS 'BCALV_GRID_DEMO_0100_CONT1'&lt;/P&gt;&lt;P&gt;AND WHAT IS AN INSTANCE EXACTLY?(WHILE CREATING AN OBJECT ON FILLER)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;KANNY&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 09:42:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527942#M241529</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T09:42:15Z</dc:date>
    </item>
    <item>
      <title>Re: create an object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527943#M241530</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Kanny&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;'BCALV_GRID_DEMO_0100_CONT1' is a custom control on dynpro 100 of the report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The coding of the PBO module is shown below:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MODULE PBO OUTPUT.
  SET PF-STATUS 'MAIN100'.
  IF G_CUSTOM_CONTAINER IS INITIAL.
    CREATE OBJECT G_CUSTOM_CONTAINER
           EXPORTING CONTAINER_NAME = G_CONTAINER.
    CREATE OBJECT GRID1
           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.
    CALL METHOD GRID1-&amp;gt;SET_TABLE_FOR_FIRST_DISPLAY
         EXPORTING I_STRUCTURE_NAME = 'SFLIGHT'
         CHANGING  IT_OUTTAB        = GT_SFLIGHT.
  ENDIF.
ENDMODULE.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What does it mean? You cannot directly place a control (like ALV grid control, tree control) onto a dynpro but you need a container. This container instance is created using command:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;    CREATE OBJECT G_CUSTOM_CONTAINER
           EXPORTING CONTAINER_NAME = G_CONTAINER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The container instance is directly linked to the custom control element on the dynpro, meaning it will be displayed there.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is an instance? Well, a class is just a description of a possible object with attributes and methods. To work with a class you need a concrete object which is an instance of this class. This instance has attributes with concrete values and it can execute the methods.&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>Fri, 01 Sep 2006 09:49:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527943#M241530</guid>
      <dc:creator>uwe_schieferstein</dc:creator>
      <dc:date>2006-09-01T09:49:56Z</dc:date>
    </item>
    <item>
      <title>Re: create an object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527944#M241531</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;In the program BCALV_GRID_DEMO, BCALV_GRID_DEMO_0100_CONT1 is the container that hold the alv grid control. Basically, a custom container is needed to hold controls like alv grid control, tree control, picture control, HTML Control etc. You can find useful example that are simle and easy to understand in se38-&amp;gt;Environment-&amp;gt;Examples-&amp;gt;Control Examples. &lt;/P&gt;&lt;P&gt;We have classes(which is abstract) and instance(or objects which has real existance). So first the object/instance of this container is created so that it can hold a control.&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT G_CUSTOM_CONTAINER
           EXPORTING CONTAINER_NAME = G_CONTAINER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Then an instance of grid is created and while creating this instance we need to give the controller name which will hold this control(grid control).&lt;/P&gt;&lt;P&gt;    &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CREATE OBJECT GRID1
           EXPORTING I_PARENT = G_CUSTOM_CONTAINER.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Hope this will provide some understanding about instance and how BCALV_GRID_DEMO works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Richa&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 10:33:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527944#M241531</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T10:33:57Z</dc:date>
    </item>
    <item>
      <title>Re: create an object</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527945#M241532</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;go through this example&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;report BCALV_TABLE_CREATE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: ok_code like sy-ucomm,&lt;/P&gt;&lt;P&gt;     g_container type scrfname value 'BCALV_GRID_DEMO_0100_CONT1',&lt;/P&gt;&lt;P&gt;     grid1  type ref to cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;     g_custom_container type ref to cl_gui_custom_container.&lt;/P&gt;&lt;P&gt;*&lt;/P&gt;&lt;P&gt;data: gt_fieldcat type lvc_t_fcat.&lt;/P&gt;&lt;P&gt;data: gp_table type ref to data.&lt;/P&gt;&lt;P&gt;field-symbols: &amp;lt;gt_table&amp;gt; type table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters: n type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if n &amp;gt; 100.&lt;/P&gt;&lt;P&gt; message a000(0k) with 'N &amp;lt;= 100'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform fieldcat_build.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call method cl_alv_table_create=&amp;gt;create_dynamic_table&lt;/P&gt;&lt;P&gt;                        exporting it_fieldcatalog = gt_fieldcat&lt;/P&gt;&lt;P&gt;                        importing ep_table = gp_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign gp_table-&amp;gt;* to &amp;lt;gt_table&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;perform fill_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call screen 100.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 01 Sep 2006 10:50:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/create-an-object/m-p/1527945#M241532</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-01T10:50:20Z</dc:date>
    </item>
  </channel>
</rss>

