Application Development 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: 

DBSQL_DUPLICATE_KEY_ERROR

0 Kudos
5,350

ERROR

Internal session terminated with a runtime error DBSQL_DUPLICATE_KEY_ERROR

Please let me know why this error is coming when I am executing a report in SAP.

3 REPLIES 3

FredericGirod
Active Contributor
3,251

There could have several possible error.

Run transaction ST22, find the corresponding dump, and get the description error & the corresponding code.

The basis of this error is, you try to insert a row in a table, but a key for this row already exist. It is a fatal error to protect the database integrity.

If it is a standard program, it could be someone playing with range number (set the range number to a number already used)

anmol25
Explorer
0 Kudos
3,251

IF This is occuring while doing a GR or creating a PO, then it means that the doc number which is being generated is used by other for creating PR OR PO. You can create a new group and assign a new number range to it. This solved my problem.

0 Kudos
3,251

The question was so generic (can happen in thousands of cases) that your answer will be invisible to people looking for an answer, so I recommend that you post your own question AND answer, describing the problem you had in details (the question), and how you solved it (the answer). Thanks!