<?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 CONVT_NO_NUMBER ERROR in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720911#M1108479</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a mathematical calculation as follows where all the fields are type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IT_FINAL-LENGTH = ( IT_FINAL-LENGTH * IT_FINAL-UMVKZ ) / IT_FINAL-UMVKN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i am using the following code to catch the convt_no_number error.  in some of the systems the decimal format is different , so i had to use Catch system-exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the problem i am facing is : inside CATCH SYSTEM-EXCEPTIONS   &lt;/P&gt;&lt;P&gt;the mathematical calculation is not happening. &lt;/P&gt;&lt;P&gt;IT_FINAL-LENGTH = 2,000.00&lt;/P&gt;&lt;P&gt;IT_FINAL-UMVKZ )  = 1&lt;/P&gt;&lt;P&gt; IT_FINAL-UMVKN  = 1000.00&lt;/P&gt;&lt;P&gt;i should get IT_FINAL-LENGTH = 2. BUT THE CALCULATION IS NOT being processed inside the CATCH statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this. should i change the declaration of the field types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER = 1.
            IT_FINAL-LENGTH = ( IT_FINAL-LENGTH * IT_FINAL-UMVKZ ) / IT_FINAL-UMVKN.

          ENDCATCH.

          IF SY-SUBRC  = 1.
            CLEAR SY-SUBRC.
            WHILE SY-SUBRC = 0.

             REPLACE ',' WITH SPACE INTO IT_FINAL-LENGTH.
            ENDWHILE.
            CLEAR SY-SUBRC.
            WHILE SY-SUBRC = 0.
             REPLACE '.' WITH SPACE INTO IT_FINAL-LENGTH.

            ENDWHILE.
            CONDENSE IT_FINAL-LENGTH NO-GAPS.
           ENDIF.
          MODIFY IT_FINAL.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 11 Nov 2008 06:51:33 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-11-11T06:51:33Z</dc:date>
    <item>
      <title>CONVT_NO_NUMBER ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720911#M1108479</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am doing a mathematical calculation as follows where all the fields are type C.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; IT_FINAL-LENGTH = ( IT_FINAL-LENGTH * IT_FINAL-UMVKZ ) / IT_FINAL-UMVKN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; i am using the following code to catch the convt_no_number error.  in some of the systems the decimal format is different , so i had to use Catch system-exceptions.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But now the problem i am facing is : inside CATCH SYSTEM-EXCEPTIONS   &lt;/P&gt;&lt;P&gt;the mathematical calculation is not happening. &lt;/P&gt;&lt;P&gt;IT_FINAL-LENGTH = 2,000.00&lt;/P&gt;&lt;P&gt;IT_FINAL-UMVKZ )  = 1&lt;/P&gt;&lt;P&gt; IT_FINAL-UMVKN  = 1000.00&lt;/P&gt;&lt;P&gt;i should get IT_FINAL-LENGTH = 2. BUT THE CALCULATION IS NOT being processed inside the CATCH statement.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How can i solve this. should i change the declaration of the field types.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
CATCH SYSTEM-EXCEPTIONS CONVT_NO_NUMBER = 1.
            IT_FINAL-LENGTH = ( IT_FINAL-LENGTH * IT_FINAL-UMVKZ ) / IT_FINAL-UMVKN.

          ENDCATCH.

          IF SY-SUBRC  = 1.
            CLEAR SY-SUBRC.
            WHILE SY-SUBRC = 0.

             REPLACE ',' WITH SPACE INTO IT_FINAL-LENGTH.
            ENDWHILE.
            CLEAR SY-SUBRC.
            WHILE SY-SUBRC = 0.
             REPLACE '.' WITH SPACE INTO IT_FINAL-LENGTH.

            ENDWHILE.
            CONDENSE IT_FINAL-LENGTH NO-GAPS.
           ENDIF.
          MODIFY IT_FINAL.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 06:51:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720911#M1108479</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T06:51:33Z</dc:date>
    </item>
    <item>
      <title>Re: CONVT_NO_NUMBER ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720912#M1108480</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi ,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;anyone to help me out to solve this .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vikki.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 07:11:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720912#M1108480</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T07:11:27Z</dc:date>
    </item>
    <item>
      <title>Re: CONVT_NO_NUMBER ERROR</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720913#M1108481</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Why you are using Character type for all variables, you should use appropriate numeric types while calculation and then you have to move them to character variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;So consider changing the type of the variables.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Karthik D&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Nov 2008 07:38:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/4720913#M1108481</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-11-11T07:38:39Z</dc:date>
    </item>
  </channel>
</rss>

