Skip to Content
author's profile photo Former Member
Former Member

ABAP Dump error -> Division by 0 (type P) in program "RPCTX0KC"

Dear All,

I am running Canadian Payroll on ECC 6.0 . when I run the transaction : PC00_M07_CALC_SIMU it throws ABAP Dump.

Standard Schema (Tcode : PE01) --> K000 is used in running payroll. Currently if I dont want this dump to occur I will have to put a line in comments. -> " 000200 COPY KTX0 * Calculate taxes ". But this line is important for Calculation of Taxes.

Can you please let me know what can be done about it? Is this anything to be done with any Patch or Note or ABAP correction?

ABAP Dump Error :

Runtime Errors BCD_ZERODIVIDE

Except. CX_SY_ZERODIVIDE

Date and Time 17.07.2009 11:53:58

Short text

Division by 0 (type P) in program "RPCTX0KC"

What happened?

Error in the ABAP Application Program

The current ABAP program "RPCTX0KC" had to be terminated because it ha

come across a statement that unfortunately cannot be executed.

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 "PP_CONTRIBUTIONS_EE" "(FORM)", 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 "RPCTX0KC", an arithmetic operation ('DIVIDE',

'/', 'DIV' or 'MOD') with a type P operand attempted to divide

by 0.

Missing RAISING Clause in Interface

Program RPCTX0KC

Include RPCTXSK3

Row 75

Module type (FORM)

Module Name PP_CONTRIBUTIONS_EE

Trigger Location of Exception

Program RPCTX0KC

Include RPCTXSK3

Row 117

Module type (FORM)

Module Name PP_CONTRIBUTIONS_EE

Source Code Extract

Line SourceCde ..................... ( This starts at Line 87 - goes to Line 136)

Regards

Edited by: Mamta_SapHR on Jul 17, 2009 8:03 PM

Edited by: Mamta_SapHR on Jul 17, 2009 8:05 PM

Edited by: Monu on Jul 18, 2009 3:56 AM

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

1 Answer

  • Posted on Jul 18, 2009 at 10:33 AM

    Hi,

    If it is a standard program search for some note.

    Since you say that you are able to comment the code; then instead of commenting the code use TRY-CATCH to catch the exception and inform the user about the error.

    Atleast you will avoid the dump.

    Regards,

    Ankur Parab

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.