<?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: tables in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890425#M679227</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;yes it is possible to delete records from the datbase table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but DOn't delete data directly &lt;/P&gt;&lt;P&gt;it may become problem in feture &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 12 Oct 2007 10:13:56 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-10-12T10:13:56Z</dc:date>
    <item>
      <title>tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890421#M679223</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i have one small doubt is is it possible to delete standard table records from data base.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:54:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890421#M679223</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:54:56Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890422#M679224</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;yes....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it is possible&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but being a developer we should not do this...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;before going ahead you have to contact your functional consultant..&lt;/P&gt;&lt;P&gt;get the approval...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;any how i am giving the solution&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go to se14&lt;/P&gt;&lt;P&gt;give the table name&lt;/P&gt;&lt;P&gt;click table radio button&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and at the botom&lt;/P&gt;&lt;P&gt;delete data button will be there clik it and&lt;/P&gt;&lt;P&gt;then &lt;/P&gt;&lt;P&gt;clik the button avtivate and adjust data base&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;then all the records will be deleted from that standard table or even the ztable&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;Venkatesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 09:58:08 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890422#M679224</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T09:58:08Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890423#M679225</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;through programming?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 10:03:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890423#M679225</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T10:03:59Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890424#M679226</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it is possible , but u should not do this through programs as it may create inconsistency in SAP data.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 10:13:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890424#M679226</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T10:13:49Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890425#M679227</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;yes it is possible to delete records from the datbase table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but DOn't delete data directly &lt;/P&gt;&lt;P&gt;it may become problem in feture &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 10:13:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890425#M679227</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T10:13:56Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890426#M679228</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;it is not advisable to delete the records from standard table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but here is the code to delete a record from a table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS p_carrid TYPE sflight-carrid. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM sflight &lt;/P&gt;&lt;P&gt;WHERE  carrid = p_carrid AND &lt;/P&gt;&lt;P&gt;       fldate = sy-datum AND &lt;/P&gt;&lt;P&gt;       seatsocc = 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Point if find this helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Siva&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 10:15:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890426#M679228</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T10:15:09Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890427#M679229</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;Inconsistencies in SAP tables can arise from various sources. It is sometimes difficult to find them. I see that many of your questions here relate to scripting.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Irrespective of whether you found this "problem" via any of a number of obscure reports, or the accountants have reconciled the database tables manually in Excel or Access to check that everything is okay, or you might have used transaction F190 to check consistency of all the dependent tables =&amp;gt; you will hopefully be able to reconstruct the problem using that transaction (F190).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For more information, read the documentation on the transaction (or report SAPF190 from SE38). Use "classic mode" for more details (to the line item).&lt;/P&gt;&lt;P&gt;It will mention a SAP note (I am not logged on, but it is in the docs) which will help you further in analysing, and also contains 4 reports which you can use to correct inconsistencies, if I remember correctly. Might be more by now because it has been a while.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As mentioned before, do not manually or directly delete from those tables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the above procedure does not work for you, contact SAP via "OSS". They might need to logon to your system, and might &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;reward if usefull&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 10:17:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890427#M679229</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T10:17:41Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890428#M679230</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;DELETE - The statement used for deleting records From a Database Table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE statement deletes lines from a database table). You can specify the name of the database table either in the program itself with  DELETE FROM dbtab ... or at runtime as the contents of the field  dbtabname with DELETE FROM (dbtabname) .... In both cases, the database table must be known to the ABAP Dictionary. Only data from the current client is usually deleted. You can delete data using a view only if the view refers to a single table and was created in the ABAP Dictionary with the maintenance status "No restriction".&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One must take a note that:-&lt;/P&gt;&lt;P&gt;Notes&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   1. The DELETE statement does not perform authorization checks. You must program these yourself.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   2. The final (irrevocable) deletion of lines with the DELETE statement is not performed until after a database commit (see Logical Unit of Work (LUW)). Prior to this, you can reverse any database update with a database rollback.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   3. You cannot rely exclusively on the locking mechanism of the database system to synchronize several users trying to access the same dataset at the same time. You should therefore use the SAP locking mechanism.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE belongs to the Open SQL command set.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Various forms of DELETE statement:-&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1) DELETE FROM dbtab WHERE condition.&lt;/P&gt;&lt;P&gt;    DELETE FROM (dbtabname) WHERE condition.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes lines in a database table that satisfy the  WHERE clause cond. With this variant, specification of a  WHERE condition is obligatory .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement has been executed, the system field SY-DBCNT contains the number of deleted lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return code is set as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0:&lt;/P&gt;&lt;P&gt;    At least one line was deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4:&lt;/P&gt;&lt;P&gt;    No lines were deleted, since no line was selected.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2) DELETE dbtab.&lt;/P&gt;&lt;P&gt;    DELETE *dbtab.&lt;/P&gt;&lt;P&gt;    DELETE (dbtabname) ...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;These are SAP-specific short forms used to delete one line of a database table. If the name of the database table is specified in the program, the primary key of the line to be deleted is taken from the specified work area -  dbtab or  *dbtab. If the name of the database table is not determined until runtime ( DELETE (dbtabname) ...).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When the statement has been executed, the system field SY-DBCNT contains the number of deleted lines (0 or 1).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return code is set as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0:&lt;/P&gt;&lt;P&gt;    The line was deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4:&lt;/P&gt;&lt;P&gt;    No lines could be deleted, since no line exists with the primary key specified.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3)DELETE dbtab FROM TABLE itab.&lt;/P&gt;&lt;P&gt;    DELETE (dbtabname) FROM TABLE itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For Mass deletion: Deletes all database table lines for which the internal table  itab contains values for the primary key fields. The lines of the internal table  itab must satisfy the same condition as the work area  wa in addition 1 to variant 2.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The system field SY-DBCNT contains the number of deleted lines, i.e. the number of lines of the internal table itab for whose key values there were lines in the database table dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return code is set as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0:&lt;/P&gt;&lt;P&gt;    All lines from itab could be used to delete lines from dbtab. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4:&lt;/P&gt;&lt;P&gt;    For at least one line of the internal table in the database table, there was no line with the same primary key. All found lines are deleted.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;4) DELETE dbtab VERSION vers.&lt;/P&gt;&lt;P&gt;    DELETE *dbtab VERSION vers. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Deletes a line in a database table, the name of which is taken from the field  vers at runtime. The database table must be known to the ABAP Dictionary and its name must conform to the following naming convention: It must begin with 'T' and can consist of four additional characters. The field  vers must contain the table name without a leading 'T'. Only lines in the current client are deleted. The line to be deleted is taken from the statically specified table work area  dbtab or *dbtab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The Return code is set as follows:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0:&lt;/P&gt;&lt;P&gt;    The line was deleted. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 4:&lt;/P&gt;&lt;P&gt;    No lines could be deleted because no line existed with the specified primary key.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that the above information will help you in understanding basics of DELETE statement. Please reward points if you find the information provided above is useful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 12 Oct 2007 19:33:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890428#M679230</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-12T19:33:32Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890429#M679231</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can Write   a  program for it  .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But there  should  Delete   Authroisation for the   Program based  on the Table  , table  primary field (MANDT,BUKRS,etc).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the  program  is   &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;DELETE FROM sflight WHERE planetype = 'A310' AND
                             carrid = 'LH'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This deletes all lines from SFLIGHT where PLANETYPE has the value A310 and CARRID contains the value LH.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward  points if it is  usefull ..&lt;/P&gt;&lt;P&gt;Girish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 04:39:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890429#M679231</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-13T04:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: tables</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890430#M679232</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;If you have standard transaction to delete the record from the standard tables..Then use that..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For programming..It is advisable to do a direct table delete...Use a BAPI or BDC to delete the record..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 13 Oct 2007 05:01:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/tables/m-p/2890430#M679232</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-10-13T05:01:54Z</dc:date>
    </item>
  </channel>
</rss>

