<?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: Table control in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911822#M1146684</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 check---&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1552053"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also If you want to make some fields or columns invisible during runtime then create a groupname to such fields and add the code given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls tbl_ctrl type tableview ... &lt;/P&gt;&lt;P&gt;wa like tbl_ctrl-cols. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tbl_ctrl-cols into wa. &lt;/P&gt;&lt;P&gt;if wa-screen-group1 = &amp;lt;group defined for the column&amp;gt; &lt;/P&gt;&lt;P&gt;wa-invisible = 1. &lt;/P&gt;&lt;P&gt;modify tbl_ctrl-cols from wa &lt;/P&gt;&lt;P&gt;endif &lt;/P&gt;&lt;P&gt;endloop &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Alok Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Dec 2008 06:30:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-16T06:30:56Z</dc:date>
    <item>
      <title>Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911818#M1146680</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;    How to add field in existing table control&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    I hve made one table control with the help of wizard now i want  add one field in it .&lt;/P&gt;&lt;P&gt;    I have manually added the Fields to the table control.But i do not want to display these newly added   &lt;/P&gt;&lt;P&gt;      fields (invisible).These newly added fields are only for Processing purpose.&lt;/P&gt;&lt;P&gt;    When i went to check the invisible checkbox in display options that button was disabled.&lt;/P&gt;&lt;P&gt;    Can anyone help me out?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 05:35:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911818#M1146680</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T05:35: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/4911819#M1146681</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PBO:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE HIDE_TC_COLUMNS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In above module, code like&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;" TC is table control name&lt;/P&gt;&lt;P&gt;IF &amp;lt;SOME CONDITION&amp;gt;&lt;/P&gt;&lt;P&gt;    LOOP AT TC-COLS INTO TC_COLS.&lt;/P&gt;&lt;P&gt;      IF TC_COLS-SCREEN-GROUP1 = 'XYZ'." Assign XYZ as GROUP1 for columns u dont want to display&lt;/P&gt;&lt;P&gt;        TC_COLS-INVISIBLE = 1.&lt;/P&gt;&lt;P&gt;        MODIFY TC-COLS FROM TC_COLS INDEX SY-TABIX.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"Where TC_COLS isof type SCXTAB_COLUMN.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 05:49:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911819#M1146681</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T05:49:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911820#M1146682</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Madan,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to add a new field (column) to the existing table control follow the steps given below.&lt;/P&gt;&lt;P&gt;1. goto -&amp;gt; secondary window -&amp;gt; dictionary fields or program fields... &lt;/P&gt;&lt;P&gt;2. enter the table or program name... and drag that filed in to your table control header&lt;/P&gt;&lt;P&gt;3. Or you can enter I/O field from tool box and text field from tool box for header of that I/O field&lt;/P&gt;&lt;P&gt;4. You can adjust visible length... for your new field...&lt;/P&gt;&lt;P&gt;5. Save and activate.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For making the fields, invisible you can follow the below method.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;MODULE hide_columns_dynamically.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE hide_columns_dynamically OUTPUT.&lt;/P&gt;&lt;P&gt;  IF (Required condition).&lt;/P&gt;&lt;P&gt;    DATA:cols TYPE cxtab_column.&lt;/P&gt;&lt;P&gt;    LOOP AT table_control-cols INTO cols.&lt;/P&gt;&lt;P&gt;      IF cols-index        = 3 OR&lt;/P&gt;&lt;P&gt;         cols-index        = 4 OR&lt;/P&gt;&lt;P&gt;         cols-index        = 5 OR&lt;/P&gt;&lt;P&gt;         cols-index        = 6 AND&lt;/P&gt;&lt;P&gt;         cols-screen-input = '0'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;This will hide the 5th, 6th, 7th and 8th columns&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;        cols-invisible     = 'X'.&lt;/P&gt;&lt;P&gt;        MODIFY table_control-cols FROM cols.&lt;/P&gt;&lt;P&gt;      ENDIF.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;ENDMODULE.                 " hide_columns_dynamically  OUTPUT&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards,&lt;/P&gt;&lt;P&gt;Deepa Kulkarni&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 05:54:02 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911820#M1146682</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T05:54:02Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911821#M1146683</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;If you want to make some fields or columns invisible at runtime...then give a groupname to them &lt;/P&gt;&lt;P&gt;and add this code given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls tbl_ctrl type tableview ... &lt;/P&gt;&lt;P&gt;wa like tbl_ctrl-cols. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tbl_ctrl-cols into wa. &lt;/P&gt;&lt;P&gt;if wa-screen-group1 = &amp;lt;group defined for the column&amp;gt; &lt;/P&gt;&lt;P&gt;wa-invisible = 1. &lt;/P&gt;&lt;P&gt;modify tbl_ctrl-cols from wa &lt;/P&gt;&lt;P&gt;endif &lt;/P&gt;&lt;P&gt;endloop &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Alok Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:27:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911821#M1146683</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:27:51Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911822#M1146684</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 check---&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1552053"&gt;&lt;/A&gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and also If you want to make some fields or columns invisible during runtime then create a groupname to such fields and add the code given below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;controls tbl_ctrl type tableview ... &lt;/P&gt;&lt;P&gt;wa like tbl_ctrl-cols. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at tbl_ctrl-cols into wa. &lt;/P&gt;&lt;P&gt;if wa-screen-group1 = &amp;lt;group defined for the column&amp;gt; &lt;/P&gt;&lt;P&gt;wa-invisible = 1. &lt;/P&gt;&lt;P&gt;modify tbl_ctrl-cols from wa &lt;/P&gt;&lt;P&gt;endif &lt;/P&gt;&lt;P&gt;endloop &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards:&lt;/P&gt;&lt;P&gt;Alok Bansal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 06:30:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911822#M1146684</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:30:56Z</dc:date>
    </item>
    <item>
      <title>Re: Table control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911823#M1146685</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This message was moderated.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 13:48:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/4911823#M1146685</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T13:48:09Z</dc:date>
    </item>
  </channel>
</rss>

