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

Division by zero

Hi Gurus,

I am using calculated key fig in one of the report and some times I get funny result because in formula the key fig is divided by another key fig, which is zero. So how can i handel this situation when we get division by zero.

Thanks and Regards,

Raj

Add a comment
10|10000 characters needed characters exceeded

Related questions

1 Answer

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 09, 2005 at 07:28 PM

    hi Raj,

    there is function in bex query designer to handle div by zero, i have no access to system now. try to check in 'data function'.

    hi,

    the function is under 'data function', it's NDIV0 (x), x = keyfigure.

    you can set how to display the value with transaction rscustv5 (? not sure, try rscustv4 or other if wrong)

    http://help.sap.com/saphelp_erp2005/helpdata/en/71/0aec3b6e011341e10000000a114084/content.htm

    http://help.sap.com/saphelp_erp2005/helpdata/en/03/17f13a2f160f28e10000000a114084/content.htm

    Message was edited by: A.H.P

    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.