<?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: enble / disable table control column at runtime. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/enble-disable-table-control-column-at-runtime/m-p/3831768#M921394</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work. Are you using both statements in PBO of the screen that contains Table Control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar code, for example, to hide columns. As aditional info, use TRANSPORTING statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cols_in is a table with the fields to appear, like a variant construction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Retira colunas
  LOOP AT table_control-cols INTO wa_cols.
    READ TABLE cols_in WITH KEY field = wa_cols-screen-name+3.
    CHECK sy-subrc NE 0.
    wa_cols-invisible = '1'.
    MODIFY table_control-cols FROM wa_cols TRANSPORTING invisible.
  ENDLOOP.

* Insere colunas
  LOOP AT table_control-cols INTO wa_cols WHERE invisible EQ '1'.
    READ TABLE cols_in WITH KEY field = wa_cols-screen-name+3.
    CHECK sy-subrc EQ 0.
    wa_cols-invisible = space.
    MODIFY table_control-cols FROM wa_cols TRANSPORTING invisible.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post all of the PBO module coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 14 May 2008 14:24:43 GMT</pubDate>
    <dc:creator>valter_oliveira</dc:creator>
    <dc:date>2008-05-14T14:24:43Z</dc:date>
    <item>
      <title>enble / disable table control column at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enble-disable-table-control-column-at-runtime/m-p/3831767#M921393</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi to all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want to make my table control enable &amp;amp; disable at runtime according to some logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at first in PBO i was tried to disabled column number 1 with help of this code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT TC_RISK_EX-COLS INTO D_TC_EXC WHERE INDEX = 1.&lt;/P&gt;&lt;P&gt;      D_TC_EXC-SCREEN-INPUT = 0.&lt;/P&gt;&lt;P&gt;      MODIFY TC_RISK_EX-COLS FROM D_TC_EXC INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but after that i was tried to make it enable  with help of this code. but it is not working.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT TC_RISK_EX-COLS INTO D_TC_EXC WHERE INDEX = 1.&lt;/P&gt;&lt;P&gt;      D_TC_EXC-SCREEN-INPUT = 1.&lt;/P&gt;&lt;P&gt;      MODIFY TC_RISK_EX-COLS FROM D_TC_EXC INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is there any Solution for these ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 13:16:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enble-disable-table-control-column-at-runtime/m-p/3831767#M921393</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-14T13:16:33Z</dc:date>
    </item>
    <item>
      <title>Re: enble / disable table control column at runtime.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/enble-disable-table-control-column-at-runtime/m-p/3831768#M921394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;It should work. Are you using both statements in PBO of the screen that contains Table Control?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a similar code, for example, to hide columns. As aditional info, use TRANSPORTING statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;cols_in is a table with the fields to appear, like a variant construction.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
* Retira colunas
  LOOP AT table_control-cols INTO wa_cols.
    READ TABLE cols_in WITH KEY field = wa_cols-screen-name+3.
    CHECK sy-subrc NE 0.
    wa_cols-invisible = '1'.
    MODIFY table_control-cols FROM wa_cols TRANSPORTING invisible.
  ENDLOOP.

* Insere colunas
  LOOP AT table_control-cols INTO wa_cols WHERE invisible EQ '1'.
    READ TABLE cols_in WITH KEY field = wa_cols-screen-name+3.
    CHECK sy-subrc EQ 0.
    wa_cols-invisible = space.
    MODIFY table_control-cols FROM wa_cols TRANSPORTING invisible.
  ENDLOOP.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you post all of the PBO module coding?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best regards.&lt;/P&gt;&lt;P&gt;Valter Oliveira.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 May 2008 14:24:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/enble-disable-table-control-column-at-runtime/m-p/3831768#M921394</guid>
      <dc:creator>valter_oliveira</dc:creator>
      <dc:date>2008-05-14T14:24:43Z</dc:date>
    </item>
  </channel>
</rss>

