<?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: exception error handling in module pool program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150357#M1514474</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with increasing field (zfi_proposal-zpro_value) domain value but still it is giving exception error.how we can remove this exception error using try..catch..endtry. control statement.can you provide some sample code for this.or is there any other alternative to remove this error.&lt;/P&gt;&lt;P&gt;Thanks for your valuable response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 30 Aug 2010 06:43:23 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2010-08-30T06:43:23Z</dc:date>
    <item>
      <title>exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150355#M1514472</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a screen in which I am calculating one of field value using two fields from same table.following is sample code.&lt;/P&gt;&lt;P&gt;zfi_proposal-zpro_value =  zfi_proposal-zinv_rate  *  zfi_proposal-zno_of_shares.&lt;/P&gt;&lt;P&gt;here, field zinv_rate has domain type quan length 10 and decimal places = 4, and field zno_of_shares has domain type numc length 4. while zpro_value has domain type quan length 10 and decimal places = 4.&lt;/P&gt;&lt;P&gt;If zinv_rate &amp;gt; six digit value and zno_of_shares = two digit number system is giving conversion error.&lt;/P&gt;&lt;P&gt;can anyone provide solution to rectify this error.Thanks in advance.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 14:53:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150355#M1514472</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-27T14:53:37Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150356#M1514473</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Change the domain of zfi_proposal-zpro_value to be a couple of digits longer.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rob&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 27 Aug 2010 15:05:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150356#M1514473</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-27T15:05:28Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150357#M1514474</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Rob,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I tried with increasing field (zfi_proposal-zpro_value) domain value but still it is giving exception error.how we can remove this exception error using try..catch..endtry. control statement.can you provide some sample code for this.or is there any other alternative to remove this error.&lt;/P&gt;&lt;P&gt;Thanks for your valuable response.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:43:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150357#M1514474</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T06:43:23Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150358#M1514475</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;what is the data type of zfi_proposal-zpro_value  ?&lt;/P&gt;&lt;P&gt;you are getting the error as this field can not hold such a big value.&lt;/P&gt;&lt;P&gt;Try INT4 may be this will help.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 06:46:56 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150358#M1514475</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-30T06:46:56Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150359#M1514476</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;zinv_rate has domain type quantity, no of characters 10 and 4 decimal places and zno_of_shares has domain type numc, no of characters 4, while zpro_value has domain type quantity, no of characters 10 and 4 decimal places.&lt;/P&gt;&lt;P&gt;here, zpro_value = zinv_rate * zno_of_shares.how we can remove error without changing data types defined.is there any way out to rectify this error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your quick response..&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 07:54:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150359#M1514476</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T07:54:22Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150360#M1514477</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;The ismple reason you cant avoid this error is when you do the multiplication , the result is far too big than 10 char.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 08:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150360#M1514477</guid>
      <dc:creator>Sandeep_Panghal</dc:creator>
      <dc:date>2010-08-30T08:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150361#M1514478</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sandip,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;yes you are right.how we can rectify this error without changing field data types.is it possible to remove this error using programming.can you provide some solution.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for your answers.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 30 Aug 2010 09:11:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150361#M1514478</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-08-30T09:11:43Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150362#M1514479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can catch the exception &lt;STRONG&gt;cx_sy_arithmetic_overflow&lt;/STRONG&gt; &lt;/P&gt;&lt;P&gt;Please refer example coding&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: pa_rate TYPE p DECIMALS 4,
            pa_shar TYPE n LENGTH 4,
            pa_pro  TYPE p DECIMALS 4.


AT SELECTION-SCREEN ON pa_rate.
  TRY .
      pa_pro = pa_rate * pa_shar.
    CATCH cx_sy_arithmetic_overflow.
      MESSAGE 'Sorry the rate is too high, please correct the entry' TYPE 'E'.
  ENDTRY.

AT SELECTION-SCREEN ON pa_shar.
  TRY .
      pa_pro = pa_rate * pa_shar.
    CATCH cx_sy_arithmetic_overflow.
      MESSAGE 'Sorry the no_shares is too high, please correct the entry' TYPE 'E'.
  ENDTRY.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Marcin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 31 Aug 2010 11:55:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150362#M1514479</guid>
      <dc:creator>MarcinPciak</dc:creator>
      <dc:date>2010-08-31T11:55:00Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150363#M1514480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks for your valuable answers.my problem is solved.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Warm Regards,&lt;/P&gt;&lt;P&gt;Harshada&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 01 Sep 2010 14:28:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150363#M1514480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-01T14:28:27Z</dc:date>
    </item>
    <item>
      <title>Re: exception error handling in module pool program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150364#M1514481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;closed.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 18 Sep 2010 13:54:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/exception-error-handling-in-module-pool-program/m-p/7150364#M1514481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2010-09-18T13:54:55Z</dc:date>
    </item>
  </channel>
</rss>

