<?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 command in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452067#M829334</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; delete dbtab from table internaltable &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to work, i would assume the structure of the DB tbl and the internal table should be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the structures are not the same, then you may have to use a condition in the WHERE clause of DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 25 Feb 2008 08:37:45 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-02-25T08:37:45Z</dc:date>
    <item>
      <title>Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452060#M829327</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;I have a internal table and wants to delete the content from database table on matching records .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The commnad i have written is : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete dbtab from table internaltable .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But its throwing dump .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks ,&lt;/P&gt;&lt;P&gt;Rahul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:27:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452060#M829327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:27:30Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452061#M829328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Check this out&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/delete02.htm" target="test_blank"&gt;http://www.sts.tu-harburg.de/teaching/sap_r3/ABAP4/delete02.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note: The structure of internal table and the database table should be same. So delare your internal table accordingly to avoid dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Santosh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Santosh Kumar Patha on Feb 25, 2008 2:04 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:29:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452061#M829328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:29:27Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452062#M829329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI,&lt;/P&gt;&lt;P&gt;  Use the following code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  DELETE FROM KNA1 WHERE field  in ITAB.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:31:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452062#M829329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:31:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452063#M829330</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Give a where condition.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:32:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452063#M829330</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:32:22Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452064#M829331</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 through the link,Hope this will help u&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;&lt;/P&gt;&lt;P&gt;Cheers,&lt;/P&gt;&lt;P&gt;Sriram Tangirala.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:32:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452064#M829331</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:32:48Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452065#M829332</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI Rahul&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Surely it will throw a dump&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Few things we need to keep in mind&lt;/P&gt;&lt;P&gt;1) Check for tables compatibilty and order&lt;/P&gt;&lt;P&gt;2) Please once check the primary key &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Hitesh&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward if helpfu;l&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452065#M829332</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:34:15Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452066#M829333</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;lt;h2&amp;gt;DELETE - Delete from a database table&amp;lt;/h2&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variants&lt;/P&gt;&lt;P&gt;&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;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;3. DELETE dbtab FROM TABLE itab. &lt;/P&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab. &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;Effect&lt;/P&gt;&lt;P&gt;Deletes lines in 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 in the ABAP/4 Dictionary. If you specify the name in the program, there must also be an appropriate TABLES statement. 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/4 Dictionary with the maintenance status "No restriction". &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;Note&lt;/P&gt;&lt;P&gt;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;Variant 1&lt;/P&gt;&lt;P&gt;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;Addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Deletes lines in a database table that satisfy the WHERE clause condition . 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 value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 At least one line was deleted. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 No lines were deleted, since no line was selected. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Example&lt;/P&gt;&lt;P&gt;Delete all bookings for the Lufthansa flight 0400 on 28.02.1995 (in the current client): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE FROM SBOOK WHERE CARRID = 'LH'       AND&lt;/P&gt;&lt;P&gt;                        CONNID = '0400'     AND&lt;/P&gt;&lt;P&gt;                        FLDATE = '19950228'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;To delete all the lines in a table, you must specify a WHERE condition that is true for all lines. You can achieve this with &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; ... WHERE f IN itab&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, such a condition would select all lines. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Switches off automatic client handling. This allows you to delete data across all clients in the case of client-specific tables. The client field is then treated like a normal table field, for which you can formulate suitable conditions in the WHERE clause. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You must specify the addition CLIENT SPECIFIED immediately after the name of the database table. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 2&lt;/P&gt;&lt;P&gt;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;Additions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. ... FROM wa &lt;/P&gt;&lt;P&gt;2. ... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;These are SAP-specific short forms used to delete a single 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) ... ), the addition ... FROM wa 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 (0 or 1). &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The return code value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The line was deleted. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 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;Example&lt;/P&gt;&lt;P&gt;Delete the booking with the booking number 3 for the Lufthansa flight 0400 on 28.02.1995 (in the current client): &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TABLES SBOOK.&lt;/P&gt;&lt;P&gt;SBOOK-CARRID = 'LH'.&lt;/P&gt;&lt;P&gt;SBOOK-CONNID = '0400'.&lt;/P&gt;&lt;P&gt;SBOOK-FLDATE = '19950228'.&lt;/P&gt;&lt;P&gt;SBOOK-BOOKID = '00000003'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE  SBOOK.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 1&lt;/P&gt;&lt;P&gt;... FROM wa &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;Takes the primary key for the line to be deleted not from the table work area dbtab , but from the explicitly specified work area wa . Here, the key values from left to right are taken from wa according to the structure of the primary key in the table work area dbtab (see TABLES ). The structure of wa is not taken into account. Therefore, the work area wa must be at least as wide (see DATA ) as the primary key in the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the primary key in the table work area. Otherwise, you get a runtime error. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Note&lt;/P&gt;&lt;P&gt;If a work area is not explicitly specified, the values for the line to be deleted are taken from the table work area dbtab , even if the statement appears in a subroutine (see FORM ) or Funktionsbaustein (see FUNCTION ) where the table work area is stored in a formal parameter or a local variable of the same name. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition 2&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;As with variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 3&lt;/P&gt;&lt;P&gt;DELETE dbtab FROM TABLE itab. &lt;/P&gt;&lt;P&gt;DELETE (dbtabname) FROM TABLE itab. &lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;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. &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 value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 All lines from itab could be used to delete lines from dbtab . &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 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;Note&lt;/P&gt;&lt;P&gt;If the internal table itab is empty, SY-SUBRC and SY-DBCNT are set to 0. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Addition&lt;/P&gt;&lt;P&gt;... CLIENT SPECIFIED &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&lt;/P&gt;&lt;P&gt;As with variant 1. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Variant 4&lt;/P&gt;&lt;P&gt;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;Note&lt;/P&gt;&lt;P&gt;This variant is obsolete, since variants 1 - 3 allow you to specify the database table name dynamically. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Effect&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/4 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 value is set as follows: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SY-SUBRC = 0 The line was deleted. &lt;/P&gt;&lt;P&gt;SY_SUBRC = 4 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;Regards,&lt;/P&gt;&lt;P&gt;Chandru&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:34:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452066#M829333</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:34:49Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452067#M829334</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For the statement &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt; delete dbtab from table internaltable &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; to work, i would assume the structure of the DB tbl and the internal table should be the same.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If the structures are not the same, then you may have to use a condition in the WHERE clause of DELETE statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Balaji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:37:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452067#M829334</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:37:45Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452068#M829335</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;Check your database table  and internal table has same structure.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Pls. go through below simple doc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;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;Effect &lt;/P&gt;&lt;P&gt;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;Effect &lt;/P&gt;&lt;P&gt;Takes the primary key for the line to be deleted not from the table work area dbtab, but from the explicitly specified work area wa. Here, the key values from left to right are taken from wa according to the structure of the primary key in the table work area dbtab (see TABLES). The structure of wa is not taken into account. Therefore, the work area wa must be at least as wide (see DATA) as the primary key in the table work area dbtab and the alignment of the work area wa must correspond to the alignment of the primary key in the table work area. Otherwise, you get a runtime error.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:37:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452068#M829335</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452069#M829336</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi&lt;/P&gt;&lt;P&gt; delete from lfa1 where lifnr = v_lifnr.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Jyothsna M on Feb 25, 2008 9:40 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:38:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452069#M829336</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:38:14Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452070#M829337</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Delete adjacent duplicates from &amp;lt;internal table name&amp;gt; where  &amp;lt;condition&amp;gt;.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:40:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452070#M829337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:40:51Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452071#M829338</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;you can use delete statement with where conditions&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ex:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;delete dbtab where dbtab = itab&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 08:43:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452071#M829338</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T08:43:24Z</dc:date>
    </item>
    <item>
      <title>Re: Delete command</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452072#M829339</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should Use explicit COMMIT WORK after the delete statement, if you are updating the database within LUW.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Satish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Feb 2008 09:34:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-command/m-p/3452072#M829339</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-02-25T09:34:46Z</dc:date>
    </item>
  </channel>
</rss>

