Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

DELETE FROM database statement hangs (rarely)

Former Member
0 Likes
1,195

Hi folks,

I got an unusual challenge in one of our systems.

When the statement:

   DELETE FROM DATABASE indx(ab) ID lv_indxkey.

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.

Other characteristics of this situation:

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.

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.

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.

Before asking this question, be sure that I searched all the relevant SCN threads and the SAP Notes, nothing was obviously related to this.

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?

Thanks in advance and best regards,

George

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
1,020

Believe it or not, including mandt (client number) to key can solve this issue.

2 REPLIES 2
Read only

Former Member
0 Likes
1,021

Believe it or not, including mandt (client number) to key can solve this issue.

Read only

0 Likes
1,020

Thanks Manish for the very quick reply.