<?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- Make particular rows editable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011044#M1166384</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandramouli,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;I used   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab WITH CONTROL tctrl.
  Module make_input.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 15 Jan 2009 08:14:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-01-15T08:14:58Z</dc:date>
    <item>
      <title>Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011036#M1166376</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;My requirement is as below:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my screen I have a table control. Initially all the  rows are non editable( All are initial).&lt;/P&gt;&lt;P&gt;Now when I click a button 'Add a line' only the first line should be editable ( So that user can enter data). If click the button 'Add a line' again then one more line should be editable(Now two lines are editable and if user has entered any data in the first line that should be displayed) and so on.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to achieve this?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:27:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011036#M1166376</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T13:27:57Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011037#M1166377</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;When you click the button to add a line, increment the field TC-LINES by 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TC-LINES =  TC-LINES + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;where TC is your table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;one line will be added in editable mode.&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:31:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011037#M1166377</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T13:31:10Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011038#M1166378</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Manoj,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Have a flag field in your internal table which identifies a row as newly added.&lt;/P&gt;&lt;P&gt;2. When the user presses 'Add', append a dummy line in the internal table with the flag field value 'X'.&lt;/P&gt;&lt;P&gt;3. In PBO, inside the LOOP, ENDLOOP, you need to insert a MODULE, which will make all fields in table control row enabled for which the flag field value 'X'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For better solution and understanding, you can try to debug simple standard SAP transaction which has a table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks and regards,&lt;/P&gt;&lt;P&gt;S. Chandramouli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011038#M1166378</guid>
      <dc:creator>former_member784222</dc:creator>
      <dc:date>2009-01-13T13:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011039#M1166379</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Jinson,&lt;/P&gt;&lt;P&gt;When I use the statement 'TC-LINES = TC-LINES + 1' it is adding a line to the table control but&lt;/P&gt;&lt;P&gt;that is non editable. I want that to be editable...&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;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:47:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011039#M1166379</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T13:47:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011040#M1166380</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi Jinson,&lt;/P&gt;&lt;P&gt;&amp;gt; When I use the statement 'TC-LINES = TC-LINES + 1' it is adding a line to the table control but&lt;/P&gt;&lt;P&gt;&amp;gt; that is non editable. I want that to be editable...&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Manoj Kumar P&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Write it in the PBO. &lt;/P&gt;&lt;P&gt;You can have a flag var and update it whenever the ADD button is pressed.&lt;/P&gt;&lt;P&gt;And in PBO if that flag is set, add 1 to TC-LINES, and clear the add flag.&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:53:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011040#M1166380</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T13:53:34Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011041#M1166381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Thanks for the input.&lt;/P&gt;&lt;P&gt;As you have mentioned I have created a flag and it is set for newly added line.&lt;/P&gt;&lt;P&gt;Now how can I make the particular row editable (ie. how to make screen input as 1)  when the flag is set?&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;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 13:59:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011041#M1166381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T13:59:07Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011042#M1166382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;gt; Hi,&lt;/P&gt;&lt;P&gt;&amp;gt; Thanks for the input.&lt;/P&gt;&lt;P&gt;&amp;gt; As you have mentioned I have created a flag and it is set for newly added line.&lt;/P&gt;&lt;P&gt;&amp;gt; Now how can I make the particular row editable (ie. how to make screen input as 1)  when the flag is set?&lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; &lt;/P&gt;&lt;P&gt;&amp;gt; Regards,&lt;/P&gt;&lt;P&gt;&amp;gt; Manoj Kumar P&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at program &lt;STRONG&gt;DEMO_DYNPRO_TABCONT_LOOP_AT&lt;/STRONG&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also check [&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="5038056"&gt;&lt;/A&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;Jinson&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 14:10:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011042#M1166382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-13T14:10:23Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011043#M1166383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;In PBO, inside loop at internal table using table_control, introduce a module. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Loop at internal_table using tc.&lt;/P&gt;&lt;P&gt;  Module make_input.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In your includes for PBO.&lt;/P&gt;&lt;P&gt;Module make_input.&lt;/P&gt;&lt;P&gt;loop at screen.&lt;/P&gt;&lt;P&gt;  if internal_table-flag = 'X'.&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;endmodule.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;S. Chandramouli.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 13 Jan 2009 14:13:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011043#M1166383</guid>
      <dc:creator>former_member784222</dc:creator>
      <dc:date>2009-01-13T14:13:03Z</dc:date>
    </item>
    <item>
      <title>Re: Table Control- Make particular rows editable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011044#M1166384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Chandramouli,&lt;/P&gt;&lt;P&gt;Thanks a lot.&lt;/P&gt;&lt;P&gt;I used   &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT itab WITH CONTROL tctrl.
  Module make_input.
 ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Manoj Kumar P&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Jan 2009 08:14:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/table-control-make-particular-rows-editable/m-p/5011044#M1166384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-01-15T08:14:58Z</dc:date>
    </item>
  </channel>
</rss>

