<?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 Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670022#M883958</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;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to disable any column of table control at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 05 Apr 2008 08:17:57 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-04-05T08:17:57Z</dc:date>
    <item>
      <title>Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670022#M883958</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;&lt;/P&gt;&lt;P&gt;Can anyone tell me how to disable any column of table control at runtime.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;your help will be rewarded.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 08:17:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670022#M883958</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T08:17:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670023#M883959</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;we can disable the column by making it display only&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now assume the name of your table control is ZTABLECONT..double click on the screen painter on the table control..these 2 names must be the same....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data declaration:&lt;/P&gt;&lt;P&gt;data : cols        like   line of  ZTABLECONT-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at ZTABLECONT-cols into cols.&lt;/P&gt;&lt;P&gt;        if  cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;        modify ZTABLECONT-cols from cols index sy-tabix.&lt;/P&gt;&lt;P&gt;      endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will disable all the columns&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for a particular column do the following&lt;/P&gt;&lt;P&gt;For this imagine you have 5 columns&lt;/P&gt;&lt;P&gt;in the below code &lt;/P&gt;&lt;P&gt;index = 1 =&amp;gt; column 1&lt;/P&gt;&lt;P&gt;index = 2 =&amp;gt; column 2&lt;/P&gt;&lt;P&gt;index = 3 =&amp;gt; column 3&lt;/P&gt;&lt;P&gt;index = 4 =&amp;gt; column 4&lt;/P&gt;&lt;P&gt;index = 5 =&amp;gt; column 5&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in the below code , only column2 will be disabled....&lt;/P&gt;&lt;P&gt;so whicever column you want to disable ..just give the index&lt;/P&gt;&lt;P&gt;for multiple disabling..just write the code accordingly &lt;/P&gt;&lt;P&gt;LOOP AT ZTABLECONT-cols INTO cols WHERE index = 2.&lt;/P&gt;&lt;P&gt;        IF  cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;          cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;        MODIFY ZTABLECONT-cols FROM cols INDEX sy-tabix.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The above code can be written in PAI  or PBO as per your requirement&lt;/P&gt;&lt;P&gt;For eg: if on entering the screen for the first time..for a particular condition you need the columns disabled means write it in PBO&lt;/P&gt;&lt;P&gt;if you need to disable columns of table control as a part of user action..like say click of a button..it can be entered in PAI by checking the sy-ucomm&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls check and revert...the code works and is being used in active code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpful &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Byju&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 09:05:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670023#M883959</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T09:05:42Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670024#M883960</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;thanks for reply&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 05 Apr 2008 10:27:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670024#M883960</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-05T10:27:50Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670025#M883961</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Vipul,,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the ans given above is at compile time or hard coding...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as u asked for something at run time, i think the following will help you...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use screen end screen option and set the screen element's active attribute to inactive. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can see the variuos options available by pressing f1 help on "screen".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the best way to do this as it happens at runtime only wen required.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Do Reward and get back if any trouble.&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 06 Apr 2008 04:51:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/3670025#M883961</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-04-06T04:51:02Z</dc:date>
    </item>
  </channel>
</rss>

