<?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 adding/removing rows in TABLEVIEW in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359334#M806050</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I've got a TABLEVIEW in one of my subscreens. But when load itab into that tableview with 'LOOP AT...'  tableview appears but I can't add rows to it. I can't delete existing rows too. What should I add to my programm to have possibility of adding/removing rows from my tablewiev? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 29 Jan 2008 12:47:20 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-01-29T12:47:20Z</dc:date>
    <item>
      <title>adding/removing rows in TABLEVIEW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359334#M806050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi. I've got a TABLEVIEW in one of my subscreens. But when load itab into that tableview with 'LOOP AT...'  tableview appears but I can't add rows to it. I can't delete existing rows too. What should I add to my programm to have possibility of adding/removing rows from my tablewiev? Greetings. P.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:47:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359334#M806050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:47:20Z</dc:date>
    </item>
    <item>
      <title>Re: adding/removing rows in TABLEVIEW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359335#M806051</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Just add a few empty lines to your internal table and set the number of lines for the table control accordingly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab has 5 lines with data&lt;/P&gt;&lt;P&gt;append 3 empty lines to itab&lt;/P&gt;&lt;P&gt;Set TABLECONTROL-LINES to 8 where TABLECONTROL is the name of your table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps,&lt;/P&gt;&lt;P&gt;Michael&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:52:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359335#M806051</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:52:45Z</dc:date>
    </item>
    <item>
      <title>Re: adding/removing rows in TABLEVIEW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359336#M806052</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Friend,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To add/delete rows in your table view.&lt;/P&gt;&lt;P&gt;You have to add/delete rows from internal table fro where you are displaying values.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You have to write code in PAI..&lt;/P&gt;&lt;P&gt;In LOOP ... ENDLOOP check the OK_CODE if it is ADD (for eg.) you have to add a blank row to internal table by just passing a blank work area.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;And if it is DELETE (for eg.) delete the row of that index (TABLEVIEW-CURRENT_LINE)...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for these two excersies you have to readjust lines of tableview...after taking number of lines from internal table (DESCRIBE TABLE INT_EX LINES WS_LINES&lt;/P&gt;&lt;P&gt; TABLEVIEW-LINES = WS_LINES) write this piece of code in Intialization.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope it will solve the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Krishnendu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:56:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359336#M806052</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:56:20Z</dc:date>
    </item>
    <item>
      <title>Re: adding/removing rows in TABLEVIEW</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359337#M806053</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can place  buttons for add and subtract..&lt;/P&gt;&lt;P&gt;when clicking add:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; describe table &amp;lt;itab&amp;gt; lines &amp;lt; line&amp;gt;.&lt;/P&gt;&lt;P&gt;&amp;lt;tblctrl&amp;gt;-lines = line + 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;when clicking subtract:&lt;/P&gt;&lt;P&gt;  dealete &amp;lt;itba&amp;gt; index &amp;lt;index of the row&amp;gt;.&lt;/P&gt;&lt;P&gt;   describe table &amp;lt;itab&amp;gt; lines &amp;lt; line&amp;gt;.&lt;/P&gt;&lt;P&gt;   &amp;lt;tblctrl&amp;gt;-lines = line .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;itab : internal table used for populating data.&lt;/P&gt;&lt;P&gt;line : is a variable type i.&lt;/P&gt;&lt;P&gt;tblctrl : is the anme of table control.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 29 Jan 2008 12:59:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/adding-removing-rows-in-tableview/m-p/3359337#M806053</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-01-29T12:59:51Z</dc:date>
    </item>
  </channel>
</rss>

