<?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 Hide the columns in table-control. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930610#M1150239</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 hide the columns in table-control in dialog-promming.can any one help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 11 Dec 2008 12:00:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-12-11T12:00:06Z</dc:date>
    <item>
      <title>Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930610#M1150239</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 hide the columns in table-control in dialog-promming.can any one help me.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;singh.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:00:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930610#M1150239</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T12:00:06Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930611#M1150240</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello Rekha,&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------------------------" /&gt;&lt;P&gt;&lt;STRONG&gt;Please take the help of program RSDEMO02 for your ready reference.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------------------------------" /&gt;&lt;P&gt;In the screen  painter the fields of table control which you want to hie/disable assign a group to them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in PBO&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab with control tc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;here declare a module&lt;/P&gt;&lt;P&gt;module modify_fields.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program&lt;/P&gt;&lt;P&gt;module modify_fields.&lt;/P&gt;&lt;P&gt;if some_condition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-group1 = 'GRP'.&lt;/P&gt;&lt;P&gt;screen-active = 0.&lt;/P&gt;&lt;P&gt;screen-invisible = 1.&lt;/P&gt;&lt;P&gt;screen-input = 0.&lt;/P&gt;&lt;P&gt;modify screen.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Best Regards&lt;/P&gt;&lt;P&gt;Ramchander Rao.K&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: ramchander krishnamraju on Dec 12, 2008 6:21 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 11 Dec 2008 12:06:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930611#M1150240</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-11T12:06:08Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930612#M1150241</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;welcome in SDN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;did you check this thread?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="6207918"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope it helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;Sachin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 04:38:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930612#M1150241</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T04:38:35Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930613#M1150242</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rekha,&lt;/P&gt;&lt;P&gt;I also had same kind of requirement.&lt;/P&gt;&lt;P&gt;Try this it will surely help you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if sy-tcode = 'ZAMITTRANS_AMIT'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: waa LIKE LINE OF TABCON-cols.&lt;/P&gt;&lt;P&gt;CLEAR waa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      LOOP AT TABCON-cols INTO waa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        IF waa-index = 3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;          waa-invisible = 'X'.&lt;/P&gt;&lt;P&gt;          MODIFY TABCON-cols FROM waa.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        ENDIF.&lt;/P&gt;&lt;P&gt;&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;The column you want to hide give it in waa-index.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Amit.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: AMIT BISHT on Dec 12, 2008 6:27 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Dec 2008 05:27:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930613#M1150242</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-12T05:27:33Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930614#M1150243</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen, write the code as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  loop at i_final into wa_final with control table_control&lt;/P&gt;&lt;P&gt;                   cursor table_control-current_line.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Module to hide the columns of table control&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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 &amp;lt;condition_required&amp;gt;.&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;With 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 06:54:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930614#M1150243</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-16T06:54:28Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930615#M1150244</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To hide a column in a table control on screen.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the screen, inside &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
loop with control &amp;lt;tab_ctrl_name&amp;gt;.
 module modify_tab.
endloop.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say for a column, you take group1 as &lt;STRONG&gt;'ABC'&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;In this module you can use the group for the input/output fields and the display/hide them as per your requirements.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if &amp;lt;condition&amp;gt;.
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-invisible = 'X'. "hide a column
   screen-active = ' '.
  endif.
  modify screen.
 elseif &amp;lt;condition&amp;gt;.
 loop at screen.
  if screen-group1 = 'ABC'. "say textbox (column for a table) has group1 as ABC
   screen-invisible = 'X'. "display a column
   screen-active = 'X'.
  endif.
  modify screen.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Similarly, you can use this code for other columsn also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this solves your prolem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Tarun Gambhir&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 16 Dec 2008 10:46:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930615#M1150244</guid>
      <dc:creator>I355602</dc:creator>
      <dc:date>2008-12-16T10:46:36Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930616#M1150245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt;try this....&lt;/P&gt;&lt;P&gt;In PBO module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name eq 'SCREEN_NO'.&lt;/P&gt;&lt;P&gt;screen-invisible eq '1'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 07:45:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930616#M1150245</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T07:45:09Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930617#M1150246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the table control  as TC_NUTRI_CAL and also declare the workarea as cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the PBO call the table control in the following way and check for the field name .&lt;/P&gt;&lt;P&gt;This is code will work, the same code i used for my current report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: cols LIKE LINE OF tc_nutri_cal-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tc_nutri_cal-cols INTO cols.&lt;/P&gt;&lt;P&gt;    cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;    IF cols-screen-name = 'WA_NUTRI_CAL-NUTRIMENT_ID'.&lt;/P&gt;&lt;P&gt;      cols-invisible = '1'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY tc_nutri_cal-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;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 09:34:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930617#M1150246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T09:34:23Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930618#M1150247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi rekha,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare the table control  as TC_NUTRI_CAL and also declare the workarea as cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;now in the PBO call the table control in the following way and check for the field name .&lt;/P&gt;&lt;P&gt;This is code will work, the same code i used for my current report.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DATA: cols LIKE LINE OF tc_nutri_cal-cols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  LOOP AT tc_nutri_cal-cols INTO cols.&lt;/P&gt;&lt;P&gt;    cols-screen-input = '0'.&lt;/P&gt;&lt;P&gt;    IF cols-screen-name = 'WA_NUTRI_CAL-NUTRIMENT_ID'.&lt;/P&gt;&lt;P&gt;      cols-invisible = '1'.&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;    MODIFY tc_nutri_cal-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;Regards,&lt;/P&gt;&lt;P&gt;Madhavi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 24 Dec 2008 09:35:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930618#M1150247</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-12-24T09:35:26Z</dc:date>
    </item>
    <item>
      <title>Re: Hide the columns in table-control.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930619#M1150248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;awesome, this worked for me .&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jan 2016 09:04:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/hide-the-columns-in-table-control/m-p/4930619#M1150248</guid>
      <dc:creator>Jay_Kamdar</dc:creator>
      <dc:date>2016-01-28T09:04:44Z</dc:date>
    </item>
  </channel>
</rss>

