cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Runtime Errors DBSQL_DUPLICATE_KEY_ERROR

former_member547765
Participant
0 Likes
32,961

Hi,

I have problem after running client copy from production client 100 to development client 310.

user said they have error when input data using tcode MIGO.

here is the dump from ST22

how to fix the error?

what should i do in my next client copy process so that there are no more errors like this?

Regards

View Entire Topic
former_member547765
Participant
0 Likes

Hi jmodaal

I need help with this step for checking table NIRV and SNRO/SNUM

any field I should filled for this?

Regards

jmodaal
Active Contributor

Hello,

for finding the highest given document number you can either use SE16. Faster possibility - if you have access to DBACOCKPIT or ST04 and can use the SQL command editor - is to get the number by an SQL statement. Example (assumed that it's about table COEP in client 100):

select max(BELNR) from "COEP" where MANDT = '100'

The field containing the document number is one of the primary key fields of the table, typically a CHAR feld of length 10 to 20.

Unfortunately I do not know how/where to find a reliable relation between the number range object and the table. Transaction OBA7 might give some help, but maybe you have to ask someone from the application side for the right number range object.

Then use transaction SNRO or SNUM (Edit Intervals) to adjust the "NR status" (highest given number).