<?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 Delete statement in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173645#M1822368</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a delete statement in a standard program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DELETE &lt;SPAN style="color: #800080; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;i_table&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;i_del_tab&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Here, i_table is having table name: &lt;/SPAN&gt;/IRM/AVIR, i_del_tab is having the record to be deleted.&lt;/P&gt;&lt;P&gt;In the program the above delete statement is getting failed.&lt;/P&gt;&lt;P&gt;So can you please tell me, how this delete statement will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 18 Mar 2014 16:39:04 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2014-03-18T16:39:04Z</dc:date>
    <item>
      <title>Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173645#M1822368</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&lt;BR /&gt;Hi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have a delete statement in a standard program.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;&amp;nbsp; &lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;DELETE &lt;SPAN style="color: #800080; font-size: 10pt;"&gt;(&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;i_table&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;) &lt;/SPAN&gt;&lt;SPAN style="color: #0000ff; font-size: 10pt;"&gt;FROM TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;i_del_tab&lt;/SPAN&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #800080; font-size: 10pt;"&gt;Here, i_table is having table name: &lt;/SPAN&gt;/IRM/AVIR, i_del_tab is having the record to be deleted.&lt;/P&gt;&lt;P&gt;In the program the above delete statement is getting failed.&lt;/P&gt;&lt;P&gt;So can you please tell me, how this delete statement will work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:39:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173645#M1822368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-18T16:39:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173646#M1822369</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Your syntax looks correct. What is the sy-subrc result? What is the exact content of i_del_tab? You say a single record. Do you pass it as a line of a table? If you want to use the record directly the syntax is&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DELETE (i_table) FROM i_del_tab.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:47:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173646#M1822369</guid>
      <dc:creator>iotatau</dc:creator>
      <dc:date>2014-03-18T16:47:52Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173647#M1822370</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Actually in the transaction level we are deleting the header assignment details i.e., we are deleting a record. then when we click on SAVE we are facing the error : ERROR in DELETE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the deleted record details are passed into the internal table i_del_tab. Sy-subrc is coming as 4.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 16:59:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173647#M1822370</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-18T16:59:23Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173648#M1822371</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Spandana,&lt;/P&gt;&lt;P&gt;The syntax&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE I_TABLE &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TABLE &lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;I_DEL_TAB is correct.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;Please check the below points before you execute this statement.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;1. Is the structure of I_TABLE and I_DEL_TAB is same - if not then please make them similar.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;2. See if I_TABLE is using any currency fields - if yes then you need to specify the reference table&amp;nbsp; &lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; and&amp;nbsp;&amp;nbsp;&amp;nbsp; reference field in 'Currency/Quantity fields' tab.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&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;Mohammed&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:16:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173648#M1822371</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-18T17:16:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173649#M1822372</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;sy-subrc = 4 means that the record to be deleted which is passed in i_del_tab does not match any record in (i_table). It is not a program error but a valid outcome of the deletion attempt. "The record to be deleted could not be found." The next step would be to check why there is no match. Are there any special characters in the record to be deleted? What about capitalization?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:18:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173649#M1822372</guid>
      <dc:creator>iotatau</dc:creator>
      <dc:date>2014-03-18T17:18:17Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173650#M1822373</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i_table is of type dd02d&lt;SPAN style="font-size: 10pt;"&gt;&lt;SPAN style="color: #808080; font-size: 10pt;"&gt;-&lt;/SPAN&gt;&lt;SPAN style="font-size: 10pt;"&gt;tabname, which is having the table name as /IRM/AVIR.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;i_del_tab is of type /IRM/AVIR.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;here, for the delete statement to be successful, is the record present in &lt;SPAN style="font-size: 10pt;"&gt;i_del_tab should be present in table, i_table (/IRM/AVIR) ?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:34:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173650#M1822373</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2014-03-18T17:34:28Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173651#M1822374</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;The statement will be successful only when the the Delete is successful, so there must be a matching record in the table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Bala Krishna&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:41:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173651#M1822374</guid>
      <dc:creator>former_member585060</dc:creator>
      <dc:date>2014-03-18T17:41:04Z</dc:date>
    </item>
    <item>
      <title>Re: Delete statement</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173652#M1822375</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;If, for a row of the internal table, there is no row in the database with the same content as the primary key, the corresponding row is ignored and &lt;STRONG style="font-size: 10pt; font-family: 'Courier New';"&gt;sy-subrc&lt;/STRONG&gt; is set to 4. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Looks like the data in the I_DEL_TAB is mismatch.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 18 Mar 2014 17:43:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-statement/m-p/10173652#M1822375</guid>
      <dc:creator>jcutinho</dc:creator>
      <dc:date>2014-03-18T17:43:14Z</dc:date>
    </item>
  </channel>
</rss>

