<?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 database table entries through program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429766#M823863</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;In the report u can write statement like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;your table&amp;gt; &lt;/P&gt;&lt;P&gt;WHERE  date = sy-datum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u excute this report then those records will be deleted from your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 16 Feb 2008 10:06:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-16T10:06:33Z</dc:date>
    <item>
      <title>Delete database table entries through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429764#M823861</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;My requirement is to delete database table entries where datum &amp;lt;&amp;gt; sy-datum. how to implement this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;Naseer.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 07:52:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429764#M823861</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T07:52:44Z</dc:date>
    </item>
    <item>
      <title>Re: Delete database table entries through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429765#M823862</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Naseer,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try using SE16N,with that we can delete the entries of Ztable for sure but for SAP standard table I am not sure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;K.Kiran.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 07:58:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429765#M823862</guid>
      <dc:creator>kiran_k8</dc:creator>
      <dc:date>2008-02-16T07:58:29Z</dc:date>
    </item>
    <item>
      <title>Re: Delete database table entries through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429766#M823863</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;In the report u can write statement like this,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;your table&amp;gt; &lt;/P&gt;&lt;P&gt;WHERE  date = sy-datum. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u excute this report then those records will be deleted from your database table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if useful,&lt;/P&gt;&lt;P&gt;seshu.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 10:06:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429766#M823863</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T10:06:33Z</dc:date>
    </item>
    <item>
      <title>Re: Delete database table entries through program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429767#M823864</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Naseer,&lt;/P&gt;&lt;P&gt;Don't delete the data from the table directly until unless if it is a stand alone table (no relationship exist with any other table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if that table is updating from any Tcode then you have to delete the data from Tcode only, even though you have a facility to delete from the table, in real time there may be a chance of dependency, which will not suggestible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if it is a Ztable which was created by you, then make sure that there is no relationship with another table, then only go for "Delete from table where coditions XXXXXX", even this is not suggestible, if it is a Ztable create table maintenance for that then do the operations you want.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;More  information regarding delete is &lt;/P&gt;&lt;P&gt;DELETE dbtab &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Syntax &lt;/P&gt;&lt;P&gt;DELETE { {FROM target WHERE sql_cond} &lt;/P&gt;&lt;P&gt;| {target FROM source} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect &lt;/P&gt;&lt;P&gt;The statement DELETE deletes one or more rows from the database table specified in target. The rows that are to be deleted are specified either in a WHERE condition sql_cond or with data objects in source. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;System Fields &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement DELETE sets the values of the system fields sy-subrc and sy-dbcnt. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sy-subrc Meaning &lt;/P&gt;&lt;P&gt;0 A least one row was deleted. &lt;/P&gt;&lt;P&gt;4 At least one row could not be deleted, since it was not found in the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The statement MODIFY sets sy-dbcnt to the number of deleted rows. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note &lt;/P&gt;&lt;P&gt;The rows are deleted permanently from the database table in the next database commit. Until then, you can cancel the deletion in a database rollback. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Still More info about delete statment&lt;/P&gt;&lt;P&gt;If u have ABAP editor then type "delete".place the cursor on it and click on help(F1) ,u can get the all options regarding delete.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u want to delete the table&lt;/P&gt;&lt;P&gt;DELETE FROM MARA.&lt;/P&gt;&lt;P&gt;if u want to delete the table entries.&lt;/P&gt;&lt;P&gt;DELETE MARA FROM WA.&lt;/P&gt;&lt;P&gt;here WA contains the entries which u want to delete.&lt;/P&gt;&lt;P&gt;DELETE MARA FROM TABLE ITAB.&lt;/P&gt;&lt;P&gt;here ITAB contains the entries which u want to delete from the table MARA.&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;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 16 Feb 2008 10:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-database-table-entries-through-program/m-p/3429767#M823864</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-16T10:15:31Z</dc:date>
    </item>
  </channel>
</rss>

