<?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/1411987#M198349</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error in my program. convt_no_number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does this error mean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BWer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 13 Jul 2006 22:40:44 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-07-13T22:40:44Z</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/1411987#M198349</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello ABAP Experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I get this error in my program. convt_no_number..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;what does this error mean&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suggestions appreciated.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;BWer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 22:40:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/1411987#M198349</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T22:40:44Z</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/1411988#M198350</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;This means that you are trying to move a value into a numeric field that has a character that can not be converted to numeric.  I see this a lot when trying to move a number with a thousands separator, like ',' into a numeric field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This will produce the runtime error.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: c(10) type c value '1,234.00'.
data: i type i.

i = c.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can get around this by getting rid of the commm.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

data: c(10) type c value '1,234.00'.
data: i type i.

&amp;lt;b&amp;gt;translate c using ', '.
condense c no-gaps.&amp;lt;/b&amp;gt;
i = c.



&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;Please check your value for non-numeric characters.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Rich Heilman&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 22:45:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/1411988#M198350</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-07-13T22:45:11Z</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/1411989#M198351</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You might find function RS_CONV_EX_2_IN_NO_DD useful for validating numeric input when moving from a character to numeric field. This handles the specific decimal notation of the user e.g. European "1.123,54" or US "1,123.54". Here is a little report where you can enter a test string on the selection screen: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;REPORT zznumeric.

PARAMETERS:
  p_string         TYPE text12.

START-OF-SELECTION.
  DATA:
* Target numeric field with 3 decimal places
    lw_dec_fld(7) TYPE p DECIMALS 3.

  WRITE: / p_string.

* Check that the qty is a valid numeric value
  CALL FUNCTION 'RS_CONV_EX_2_IN_NO_DD'
       EXPORTING
            input_external  = p_string
       IMPORTING
            output_internal = lw_dec_fld
       EXCEPTIONS
            error_message   = 1
            OTHERS          = 2.

  IF sy-subrc &amp;lt;&amp;gt; 0.
    WRITE: / 'Invalid numeric input'.
  ELSE.
    WRITE / lw_dec_fld.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Anthony.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;p.s. In general you can prevent your program from short dumping by putting the code that may trigger the system exception in a CATCH SYSTEM-EXCEPTIONS ... ENDCATCH block&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;e.g.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;  CATCH SYSTEM-EXCEPTIONS convt_no_number = 1.
    lw_dec_fld = p_string.
  ENDCATCH.

  IF sy-subrc = 1.
    WRITE: / 'Invalid number'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 13 Jul 2006 23:40:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/convt-no-number-error/m-p/1411989#M198351</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-07-13T23:40:57Z</dc:date>
    </item>
  </channel>
</rss>

