<?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: Hiding a Table Control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444315#M547381</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;U can hide the colunms only, not the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to hide the table control you should use a two subscreens, one with the table control and one empty; when you want to hide the tc you call the empty subscreen instead of the subscreen with tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to hide the colunms:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: CXTAB.

DATA: COL LIKE CXTAB_COLUMN.

LOOP AT &amp;lt;TABLE CONTROL&amp;gt;-COLS INTO COL.
  IF COL-SCREEN-NAME = . ......
    COL-SCREEN-INVISIBLE = 'X'.
    MODIFY &amp;lt;TABLE CONTROL&amp;gt;-COLS FROM COL.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place a code like above in PBO before the loop of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jul 2007 14:45:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-07-05T14:45:48Z</dc:date>
    <item>
      <title>Hiding a Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444313#M547379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible to hide a table control based on some conditions? If so, how? &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:31:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444313#M547379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T14:31:46Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444314#M547380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data cols like line of itab-cols.&lt;/P&gt;&lt;P&gt;   loop at itab-cols into cols.&lt;/P&gt;&lt;P&gt;         if cols-screen-group1 = 'G1' or cols-screen-group1 = 'G2'.&lt;/P&gt;&lt;P&gt;           cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;         else.&lt;/P&gt;&lt;P&gt;           cols-screen-input = '1'.&lt;/P&gt;&lt;P&gt;         endif.&lt;/P&gt;&lt;P&gt;         modify itab-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;try to use the above code in PBO event&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will be help&lt;/P&gt;&lt;P&gt;don't forget reward points if helpful&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:43:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444314#M547380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T14:43:18Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444315#M547381</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;U can hide the colunms only, not the table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to hide the table control you should use a two subscreens, one with the table control and one empty; when you want to hide the tc you call the empty subscreen instead of the subscreen with tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to hide the colunms:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TYPE-POOLS: CXTAB.

DATA: COL LIKE CXTAB_COLUMN.

LOOP AT &amp;lt;TABLE CONTROL&amp;gt;-COLS INTO COL.
  IF COL-SCREEN-NAME = . ......
    COL-SCREEN-INVISIBLE = 'X'.
    MODIFY &amp;lt;TABLE CONTROL&amp;gt;-COLS FROM COL.
  ENDIF.
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Place a code like above in PBO before the loop of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Max&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jul 2007 14:45:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444315#M547381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-05T14:45:48Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444316#M547382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Please try following code .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;table control&amp;gt;-invisible = 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If helpful this answer please award neccessary  points.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds,&lt;/P&gt;&lt;P&gt;Ranjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 10:24:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444316#M547382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T10:24:27Z</dc:date>
    </item>
    <item>
      <title>Re: Hiding a Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444317#M547383</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;make one button in status.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and write in USER_COMMAND_9000 module of PAI.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;MODULE user_command_9000 INPUT.&amp;lt;/b&amp;gt;  &lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt; CASE sy-ucomm.&lt;/P&gt;&lt;P&gt;    WHEN 'BACK' OR 'UP' OR 'CANC'.&lt;/P&gt;&lt;P&gt;      LEAVE PROGRAM.&lt;/P&gt;&lt;P&gt;   &amp;lt;b&amp;gt; WHEN 'HIDE'.&lt;/P&gt;&lt;P&gt;      tab1-invisible = 'X'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;ENDMODULE.                 " USER_COMMAND_9000  INPUT&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 06 Oct 2007 11:27:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hiding-a-table-control/m-p/2444317#M547383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-06T11:27:12Z</dc:date>
    </item>
  </channel>
</rss>

