<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in report for TYPE P in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521352#M239395</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alykya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The error message indicates that there is divide by zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try doing this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; CHECK NOT billing_tab-fkimg IS INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; netprc = stock_tab-netpr / billing_tab-fkimg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can also use TRY and CATCH. If the denominator is zero the system will throw a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
DATA: TMP TYPE I.
TMP = 1 / 0 .
CATCH CX_SY_ZERODIVIDE.
  w_error_issued = 'X'.
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 20 Aug 2006 10:56:01 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-08-20T10:56:01Z</dc:date>
    <item>
      <title>Problem in report for TYPE P</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521351#M239394</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have problem in a Report in ECC5.0. Its giving Dump. Can anyone help me &amp;#133;&lt;/P&gt;&lt;P&gt;The given below is the Dump. I have declare netprc as netprc: TYPE P DECIMALS 2.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Error analysis&lt;/P&gt;&lt;P&gt;    An exception occurred. This exception is dealt with in more detail below  . The exception, which is assigned to the class 'CX_SY_ZERODIVIDE', was neither   caught nor passed along using a RAISING clause, in the procedure "EXTRACT_DATA"     "(FORM)"&lt;/P&gt;&lt;P&gt;    .&lt;/P&gt;&lt;P&gt;    Since the caller of the procedure could not have expected this exception   to occur, the running program was terminated.   The reason for the exception is:&lt;/P&gt;&lt;P&gt;    In the current program "ZFIINSTR0020", an arithmetic operation ('DIVIDE',&lt;/P&gt;&lt;P&gt;    '/', 'DIV', or 'MOD') with a type P operand attempted to divide   by 0.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;dump Code&lt;/P&gt;&lt;P&gt;MOVE-CORRESPONDING stock_tab TO output_tab.&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING billing_tab TO output_tab.&lt;/P&gt;&lt;P&gt; MOVE-CORRESPONDING mara_tab TO output_tab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &amp;lt;b&amp;gt;netprc = stock_tab-netpr / billing_tab-fkimg.   &amp;lt;/b&amp;gt; "XXXX&lt;/P&gt;&lt;P&gt; move netprc to output_tab-ntprc.&lt;/P&gt;&lt;P&gt; grsval = konv_tab-kbetr * billing_tab-fkimg.    &lt;/P&gt;&lt;P&gt; move grsval to output_tab-grsval.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Aug 2006 10:47:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521351#M239394</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-20T10:47:46Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in report for TYPE P</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521352#M239395</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Alykya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; The error message indicates that there is divide by zero.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Try doing this&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt; CHECK NOT billing_tab-fkimg IS INITIAL.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt; netprc = stock_tab-netpr / billing_tab-fkimg&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; You can also use TRY and CATCH. If the denominator is zero the system will throw a dump.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;TRY.
DATA: TMP TYPE I.
TMP = 1 / 0 .
CATCH CX_SY_ZERODIVIDE.
  w_error_issued = 'X'.
ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; Cheers&lt;/P&gt;&lt;P&gt; VJ&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Aug 2006 10:56:01 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521352#M239395</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-20T10:56:01Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in report for TYPE P</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521353#M239396</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vijay,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is solved. &lt;/P&gt;&lt;P&gt;Thanks a Lot.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;Alykya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 20 Aug 2006 11:27:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-report-for-type-p/m-p/1521353#M239396</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-08-20T11:27:53Z</dc:date>
    </item>
  </channel>
</rss>

