<?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 allows input on all cells upon initial display in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860298#M1321344</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;   I think that you are using Table control with wizard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In your case, you have to go to the form tc_9000_user_command and customize the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you have to loop at screen and initially you have to disable the inputing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  like screen-input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This code should be executed only once when you start your program. Like that set a flag variable also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  There is no other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Within that tc_9000_user_command   form you  will have  user_ok_tc  form. There you have to customize your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 17 Jul 2009 05:49:34 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-07-17T05:49:34Z</dc:date>
    <item>
      <title>Table Control allows input on all cells upon initial display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860296#M1321342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have a table control that I don't want the users to be allowed to input into until they insert a line first.  Whether I preload the table or have it initialized (nothing in the internal table) it always shows all rows as inputable.  Yet when I hit insert the first time, the correct number of rows show.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Initial display: 4 rows allow input yet table is empty.  I want none.&lt;/P&gt;&lt;P&gt;Insert clicked once: 1 row allows input.  This is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;preloaded table: 1 record.&lt;/P&gt;&lt;P&gt;Initial display: 1 record displayed.  4 rows allow input.  There should be 1 (The displayed row)&lt;/P&gt;&lt;P&gt;Insert clicked once: 2 rows allow input, including the original displayed row.  This is correct.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'd rather not have to "loop at &amp;lt;TC&amp;gt;-COLS" and change them all to no-input.  What am I missing on the control that says "There are no current lines to be inputted."  ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 16 Jul 2009 15:54:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860296#M1321342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-16T15:54:00Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control allows input on all cells upon initial display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860297#M1321343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Robert,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Inside the loop in PBO, create one module and check for the work area.&lt;/P&gt;&lt;P&gt;If the work area is inital. use the statement EXIT FROM STEP LOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Jeevan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 05:37:12 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860297#M1321343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T05:37:12Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control allows input on all cells upon initial display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860298#M1321344</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;   I think that you are using Table control with wizard. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   In your case, you have to go to the form tc_9000_user_command and customize the code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  you have to loop at screen and initially you have to disable the inputing&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  like screen-input = 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  This code should be executed only once when you start your program. Like that set a flag variable also.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  There is no other way.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Within that tc_9000_user_command   form you  will have  user_ok_tc  form. There you have to customize your code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Venkat.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 05:49:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860298#M1321344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T05:49:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control allows input on all cells upon initial display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860299#M1321345</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 I have not understood you wrong, you can implement the ADD functionality. In the ADD functionality, you can have just one row or no rows that are inputtable when you see your table control. You will have to initialize the table control &lt;STRONG&gt;lines&lt;/STRONG&gt; in the PBO  like this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  if gt_itab[] is INITIAL.
  TABCONTROL2-lines = 1. "This will set the number of input lines in the table control to be 1. 
 endif.                                  " So you will have just one row to be input. The rest will be greyed out

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;On clicking the ADD functionality, make the second row to be input. So whenever the user has to input some data, he/she needs to be clicking on this ADD button. Wrte the code in the PAI when the SY-UCOMM is 'F_ADD'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

if SY-UCOMM eq F_'ADD'. 
    tabcontrol-lines = tabcontrol-lines + 1.
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 17 Jul 2009 07:04:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860299#M1321345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-17T07:04:19Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control allows input on all cells upon initial display</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860300#M1321346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Robert Catlin &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try This,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In PBO.&lt;/P&gt;&lt;P&gt;Describe Table itab lines ln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Tc-lines = ln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF table doesn't have any record table control rows will be closed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If it has some rows the same no of rows will be open.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 20 Jul 2009 03:28:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-allows-input-on-all-cells-upon-initial-display/m-p/5860300#M1321346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-07-20T03:28:14Z</dc:date>
    </item>
  </channel>
</rss>

