<?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: How do I delete rows from an internal table? in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490499#M1256473</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt; write: itab-field.&lt;/P&gt;&lt;P&gt;delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 23 Apr 2009 14:02:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-04-23T14:02:19Z</dc:date>
    <item>
      <title>How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490496#M1256470</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 have a simple block of code that reads rows from an internal table (already populated from a database table) and displays the data on the screen with a WRITE statement.&lt;/P&gt;&lt;P&gt;Just for practice I am trying to delete the rows from the internal table after I have displayed them.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code that I have so far, but this is not correct.  Can someone please tell me how to code the DELETE statement?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you!&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    LOOP AT it_zmember01 INTO wa_zmember01.&lt;/P&gt;&lt;P&gt;      WRITE: / wa_zmember01-mnumber UNDER 'NUMBER',&lt;/P&gt;&lt;P&gt;               wa_zmember01-mname UNDER 'NAME',&lt;/P&gt;&lt;P&gt;               wa_zmember01-mdob UNDER 'DOB'.&lt;/P&gt;&lt;P&gt;      WRITE / '----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;      DELETE it_zmember01 FROM wa_zmember01.&lt;/P&gt;&lt;P&gt;    ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 13:47:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490496#M1256470</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T13:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490497#M1256471</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Andrew,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use &lt;STRONG&gt;DELETE t_itab&lt;/STRONG&gt; statement inside the loop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have modified your code. It is perfectly working.See bellow  -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;LOOP AT it_zmember01 INTO wa_zmember01.
WRITE: / wa_zmember01-mnumber UNDER 'NUMBER',
wa_zmember01-mname UNDER 'NAME',
wa_zmember01-mdob UNDER 'DOB'.
WRITE / '-----------------------------------------------------------------'.
DELETE it_zmember01.               " Modified
ENDLOOP.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;DELETE it_zmember01.&lt;/STRONG&gt; statement inside the loop will delete the current row of the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 13:55:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490497#M1256471</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T13:55:08Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490498#M1256472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use this code&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_tabix like sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT it_zmember01 INTO wa_zmember01.&lt;/P&gt;&lt;P&gt;l_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt;WRITE: / wa_zmember01-mnumber UNDER 'NUMBER',&lt;/P&gt;&lt;P&gt;wa_zmember01-mname UNDER 'NAME',&lt;/P&gt;&lt;P&gt;wa_zmember01-mdob UNDER 'DOB'.&lt;/P&gt;&lt;P&gt;WRITE / '----&lt;/P&gt;&lt;HR originaltext="------------------------------------------------------------" /&gt;&lt;P&gt;'.&lt;/P&gt;&lt;P&gt;DELETE it_zmember01 index l_tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 13:57:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490498#M1256472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T13:57:13Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490499#M1256473</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;Try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: v_tabix type sy-tabix.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;loop at itab&lt;/P&gt;&lt;P&gt;v_tabix = sy-tabix.&lt;/P&gt;&lt;P&gt; write: itab-field.&lt;/P&gt;&lt;P&gt;delete itab index sy-tabix.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:02:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490499#M1256473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:02:19Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490500#M1256474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Pinaki,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One thing I did not mention is that this internal table does not have a header line, so your solution did not work in my case.  But now I know that if I had a header line I could use your solution.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:41:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490500#M1256474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:41:52Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490501#M1256475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;N Soumya &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Your solution was exactly the same as Vijayakumar V  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much for the help.  I appreciate it!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:43:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490501#M1256475</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:43:29Z</dc:date>
    </item>
    <item>
      <title>Re: How do I delete rows from an internal table?</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490502#M1256476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Vijayakumar V &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Perfect...Thank you very much!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Andy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 23 Apr 2009 14:44:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-do-i-delete-rows-from-an-internal-table/m-p/5490502#M1256476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-04-23T14:44:20Z</dc:date>
    </item>
  </channel>
</rss>

