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

Reg DBIF_RSQL_SQL_ERROR - CX_SY_OPEN_SQL_DB

Former Member
0 Likes
584

We are getting lot of below run time error while querying on TVARVC table in production system.

Runtime Errors         DBIF_RSQL_SQL_ERROR

Exception              CX_SY_OPEN_SQL_DB

Database error text........: "SQL0911N The current transaction has been rolled

  back because of a deadlock or timeout. Reason code "68". SQLSTATE=40001"

code where the error is generating

Select Query:

SELECT SINGLE low FROM  tvarvc

              INTO  variable

              WHERE name = xx AND

                    type = yy           AND

                    numb = zz

or

SELECT SINGLE low FROM  tvarvc

              CLIEN SPECIFIED

              INTO  variable

              WHERE

                    mandt = sy-mandt

                    name = xx AND

                    type = yy           AND

                    numb = zz

I have looked into SCN but couldnt find any info specific to my scenario.

Kindly provide your inputs.

3 REPLIES 3
Read only

Former Member
0 Likes
506

If it is a deadlock, contact your basis. In our environment, deadlock often came when large trnasports were importoed to the system - you can check the stms too.

Read only

Former Member
0 Likes
506

This message was moderated.

Read only

Private_Member_7726
Active Contributor
0 Likes
506

IBM help says Reason code 68 is for lock timeout - was the program "hanging" for some time, could it be someone (or something) is locking the Variant?

If you have authorization, you can see deadlocks and lock waits in ST04