<?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: Dynamically resizing table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433957#M1246705</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;Suppose your screen is 9000&lt;/P&gt;&lt;P&gt;Now in PBO define a module set_attr_table and handle&lt;/P&gt;&lt;P&gt;handle it via your button -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_9000.&lt;/P&gt;&lt;P&gt;  MODULE set_attr_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT  t_lips3 INTO w_lips3_ds WITH CONTROL&lt;/P&gt;&lt;P&gt;           t_inbd CURSOR t_inbd-top_line.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where if you have already defined &lt;/P&gt;&lt;P&gt;CONTROLS: t_inbd       TYPE TABLEVIEW USING SCREEN '9000'. &lt;/P&gt;&lt;P&gt;t_lips3 is the table you are using to display records from.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module set_attr_table try to change the the table control dynamically -&lt;/P&gt;&lt;P&gt;DATA: w_ls_cer_inbd_ds  LIKE LINE OF t_inbd-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to modify the column attributes dynamically by modifying the screen table contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_inbd-cols INTO w_ls_cer_inbd_ds.&lt;/P&gt;&lt;P&gt;      IF sy-tabix = 5 or sy-tabix = 6.&lt;/P&gt;&lt;P&gt;        w_ls_cer_inbd_ds-invisible = 1.&lt;/P&gt;&lt;P&gt;        MODIFY t_inbd-cols FROM w_ls_cer_inbd_ds TRANSPORTING invisible.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;Say column 5 and 6 you want to change.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 07 Apr 2009 06:54:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-07T06:54:34Z</dc:date>
    <item>
      <title>Dynamically resizing table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433956#M1246704</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;&lt;/P&gt;&lt;P&gt;I have designed a table control in the screen. in that, I have fixed the number of columns (7) using Fixed coulmns option in the screen painter. But, when the user selects an option (radio button) in the screen, I will hide two columns of the table control. So, now I want to resize the table control i.e. reduce the horizontal width of the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can I achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please help me....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 06 Apr 2009 10:34:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433956#M1246704</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-06T10:34:06Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resizing table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433957#M1246705</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;Suppose your screen is 9000&lt;/P&gt;&lt;P&gt;Now in PBO define a module set_attr_table and handle&lt;/P&gt;&lt;P&gt;handle it via your button -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PROCESS BEFORE OUTPUT.&lt;/P&gt;&lt;P&gt;  MODULE status_9000.&lt;/P&gt;&lt;P&gt;  MODULE set_attr_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT  t_lips3 INTO w_lips3_ds WITH CONTROL&lt;/P&gt;&lt;P&gt;           t_inbd CURSOR t_inbd-top_line.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Where if you have already defined &lt;/P&gt;&lt;P&gt;CONTROLS: t_inbd       TYPE TABLEVIEW USING SCREEN '9000'. &lt;/P&gt;&lt;P&gt;t_lips3 is the table you are using to display records from.       &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the module set_attr_table try to change the the table control dynamically -&lt;/P&gt;&lt;P&gt;DATA: w_ls_cer_inbd_ds  LIKE LINE OF t_inbd-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try to modify the column attributes dynamically by modifying the screen table contents&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT t_inbd-cols INTO w_ls_cer_inbd_ds.&lt;/P&gt;&lt;P&gt;      IF sy-tabix = 5 or sy-tabix = 6.&lt;/P&gt;&lt;P&gt;        w_ls_cer_inbd_ds-invisible = 1.&lt;/P&gt;&lt;P&gt;        MODIFY t_inbd-cols FROM w_ls_cer_inbd_ds TRANSPORTING invisible.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;Say column 5 and 6 you want to change.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 06:54:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433957#M1246705</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T06:54:34Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resizing table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433958#M1246706</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Amurta,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for the reply!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As I said above, I have already hidden two columns. But, my problem is after hiding those columns there is a blank space after the final column. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I want this blank space to be removed. so, I want to resize the table control after hiding those coulmns.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rajan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 07 Apr 2009 10:57:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433958#M1246706</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-07T10:57:39Z</dc:date>
    </item>
    <item>
      <title>Re: Dynamically resizing table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433959#M1246707</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;Check out the link&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[https://www.sdn.sap.com/irj/scn/advancedsearch?query=resizing&lt;EM&gt;table&lt;/EM&gt;control&lt;EM&gt;width&amp;amp;cat=sdn_all|https://www.sdn.sap.com/irj/scn/advancedsearch?query=resizing&lt;/EM&gt;table&lt;EM&gt;control&lt;/EM&gt;width&amp;amp;cat=sdn_all]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 10 Apr 2009 08:28:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/dynamically-resizing-table-control/m-p/5433959#M1246707</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-10T08:28:03Z</dc:date>
    </item>
  </channel>
</rss>

