‎2010 Feb 11 9:11 PM
Hi Guru's
I was trying to print an invoice and hit by a ABAP Runtime error,
Runtime Errors BCD_ZERODIVIDE
Exception CX_SY_ZERODIVIDE
The current ABAP program "ZVADIN91" had to be terminated because it has come across a statement that unfortunately cannot be executed. An exception occurred that is explained in detail below. The exception, which is assigned to class 'CX_SY_ZERODIVIDE', was not caught in procedure "ITEM_PRICE_PRINT" "(FORM)", nor was it propagated by a RAISING.
Can I fix this or do I need my Abaper to do the job
Thanks
‎2010 Feb 11 9:34 PM
you need an ABAPer, looks like its a custom code and only abap developer will have developer access key to make the changes...
The problem could be some where in the form, you are dividing value with a another value and the denominator is zero.. and I am sure you know what happens if you divide a value with zero.
‎2010 Feb 11 10:32 PM
Hi, this is a divide by zero error. Ask your Abaper to look and fix it.
‎2010 Feb 12 6:47 AM
hi,
Runtime Errors BCD_ZERODIVIDE ...this is error because of Divided by Zero ...
need to handel this exception with in TRY & ENDTRY.
regards
Gaurav
‎2012 Nov 08 8:27 AM
how to write try
endtry method and how i can catch the sam,e error
‎2012 Nov 08 8:55 AM
Check this link
http://scn.sap.com/message/6906003
Code this way
Data : text TYPE string,
try.
catch CX_SY_ZERODIVIDE into OREF.
TEXT = OREF->GET_TEXT( ).
endtry.
Hope this helps.
Moderator Message: Check the date of the original post. Don't reply to "dead" just for the sake of it.
Message was edited by: Suhas Saha