<?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: delet data from standard table in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791685#M651345</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use delete statement with proper conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;ZTABLE&amp;gt; -&amp;gt; All hits'll be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also indicate some conditions if you don't need to delete whole table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;ZTABLE&amp;gt; WHERE .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 12 Sep 2007 05:26:58 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-12T05:26:58Z</dc:date>
    <item>
      <title>delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791684#M651344</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi , my rquirement is , i want to delect some record from database table MCHB&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:05:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791684#M651344</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:05:55Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791685#M651345</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;use delete statement with proper conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;ZTABLE&amp;gt; -&amp;gt; All hits'll be deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can also indicate some conditions if you don't need to delete whole table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM &amp;lt;ZTABLE&amp;gt; WHERE .....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:26:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791685#M651345</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:26:58Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791686#M651346</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;delte MCHB  where &amp;lt;condition&amp;gt;&lt;/P&gt;&lt;P&gt;COMMIT WORK.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 12 Sep 2007 05:30:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791686#M651346</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-12T05:30:17Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791687#M651347</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;DELETE table WHERE conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gregory&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 13:38:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791687#M651347</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T13:38:50Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791688#M651348</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Ypou should use a BAPI or batch input for this, not direct table deletes. What transaction normally deletes records from this table?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Sep 2007 14:21:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791688#M651348</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-13T14:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791689#M651349</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;         After deleting do use the statement COMMIT Work and WAIT.Otherwise the deleted entries will not be reflected in the table..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank's&lt;/P&gt;&lt;P&gt;Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 14 Sep 2007 06:37:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791689#M651349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-14T06:37:26Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791690#M651350</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;Firstly, you should not delete any record from standard SAP tables using direct database statements.  There are proper methods for every activity to be performed on data in standard SAP system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is table for Batch Stocks.  This is not a direct transaction table in SAP.  Data is added or modified in this table through various transactions mainly of MM, PP &amp;amp; SD.  Hence BAPI or BDC cannot fulfill the requirement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If your requirement is to withdraw batch stocks, then cancel the material documents that have posted the stock.  If your material period is already closed and you are not able to cancel the material documents, then withdraw your stocks by posting it to scrap with permission from management.  If it is uploaded stock, withdraw it using 562 movement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Never ever try to delete records from standard tables directly.  It will lead to inconsistencies and lot of confusions in the system.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Hema&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 16 Sep 2007 05:33:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791690#M651350</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-16T05:33:09Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791691#M651351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;To chime in on the advises of using a BAPI instead of directly deleting standard table entries:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When someone else currently works with a table entry and you try delete that data, you will be in trouble and generate inconsistencies that prolly can't be repaired. That's the advantage of a BAPI, because it will take care of the locking mechanism which avoids 2 users accessing and manipulating the same data. (every standard table has corresponding standard BAPI's to maintain the data)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Say "No!" to direct table manipulations! &lt;SPAN __jive_emoticon_name="wink"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;kr,&lt;/P&gt;&lt;P&gt;Walter&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Sep 2007 14:09:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791691#M651351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-18T14:09:33Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791692#M651352</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If ever a direct table update is necessary, (and yes, there are cases, when no BAPI is available) at least foresee the table locking. In SE11, lookup the lock object for the corresponding table. Each lock object has 2 FM's: one for locking and one for unlocking --&amp;gt; call them in your code. This will avoid the locking issues.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 13:39:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791692#M651352</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T13:39:22Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791693#M651353</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lalith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MCHB is a standard SAP table for Batch Stocks. It is always a bad idea to delete directly from SAP tables. Use an appropriate SAP transaction to delete data from this table.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 19:54:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791693#M651353</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T19:54:11Z</dc:date>
    </item>
    <item>
      <title>Re: delet data from standard table</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791694#M651354</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Lalith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Its not advisable to delete the date directly from the data base table.... rather you can over write some data for the important field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Like if you take LFA1 table if you make LIFNR field data to 'do not use' then in the table all those records are kind of deleted...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;so I can suggest you this way.....  you can do it with the mass maintanance&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Sep 2007 20:17:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delet-data-from-standard-table/m-p/2791694#M651354</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-19T20:17:03Z</dc:date>
    </item>
  </channel>
</rss>

