<?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: syntax to delete total records from database table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242460#M1211349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Just write the following&lt;/P&gt;&lt;P&gt;DELETE FROM (NAME OF THE TABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM MARA. (Where mara is the name of the d/b table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even add the where condition based on your requirent for example you won to delete specific records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM MARA WHERE MATNR = -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sumeet  malhotra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Feb 2009 06:22:36 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-02-16T06:22:36Z</dc:date>
    <item>
      <title>syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242447#M1211336</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;     Can you pls let me know how to delete all the records from database table.Thanks in advance.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;sami.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:06:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242447#M1211336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:06:38Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242448#M1211337</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;PRE&gt;&lt;CODE&gt;Delete &amp;lt;database-tab&amp;gt;.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in program.&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Sharath&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:07:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242448#M1211337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:07:44Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242449#M1211338</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi SAMI ,&lt;/P&gt;&lt;P&gt;You try this code -&lt;/P&gt;&lt;HR originaltext="----" /&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE   FROM   dbtab_name.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Pinaki&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Pinaki Mukherjee on Feb 16, 2009 7:12 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:08:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242449#M1211338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:08:23Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242450#M1211339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;        Use &lt;STRONG&gt;DELETE&lt;/STRONG&gt; command. Keep ur cursor on DELETE, press F1 and you will get the syntax for DELETE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Ibrahim&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:08:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242450#M1211339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:08:57Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242451#M1211340</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;STRONG&gt;DELETE FROM  dbtab&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:09:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242451#M1211340</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:09:06Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242452#M1211341</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sami,&lt;/P&gt;&lt;P&gt;            You can use &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE  FROM sflight.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;or you can specify the where condition.&lt;/P&gt;&lt;P&gt;Hope your query is resolved.&lt;/P&gt;&lt;P&gt;Have a best day ahead.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:09:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242452#M1211341</guid>
      <dc:creator>gaursri</dc:creator>
      <dc:date>2009-02-16T06:09:45Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242453#M1211342</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;(this can be along way to do.)&lt;/P&gt;&lt;P&gt;u can fetch all the recoreds into an internal table.    loop at itab.&lt;/P&gt;&lt;P&gt;DELETE itab FROM 1.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;modify database table from itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Kalyan Chakravarthi on Feb 16, 2009 7:13 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:10:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242453#M1211342</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:10:32Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242454#M1211343</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE { {FROM tgt [WHERE sql_cond]} &lt;/P&gt;&lt;P&gt;       | {tgt FROM source} }. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;check this....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:11:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242454#M1211343</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:11:29Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242455#M1211344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;A href="http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7886505211d189550000e829fbbd/frameset.htm" target="test_blank"&gt;http://help.sap.com/saphelp_nw04/helpdata/en/c4/3a7886505211d189550000e829fbbd/frameset.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="1688562"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:12:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242455#M1211344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:12:25Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242456#M1211345</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;To delete data from the data base.&lt;/P&gt;&lt;P&gt;Simply wirte&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;


Delete dbtab.    " delete is the key word    dbtab pass the database table name
 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Arun&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:15:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242456#M1211345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:15:31Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242457#M1211346</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;Go to transaction SE14, select delete data radio button and click on Activate and Adjust database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:17:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242457#M1211346</guid>
      <dc:creator>dev_parbutteea</dc:creator>
      <dc:date>2009-02-16T06:17:07Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242458#M1211347</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think you should not remove the habit of reading the SAP help provided just because you get answers in SDN...for finding formulas you can always refer help, because it might give you a perfect syntax based on the requirement as in SDN you will ask for some requirement and if its not clear you may end up getting an incorrect syntax...&lt;/P&gt;&lt;P&gt;just write the keyword delete in the ABAP editor and then press F1, you can get all the information..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Siddarth&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:18:25 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242458#M1211347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:18:25Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242459#M1211348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Sami,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before even considering of deleting any records from a database table, you might wanna think about the following. If there any other tables, referencing the table you are trying to delete the records from, this will have a major impact on the integrity of your database.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As a rule of thumb: Never ever delete any records from database by using the DELETE statement, unless you are absolutely sure this has no further impact. In most cases, this will only be when you are doing this on a custom table (a non-standard SAP table).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So in case of standard table, try to find the standard delivered function modules for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just a word of advice.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:18:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242459#M1211348</guid>
      <dc:creator>Sm1tje</dc:creator>
      <dc:date>2009-02-16T06:18:49Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242460#M1211349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi.&lt;/P&gt;&lt;P&gt;Just write the following&lt;/P&gt;&lt;P&gt;DELETE FROM (NAME OF THE TABLE).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM MARA. (Where mara is the name of the d/b table)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can even add the where condition based on your requirent for example you won to delete specific records&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM MARA WHERE MATNR = -&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards &lt;/P&gt;&lt;P&gt;Sumeet  malhotra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:22:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242460#M1211349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:22:36Z</dc:date>
    </item>
    <item>
      <title>Re: syntax to delete total records from database table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242461#M1211350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use FM &lt;STRONG&gt;SUBST_DELETE_TABLE_CONTENT&lt;/STRONG&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Feb 2009 06:23:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/syntax-to-delete-total-records-from-database-table/m-p/5242461#M1211350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-02-16T06:23:37Z</dc:date>
    </item>
  </channel>
</rss>

