Skip to Content
0
Jul 18, 2012 at 09:43 AM

Runtime Errors in MR8M

250 Views

Hi all,

I hope this is the appropriate forum, because it happens in MM-IV area.

Have anyone experience this; when trying to cancel an already posted invoice in MR8M, the system issued an error with sort text: Exception condition "SYSTEM_ERROR" raised.

Details as follow:

Runtime Errors RAISE_EXCEPTION

Date and Time 18.07.2012 16:32:22

Short text

Exception condition "SYSTEM_ERROR" raised.

What happened?

The current ABAP/4 program encountered an unexpected

situation.

Error analysis

A RAISE statement in the program "SAPLFACI" raised the exception

condition "SYSTEM_ERROR".

Since the exception was not intercepted by a superior

program, processing was terminated.

Short description of exception condition:

For detailed documentation of the exception condition, use

Transaction SE37 (Function Library). You can take the called

function module from the display of active calls.

-

Trigger Location of Runtime Error

Program SAPLFACI

Include LFACIF3T

Row 69

Module type (FORM)

Module Name INSERT_NEW_ITEMS

Source Code Extract

Line SourceCde

39 PERFORM CHECK_SINGLE_MONAT_GJAHR USING IACCIT_FI-BUKRS

40 g_group_ledger"/glflex/

41 ACCHD_FI-GLVOR"/glflex/

42 IACCIT_FI-KOART

43 IACCIT_FI-HKONT

44 IACCIT_FI-GJAHR

45 ACCHD_FI-LDGRP

46 CHANGING IACCIT_FI-MONAT.

47 ENDLOOP.

48 ENDIF.

49

50 * Check document type and account type

51 READ TABLE ACCIT_FI WITH KEY KOART = CHAR_V. "according to note 458162

52 IF SY-SUBRC NE 0. "according to note 458162

53 LOOP AT IACCIT_FI.

54 PERFORM CHECK_SINGLE_BLART USING IACCIT_FI-BLART

55 IACCIT_FI-KOART

56 ACCIT_FI-AWTYP.

57 ENDLOOP.

58 ENDIF.

59 *

60 * end of note 581376

61 *

62 * Insert new items/amounts into ACCIT_FI/ACCCR_FI

63 LOOP AT IACCIT_FI.

64 * Check if item with this POSNR already exists

65 LOOP AT ACCIT_FI WHERE POSNR EQ IACCIT_FI-POSNR.

66 EXIT.

67 ENDLOOP.

68 IF SY-SUBRC IS INITIAL.

>>>>> RAISE SYSTEM_ERROR.

70 ENDIF.

71 * Insert new amounts

72 LOOP AT IACCCR_FI WHERE POSNR EQ IACCIT_FI-POSNR.

73 ACCCR_FI = IACCCR_FI.

74 ACCCR_FI-ISTAT = CHAR_2.

75 APPEND ACCCR_FI.

76 ENDLOOP.

77 * Insert new item

78 ACCIT_FI = IACCIT_FI.

79 ACCIT_FI-ISTAT = CHAR_2.

80 APPEND ACCIT_FI.

81 ENDLOOP.

82

83 ENDFORM. " INSERT_NEW_ITEMS

84 *&---------------------------------------------------------------------*

85 *& Form SET_XNEGP_FROM_NEIGHBOURS

86 *&---------------------------------------------------------------------*

87 * Cancel of invoice in MM with crosscompany postings

88 *----------------------------------------------------------------------*

Please help. Thank you. 😊