Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

ABAP Runtime error

Former Member
0 Likes
1,452

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

5 REPLIES 5
Read only

former_member156446
Active Contributor
0 Likes
1,008

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.

Read only

Former Member
0 Likes
1,008

Hi, this is a divide by zero error. Ask your Abaper to look and fix it.

Read only

Former Member
0 Likes
1,008

hi,

Runtime Errors BCD_ZERODIVIDE ...this is error because of Divided by Zero ...

need to handel this exception with in TRY & ENDTRY.

regards

Gaurav

Read only

0 Likes
1,008

how to write try

endtry method and how i can catch the sam,e error

Read only

Venkat_Sesha
Product and Topic Expert
Product and Topic Expert
0 Likes
1,008

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