<?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/8301311#M1635667</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the module pool, inside the loop endloop, If I assume the module name to be 'MODULE HANDLE_FIELD':-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_tab with control it_tab_cntrl.&lt;/P&gt;&lt;P&gt;module handle_field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE HANDLE_FIELD.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if the column needs to be active for input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if it_tab-flag = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'IT_TAB-COL1'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 11 Nov 2011 09:36:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2011-11-11T09:36:33Z</dc:date>
    <item>
      <title>Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301307#M1635663</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Is it possible in table control to control the input status in different lines for the same column?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Exemple: Line 1 Column 1 input is active&lt;/P&gt;&lt;P&gt;               Line 2 Column 1 input is inactive&lt;/P&gt;&lt;P&gt;               Line 3 Column 1 input is active etc..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Daniel Cantin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 01:27:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301307#M1635663</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-10T01:27:18Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301308#M1635664</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What is the business requirement.What values are planning to display.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Madhu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 03:05:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301308#M1635664</guid>
      <dc:creator>madhu_vadlamani</dc:creator>
      <dc:date>2011-11-10T03:05: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/8301309#M1635665</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your case of making certain rows editable can be handled but I am not sure if it can be done to a particular column level. &lt;/P&gt;&lt;P&gt;We can make desired rows (all columns) editable by including a module in PBO of that screen&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;Sample code:&lt;/STRONG&gt; ( Here I am making certain rows editable based on a flag)&lt;/P&gt;&lt;P&gt;In PBO, write a module (here module editnew).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; loop at   ITAB with control TC_4000 cursor tc_4000-current_line.&lt;/P&gt;&lt;P&gt;   module TC_4000_get_lines.&lt;/P&gt;&lt;P&gt;   &lt;STRONG&gt;module editnew&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt; endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;MODULE editnew OUTPUT.&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;  if itab-flag  =  'X'.(Here flag is set for the rows to be made editable)&lt;/P&gt;&lt;P&gt;    loop at screen.&lt;/P&gt;&lt;P&gt;      screen-input  =  1.&lt;/P&gt;&lt;P&gt;      modify screen.&lt;/P&gt;&lt;P&gt;    endloop.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;ENDMODULE.&lt;/STRONG&gt;                 "&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 03:29:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301309#M1635665</guid>
      <dc:creator>Arun_Prabhu_K</dc:creator>
      <dc:date>2011-11-10T03:29:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301310#M1635666</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;&lt;/P&gt;&lt;P&gt; You can do that  at  each cell of table control   I.E&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;suppose  you have column  name  it_tab-qty1 and screen name  it_tab-qty1   .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you can add logic  to make editable and non editable as per your wish .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;loop at screen.
    if ( screen-name = 'IT_QTY-QTY1' and it_qty-qty1 = 0 ) or ( screen-name = 'IT_QTY-QTY2' and it_qty-qty2 = 0 )
      or ( screen-name = 'IT_QTY-QTY3' and it_qty-qty3 = 0 )  or ( screen-name = 'IT_QTY-QTY4' and it_qty-qty4 = 0 )
      or ( screen-name = 'IT_QTY-QTY5' and it_qty-qty5 = 0 )  or  ( screen-name = 'IT_QTY-QTY6' and it_qty-qty6 = 0 )
      or ( screen-name = 'IT_QTY-QTY7' and it_qty-qty7 = 0 ) or ( screen-name = 'IT_QTY-QTY8' and it_qty-qty8 = 0 ).

      screen-input = 1.
      modify screen.
    endif.
  endloop.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;in above logic it will keep  cells editable  which are having '0' value   else  non editable  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Deepak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 10 Nov 2011 04:56:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301310#M1635666</guid>
      <dc:creator>deepak_dhamat</dc:creator>
      <dc:date>2011-11-10T04:56:30Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301311#M1635667</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Daniel,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In the PBO of the module pool, inside the loop endloop, If I assume the module name to be 'MODULE HANDLE_FIELD':-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at it_tab with control it_tab_cntrl.&lt;/P&gt;&lt;P&gt;module handle_field.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MODULE HANDLE_FIELD.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Check if the column needs to be active for input&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;if it_tab-flag = 'X'.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;if screen-name = 'IT_TAB-COL1'.&lt;/P&gt;&lt;P&gt;screen-input = 1.&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;endif.&lt;/P&gt;&lt;P&gt;ENDMODULE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 11 Nov 2011 09:36:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control/m-p/8301311#M1635667</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-11-11T09:36:33Z</dc:date>
    </item>
  </channel>
</rss>

