cancel
Showing results for 
Search instead for 
Did you mean: 

Division by 0 (type P) in program "SAPLJ1I4" : MIRO ERROR

former_member220286
Participant
0 Kudos

Dear All,

I am getting this error .

On reversing the MIRO . Enter reversal data .

Reversal reason and posting date .Then executing I am getting this error .

Division by 0 (type P) in program "SAPLJ1I4".

Error analysis :-

An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_SY_ZERODIVIDE', was not caught in procedure "J_1I4_GET_ACTUAL_DUTY_IN_LIV" "(FUNCTION)", nor was it propagated by a RAISING clause. Since the caller of the procedure could not have anticipated that the exception would occur, the current program is terminated. The reason for the exception is: In the current program "SAPLJ1I4", an arithmetic operation ('DIVIDE', '/', 'DIV' or 'MOD') with a type P operand attempted to divide by 0.

Information on where terminated :-

Termination occurred in the ABAP program "SAPLJ1I4" - in "J_1I4_GET_ACTUAL_DUTY_IN_LIV". The main program was "SAPLMR1M ". In the source code you have the termination point in line 835 of the (Include) program "LJ1I4U19". The termination is caused because exception "CX_SY_ZERODIVIDE" occurred in procedure "J_1I4_GET_ACTUAL_DUTY_IN_LIV" "(FUNCTION)", but it was neither handled locally nor declared in the RAISING clause of its signature. The procedure is in program "SAPLJ1I4 "; its source code begins in line 1 of the (Include program "LJ1I4U19 ".

Below statement is showing error :-

x_bed_amount = ( ls_grxref-exbed * 2 / yydrseg-wrbtralt ) * yydrseg-wrbtr.

YYDRSEG-WRBTRALT getting zero value .

Please suggest how to fix this issue .

Regards

Deep

Accepted Solutions (0)

Answers (1)

Answers (1)

JL23
Active Contributor

Actually a dump has instructions for you, e.g. hints to search for OSS notes. Read the first 50 lines. They are english and not really hard to understand.

A single statement where the error happened is often not sufficient, that's why the dump lists quite some more coding before the error statement and after.

I was able to find 3 notes by using this search term: J_1I4_GET_ACTUAL_DUTY_IN_LIV dump

former_member220286
Participant
0 Kudos

Dear Jurgen ,

How to fix this error .Shall I have to go to SAP support to fix this issue or we can fix this issue by ourself.

Regards

Deep

JL23
Active Contributor

Do you really think it is your duty to adjust program code in SAP standard programs.

Such fixes are done by SAP and taken into your system via OSS notes.

You have to go to SAP Support and do the search based on the hints in the Dump and given by me to find the notes that you have to apply. And if they do not solve the problem then you have to open an incident yourself.