Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

dump error

hi frinds

i got a dump error.the list os the detailed description f the error.kindly guide for me

What happened?

The current application program detected a situation whic

should not occur. Therefore, a termination with a short d

triggered on purpose by the key word MESSAGE (type X).

Error analysis

Short text of error message:

200016 already exists

Long text of error message:

Diagnosis

You have specified a record that already exists in the database.

System Response

Procedure

Choose a new key value.

Technical information about the message:

Message class....... "E9"

Number.............. 012

Variable 1.......... 200016

Variable 2.......... " "

Variable 3.......... " "Information on where terminated

Termination occurred in the ABAP program "SAPLERCU" - in "ISU_DB_ERCH_UPDATE".

The main program was "REAABR00SIBI ".

In the source code you have the termination point in line 51

of the (Include) program "LERCUU07".

Source Code Extract

Line SourceCde

21 * Falls BelNr leer ==> Abbruch!

22 * Es sind bei Kunden Abrechnungsbeleg mit leerer BELNR

23 * aufgetreten.

24 IF X_ERCH-BELNR IS INITIAL.

25 IF 1 = 2.

26 MESSAGE A674(AJ) WITH X_ERCH-VERTRAG.

27 ENDIF.

28 MAC_MSG_PUTX CO_MSG_PROGRAMMING_ERROR '674' 'AJ'

29 X_ERCH-VERTRAG SPACE SPACE SPACE SPACE .

30 ENDIF.

31 * Eröffnungs-/Änderungsdaten schreiben

32 CALL FUNCTION 'ISU_OPENING_DATA_UPDATE'

33 EXPORTING

34 X_ERNAM = X_ERCH-ERNAM

35 X_ERDAT = X_ERCH-ERDAT

36 X_UPD_MODE = X_UPD_MODE

37 IMPORTING

38 Y_ERDAT = X_ERCH-ERDAT

39 Y_ERNAM = X_ERCH-ERNAM

40 Y_AEDAT = X_ERCH-AEDAT

41 Y_AENAM = X_ERCH-AENAM

42 EXCEPTIONS

43 NOT_CHANGED = 1.

44 IF X_UPD_MODE = CO_UPD_INSERT.

45 INSERT ERCH FROM X_ERCH.

46 IF SY-SUBRC <> 0.

47 * Eintrag schon vorhanden

48 IF 1 = 2.

49 MESSAGE A012(E9) WITH X_ERCH-BELNR."Hier Schlüsselfelder angeben

50 ENDIF.

>>> MAC_MSG_PUTX CO_MSG_UPDATE_ERROR '012' 'E9'

52 X_ERCH-BELNR SPACE SPACE SPACE SPACE .

53 ENDIF.

54 ELSE.

55 IF X_UPD_MODE = CO_UPD_DELETE.

56 X_ERCH-MANDT = SY-MANDT.

57 DELETE ERCH FROM X_ERCH.

58 ELSEIF X_UPD_MODE = CO_UPD_UPDATE.

59 UPDATE ERCH FROM X_ERCH.

60 ELSEIF X_UPD_MODE = CO_UPD_MODIFY.

61 MODIFY ERCH FROM X_ERCH.

62 ENDIF.

63 IF SY-SUBRC <> 0.

64 * Eintrag nicht vorhanden

65 IF 1 = 2.

66 MESSAGE A011(E9) WITH X_ERCH-BELNR."Hier Schlüsselfelder angeben

67 ENDIF.

68 MAC_MSG_PUTX CO_MSG_UPDATE_ERROR '011' 'E9'

69 X_ERCH-BELNR SPACE SPACE SPACE SPACE .

70 ENDIF.

kr

raj

Tags:
Former Member
Former Member replied

Hi,

I think the error is in the following line:-

45 INSERT ERCH FROM X_ERCH.

i think you are trying to insert a duplicate entry.

-Goodluck,

Bhumika

0 View this answer in context

Helpful Answer

by
Not what you were looking for? View more on this topic or Ask a question