<?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 Checking a variable for Numeric field only in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557077#M252189</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 am having a text variable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fill an internal table with it only if its a Numeric otherwise it shld not be considered . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 07 Sep 2006 22:12:09 GMT</pubDate>
    <dc:creator>vivekkrishnan</dc:creator>
    <dc:date>2006-09-07T22:12:09Z</dc:date>
    <item>
      <title>Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557077#M252189</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 am having a text variable . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need to fill an internal table with it only if its a Numeric otherwise it shld not be considered . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please advise . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in Advance . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Vivek K&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 22:12:09 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557077#M252189</guid>
      <dc:creator>vivekkrishnan</dc:creator>
      <dc:date>2006-09-07T22:12:09Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557078#M252190</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;  loop at itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if itab-field1 CO '0123456789'.&lt;/P&gt;&lt;P&gt;    append itab to itab1.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Naren&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 07 Sep 2006 22:13:31 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557078#M252190</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-07T22:13:31Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557079#M252191</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Depending on if you are checking the extra space in the field you may need to do this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;data: c(10) type c value '123.78'.
data: len type i.

len = strlen( c ).

if c+0(len) CO '0123456789.'.
* Ok, allow it.
endif.&lt;/CODE&gt;&lt;/PRE&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, 07 Sep 2006 23:17:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557079#M252191</guid>
      <dc:creator>RichHeilman</dc:creator>
      <dc:date>2006-09-07T23:17:24Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557080#M252192</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;of course, you may also need to consider thousands seperaters (',') and embedded spaces.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 00:04:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557080#M252192</guid>
      <dc:creator>former_member186741</dc:creator>
      <dc:date>2006-09-08T00:04:13Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557081#M252193</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You can use numeric check or alternatively you can use the following code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : l_string TYPE string,&lt;/P&gt;&lt;P&gt;       lv_lifex TYPE likp-lifex VALUE '10.001'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOVE 'abcdefghijklmnopqrstuvwxyz' TO l_string.&lt;/P&gt;&lt;P&gt;CONCATENATE l_string 'ABCDEFGHIJKLMNOPQRSTUVWXYZ' INTO l_string.&lt;/P&gt;&lt;P&gt;CONCATENATE l_string&lt;/P&gt;&lt;P&gt;            '`~!@#$%^&amp;amp;*()-_=+|\}]{["''";:/?&amp;gt;,&amp;lt;' INTO l_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF lv_lifex CA l_string.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Contains Characters'.&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;  WRITE &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Only Numeric'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For me CO dint work with '10.001' so I had to resort to the above to make it to work.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;hith&lt;/P&gt;&lt;P&gt;Sunil Achyut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: Sunil Achyut&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 01:46:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557081#M252193</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T01:46:43Z</dc:date>
    </item>
    <item>
      <title>Re: Checking a variable for Numeric field only</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557082#M252194</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;  Just to add to our friends responses, you can use &lt;/P&gt;&lt;P&gt;FM: &amp;lt;b&amp;gt;CATS_NUMERIC_INPUT_CHECK&amp;lt;/b&amp;gt; to check for pure numeric &lt;/P&gt;&lt;P&gt;values which will consider the decimal and unit &lt;/P&gt;&lt;P&gt;separator.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Kind Regards&lt;/P&gt;&lt;P&gt;Eswar&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 08 Sep 2006 02:57:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/checking-a-variable-for-numeric-field-only/m-p/1557082#M252194</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-09-08T02:57:47Z</dc:date>
    </item>
  </channel>
</rss>

