<?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: delete from internal table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771682#M645845</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete isrot where bldat &amp;lt; '20050109'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 14 Sep 2007 14:10:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-14T14:10:35Z</dc:date>
    <item>
      <title>delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771678#M645841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I want to delete from internal table some regords.&lt;/P&gt;&lt;P&gt;I write code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete  isrot where bldat &amp;lt; '01.09.2005'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it doesn't work, what is wrong?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:04:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771678#M645841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:04:58Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771679#M645842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;could be the date format..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;store the date in a variable of type sydatum &amp;amp; then try the delete ie&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data: w_date type sydatum.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;w_date = '20050901'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete isrot where bldate lt w_date.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:08:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771679#M645842</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:08:31Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771680#M645843</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
delete isrot where bldat &amp;lt; '20050901'.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:08:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771680#M645843</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-09-14T14:08:55Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771681#M645844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Joanna,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;you should write &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE isrot WHERE bldat &amp;lt; '20050901'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i. e. the date must be in YYYYMMDD format and without the dots (like internally, you can check this in debug mode).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hope this helps&lt;/P&gt;&lt;P&gt;ec&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:09:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771681#M645844</guid>
      <dc:creator>JozsefSzikszai</dc:creator>
      <dc:date>2007-09-14T14:09:13Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771682#M645845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete isrot where bldat &amp;lt; '20050109'.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:10:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771682#M645845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:10:35Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771683#M645846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Conversion Exits are not active in Abap source &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;You have to write the constants in internal format, in this case :&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE isrot WHERE bldat &amp;lt; '20090901'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771683#M645846</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2007-09-14T14:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771684#M645847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried but in this case program doesn't work, it doesn't show data.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Joanna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:12:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771684#M645847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771685#M645848</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 write the statement like....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;delete FROM isrot where bldat &amp;lt; '01.09.2005'.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;now it will work...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To select the lines that you want to delete using a condition, use the following:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;DELETE FROM &amp;lt;target&amp;gt; WHERE &amp;lt;cond&amp;gt; .&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All of the lines in the database table that satisfy the conditions in the WHERE clause are deleted. The FROM expression must occur between the keyword and the database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You should take particular care when programming the WHERE clause to ensure that you do not delete the wrong lines. For example, if you specify an empty internal table in a dynamic WHERE clause, all of the lines in the table are deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If at least one line is deleted, the system sets SY-SUBRC to 0, otherwise to 4. SY-DBCNT contains the number of lines deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;follow this link for more information on internal table operation.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/fc/eb3aef358411d1829f0000e829fbfe/content.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Ashok Reddy&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Ashok Reddy&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:13:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771685#M645848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:13:06Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771686#M645849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE FROM is for database not internal tables, I think. &lt;/P&gt;&lt;P&gt;DELETE isrot WHERE bldat &amp;lt; '20050901' is correct so there must be something else wrong.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:45:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771686#M645849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:45:07Z</dc:date>
    </item>
    <item>
      <title>Re: delete from internal table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771687#M645850</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Joanna - I think Ferry's and Eric's code is correct. If it's still not working then the problem lies elsewhere. Can you post your code please?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 14:50:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-internal-table/m-p/2771687#M645850</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T14:50:34Z</dc:date>
    </item>
  </channel>
</rss>

