<?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: creating a table control(class) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237942#M772681</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls reward pts if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepanker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a Control (for Custom and Split Containers only)&lt;/P&gt;&lt;P&gt;2. Instantiate a Container Object (in case of Custom and Split Containers, specify the control which is created by us in Screen painter) CREATE OBJECT &lt;/P&gt;&lt;P&gt;3. Instantiate an Object of the kind of report that has to be displayed (List, Grid or Tree). CREATE OBJECT . Here we need to specify the Parent Container as the so that it sits in that container.&lt;/P&gt;&lt;P&gt;4. Call appropriate methods to display the report on the screen. CALL METHOD -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DATA : g_dock TYPE REF TO cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;g_split TYPE REF TO cl_gui_easy_splitter_container,&lt;/P&gt;&lt;P&gt;g_cont1 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_cont2 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;g_grid2 TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_mara is an internal table of structure MARA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM mara INTO TABLE i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_kna1 is an internal table of structure KNA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE i_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create an Object of type Docking Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_dock&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;side = cl_gui_docking_container=&amp;gt;dock_at_top&lt;/P&gt;&lt;P&gt;extension = 200 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of Type Split Container. Here we can see that the Docking *Container Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_split&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = g_dock&lt;/P&gt;&lt;P&gt;orientation = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Easy Split container splits one Control into 2 manageable controls, each of them is used * to handle one GUI Container each&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_cont1 = g_split-&amp;gt;top_left_container.&lt;/P&gt;&lt;P&gt;g_cont2 = g_split-&amp;gt;bottom_right_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Left Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Right Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid2&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'MARA'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_mara[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid2-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'KNA1'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_kna1[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls reward pts if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 31 Dec 2007 06:33:15 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-12-31T06:33:15Z</dc:date>
    <item>
      <title>creating a table control(class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237941#M772680</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi everyone,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;              how to create a table control using class methods..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx in advance,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;balaji.s&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 06:29:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237941#M772680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T06:29:39Z</dc:date>
    </item>
    <item>
      <title>Re: creating a table control(class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237942#M772681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Balaji&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;try this code. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls reward pts if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deepanker.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Create a Control (for Custom and Split Containers only)&lt;/P&gt;&lt;P&gt;2. Instantiate a Container Object (in case of Custom and Split Containers, specify the control which is created by us in Screen painter) CREATE OBJECT &lt;/P&gt;&lt;P&gt;3. Instantiate an Object of the kind of report that has to be displayed (List, Grid or Tree). CREATE OBJECT . Here we need to specify the Parent Container as the so that it sits in that container.&lt;/P&gt;&lt;P&gt;4. Call appropriate methods to display the report on the screen. CALL METHOD -&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;DATA : g_dock TYPE REF TO cl_gui_docking_container,&lt;/P&gt;&lt;P&gt;g_split TYPE REF TO cl_gui_easy_splitter_container,&lt;/P&gt;&lt;P&gt;g_cont1 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_cont2 TYPE REF TO cl_gui_container,&lt;/P&gt;&lt;P&gt;g_grid1 TYPE REF TO cl_gui_alv_grid,&lt;/P&gt;&lt;P&gt;g_grid2 TYPE REF TO cl_gui_alv_grid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_mara is an internal table of structure MARA&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;SELECT * FROM mara INTO TABLE i_mara.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;i_kna1 is an internal table of structure KNA1&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM kna1 INTO TABLE i_kna1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To create an Object of type Docking Container&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_dock&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;side = cl_gui_docking_container=&amp;gt;dock_at_top&lt;/P&gt;&lt;P&gt;extension = 200 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of Type Split Container. Here we can see that the Docking *Container Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_split&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;parent = g_dock&lt;/P&gt;&lt;P&gt;orientation = 1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Easy Split container splits one Control into 2 manageable controls, each of them is used * to handle one GUI Container each&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;g_cont1 = g_split-&amp;gt;top_left_container.&lt;/P&gt;&lt;P&gt;g_cont2 = g_split-&amp;gt;bottom_right_container.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Left Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid1&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont1 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;To Create an Object of type Grid . Here we can see that the Right Split Container * Created above has been used as a parent .&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CREATE OBJECT g_grid2&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_parent = g_cont2 .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid1-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'MARA'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_mara[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;The method of Grid Control Object is used to display the Data.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD g_grid2-&amp;gt;set_table_for_first_display&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_structure_name = 'KNA1'&lt;/P&gt;&lt;P&gt;CHANGING&lt;/P&gt;&lt;P&gt;it_outtab = i_kna1[] .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;pls reward pts if help.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 06:33:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237942#M772681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T06:33:15Z</dc:date>
    </item>
    <item>
      <title>Re: creating a table control(class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237943#M772682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check ou tthe link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://wiki.ittoolbox.com/index.php/Control_of_Screen_Fields_for_ESS_Scenarios" target="test_blank"&gt;http://wiki.ittoolbox.com/index.php/Control_of_Screen_Fields_for_ESS_Scenarios&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 31 Dec 2007 06:33:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237943#M772682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-31T06:33:28Z</dc:date>
    </item>
    <item>
      <title>Re: creating a table control(class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237944#M772683</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;You can use the class CL_TABLECONTROL and method SET_VALUES to populate values to the table control. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you have to create a custom container to place the table control on the screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare type references to the custom container class and table control class. Initialize those and call method SET_VALUES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Renjith Michael.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 01 Jan 2008 06:13:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237944#M772683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-01T06:13:26Z</dc:date>
    </item>
    <item>
      <title>Re: creating a table control(class)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237945#M772684</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sorry for such a post after so long. Actually I am new to abap and want to learn about the class cl_tablecontrol. As you have mentioned in your reply that we have to make a custom container for the table control on the screen. How can we place a table control in a custom container (not alv grid) ? Can you give me a sample code for the same class?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 18 May 2015 11:55:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/creating-a-table-control-class/m-p/3237945#M772684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2015-05-18T11:55:01Z</dc:date>
    </item>
  </channel>
</rss>

