<?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 FROM database statement hangs (rarely) in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868544#M1788520</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Believe it or not, including mandt (client number) to key can solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 21 Nov 2013 16:26:14 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-11-21T16:26:14Z</dc:date>
    <item>
      <title>DELETE FROM database statement hangs (rarely)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868543#M1788519</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi folks,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I got an unusual challenge in one of our systems.&lt;/P&gt;&lt;P&gt;When the statement:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;DELETE &lt;SPAN class="L0S52"&gt;FROM &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;DATABASE &lt;/SPAN&gt;indx&lt;SPAN class="L0S55"&gt;(&lt;/SPAN&gt;ab&lt;SPAN class="L0S55"&gt;) &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;ID &lt;/SPAN&gt;lv_indxkey&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;is being run within a user exit in the VA01 standard transaction, it causes the processing to hang for minutes. I've debugged this and there is no doubt that this statement, at that time, takes minutes to complete.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Other characteristics of this situation:&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;1) This doesn't always happen, it happened twice within the past 2 days, even though this statement is executed every time some VA01 checks are performed.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;2) If it helps, the ID lv_indxkey at the time of the hanging was blank. Still, I've seen calls with the ID blank after the situation had passed and they were executed immediately.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;3) The situation solved by itself, nobody did anything in the system. After a few minutes of debugging this, when trying to execute it again I've seen that the statement no longer hangs.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Before asking this question, be sure that I searched all the relevant SCN threads and the SAP Notes, nothing was obviously related to this.&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;So my question to you is, do you know of anything that can cause this DB cluster statement, DELETE FROM statement, hang so much and just for a few minutes, then be executed with normal runtimes?&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;Thanks in advance and best regards,&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;George&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;&lt;SPAN class="L0S55"&gt;&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 15:53:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868543#M1788519</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-21T15:53:21Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM database statement hangs (rarely)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868544#M1788520</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Believe it or not, including mandt (client number) to key can solve this issue.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 16:26:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868544#M1788520</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-21T16:26:14Z</dc:date>
    </item>
    <item>
      <title>Re: DELETE FROM database statement hangs (rarely)</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868545#M1788521</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Manish for the very quick reply.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 21 Nov 2013 16:32:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/delete-from-database-statement-hangs-rarely/m-p/9868545#M1788521</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-11-21T16:32:16Z</dc:date>
    </item>
  </channel>
</rss>

