<?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: how to validate a numeric field using regex in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572748#M1755621</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately this only activates Impulse Drive - in order to activate Warp Drive you have to set the RegEx option 'dot matches newlines' to capture all numerics in the Universe ... &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 17 Jul 2013 09:43:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2013-07-17T09:43:41Z</dc:date>
    <item>
      <title>how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572740#M1755613</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello,&lt;/P&gt;&lt;P&gt;My requirement is to validate a field for alphabets and special characters.So the field should allow only numerics and spaces.I am using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;`[[:punct:]]` &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN lv_1.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"Special character is found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'You can only enter numeric characters ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'E'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;FIND &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;FIRST &lt;/SPAN&gt;OCCURRENCE &lt;SPAN class="L0S52"&gt;OF &lt;/SPAN&gt;REGEX &lt;SPAN class="L0S33"&gt;'[ [:alpha:] ]' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;IN &lt;/SPAN&gt;lv_1&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;IF &lt;/SPAN&gt;sy&lt;SPAN class="L0S70"&gt;-&lt;/SPAN&gt;subrc &lt;SPAN class="L0S55"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S32"&gt;0&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;. &lt;/SPAN&gt;&lt;SPAN class="L0S31"&gt;"Special character is found&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;MESSAGE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'You can only enter numeric characters ' &lt;/SPAN&gt;&lt;SPAN class="L0S52"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S33"&gt;'E'&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;SPAN class="L0S52"&gt;ENDIF&lt;/SPAN&gt;&lt;SPAN class="L0S55"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55"&gt;It is working fine when special characters or alphabets are entered but it is throwing error for even spaces at second find statement. I know there is an explicit way to validate spaces by using [[:space:]].But why is it throwing error at second statement.Any replies are appreciated thanks.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 01:03:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572740#M1755613</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-17T01:03:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572741#M1755614</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;What is the data type of the variable &lt;EM&gt;LV_1&lt;/EM&gt;?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 06:46:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572741#M1755614</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-07-17T06:46:34Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572742#M1755615</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maverik,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would suggest that you rather use the RegEx matcher class:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;&amp;nbsp; DATA&lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;:&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;&amp;nbsp; go_matcher &lt;/SPAN&gt;&lt;STRONG style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TYPE &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;REF &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-weight: inherit; font-style: inherit; font-family: inherit;"&gt;TO &lt;/SPAN&gt;&lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;cl_abap_matcher.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;&amp;nbsp; go_matcher &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;cl_abap_matcher&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;=&amp;gt;&lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;create&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;( &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;pattern&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN class="L0S33" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #0000ff;"&gt;'^[0-9 ]+$'&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ignore_case &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;= &lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;abap_true&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S52" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;text&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;= &lt;SPAN style="color: #0000ff;"&gt;'Text to be checked'&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt; &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;)&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG style="color: #333333; font-size: 11px; background-color: #ffffff; font-family: 'courier new', courier;"&gt;&amp;nbsp; IF &lt;/STRONG&gt;&lt;SPAN style="color: #333333; font-family: 'courier new', courier; font-size: 11px; background-color: #ffffff;"&gt;go_matcher&lt;/SPAN&gt;&lt;SPAN class="L0S70" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;-&amp;gt;matches&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;( &lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;) = abap_true&lt;/SPAN&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;&lt;SPAN style="color: #c0c0c0;"&gt;&lt;EM&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; " ... do something ...&lt;/EM&gt;&lt;/SPAN&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN class="L0S55" style="font-size: 11px; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;&lt;STRONG&gt;&amp;nbsp;&amp;nbsp; ENDIF&lt;/STRONG&gt;.&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is far more flexible since you can use RegEx groups to isolate certain elements of the original text and other advanced regular expression features.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to try out various regular expressions beforehand you can use the program &lt;STRONG&gt;DEMO_REGEX_TOY&lt;/STRONG&gt; (launched via transaction SE38) which is particularly useful since ABAP RegEx support only a subset of the PCRE RegEx syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope that helps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chris&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:14:47 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572742#M1755615</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-17T08:14:47Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572743#M1755616</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I usually use part of this generic expression : &lt;SPAN style="text-decoration: underline;"&gt;^[-+]?[0-9]*\.?[0-9]*([eE][-+]?[0-9]+)?$&lt;/SPAN&gt; to check validity of numeric values. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:43:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572743#M1755616</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-07-17T08:43:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572744#M1755617</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Isn't it too complicated to check if a value is numeric? &lt;SPAN __jive_emoticon_name="confused" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/confused.gif"&gt;&lt;/SPAN&gt; K.I.S.S, eh?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;- Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 08:48:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572744#M1755617</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-07-17T08:48:45Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572745#M1755618</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Oh, and I did not even post the multiple-country version... &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;(Usually a simple TRY/MOVE/CATCH/ENDTRY do the job too)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Raymond&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:05:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572745#M1755618</guid>
      <dc:creator>RaymondGiuseppi</dc:creator>
      <dc:date>2013-07-17T09:05:07Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572746#M1755619</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raymond,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think Maverick's question is rather directed towards a general solution on how to validate standard numeric input (including spaces!).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;To do it the &lt;EM&gt;SAP-way&lt;/EM&gt; you could also simply resort to the function module &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier;"&gt;CATS_NUMERIC_INPUT_CHECK&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt;"&gt; which basicaly does the trick (except for the spaces)&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;EM&gt;BTW:&lt;/EM&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;The best term (that I know of) to discern all possible numerical formats is the PCRE expression:&lt;/SPAN&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;STRONG style="font-family: 'courier new', courier;"&gt;[-+]?(?:\b[0-9]+(?:\.[0-9]*)?|\.[0-9]+\b)(?:[eE][-+]?[0-9]+\b)?&lt;/STRONG&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;(this is definitely &lt;SPAN style="text-decoration: underline;"&gt;not&lt;/SPAN&gt; KISS &lt;SPAN __jive_emoticon_name="wink" __jive_macro_name="emoticon" class="jive_macro jive_emote jiveImage" src="https://community.sap.com/1642/images/emoticons/wink.gif"&gt;&lt;/SPAN&gt; - and does neither catch spaces nor works here since ABAP RegEx engine does not support grouping without backreferences)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;&amp;nbsp; Chris&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt;"&gt;&lt;BR /&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572746#M1755619</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-17T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572747#M1755620</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt;To do it the &lt;EM style="font-family: inherit;"&gt;SAP-way&lt;/EM&gt; you could also simply resort to the function module &lt;/SPAN&gt;&lt;STRONG style="font-size: 10pt; font-family: 'courier new', courier; background-color: #ffffff; color: #333333;"&gt;CATS_NUMERIC_INPUT_CHECK&lt;/STRONG&gt;&lt;SPAN style="font-size: 10pt; background-color: #ffffff; color: #333333;"&gt; which basicaly does the trick (except for the spaces)&lt;/SPAN&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Or may be define the variable as numeric/integer &lt;SPAN __jive_emoticon_name="mischief" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/mischief.gif"&gt;&lt;/SPAN&gt;&amp;nbsp; &lt;SPAN style="font-size: 10pt;"&gt;Of course this won't cater to the spaces problem.&lt;/SPAN&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;&lt;P&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;[-+]?(?:\b[0-9]+(&lt;/STRONG&gt;&lt;STRONG style="font-style: inherit; font-family: 'courier new', courier;"&gt;?:\.[0-9]*)?|\.[0-9]+\b)(?:[eE][-+]?[0-9]+\b)?&lt;/STRONG&gt;&lt;/P&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In addition to matching numeric input, does this code send the Starship Enterprise on a Warp drive &lt;SPAN __jive_emoticon_name="silly" __jive_macro_name="emoticon" class="jive_macro jive_emote" src="https://community.sap.com/1642/images/emoticons/silly.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;BR,&lt;/P&gt;&lt;P&gt;Suhas&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:30:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572747#M1755620</guid>
      <dc:creator>SuhaSaha</dc:creator>
      <dc:date>2013-07-17T09:30:58Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572748#M1755621</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;No, unfortunately this only activates Impulse Drive - in order to activate Warp Drive you have to set the RegEx option 'dot matches newlines' to capture all numerics in the Universe ... &lt;SPAN __jive_emoticon_name="laugh" __jive_macro_name="emoticon" class="jive_macro jive_macro_emoticon jive_emote" src="https://community.sap.com/1642/images/emoticons/laugh.gif"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 09:43:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572748#M1755621</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-17T09:43:41Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572749#M1755622</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;&lt;/P&gt;&lt;P&gt; Please Refer this Document&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.patelashish.com/wordpress/PDFDocs/Regular%20Expression%20Processing%20in%20ABAP.pdf" title="http://www.patelashish.com/wordpress/PDFDocs/Regular%20Expression%20Processing%20in%20ABAP.pdf"&gt;http://www.patelashish.com/wordpress/PDFDocs/Regular%20Expression%20Processing%20in%20ABAP.pdf&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 11:28:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572749#M1755622</guid>
      <dc:creator>prkash_s</dc:creator>
      <dc:date>2013-07-17T11:28:50Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572750#M1755623</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Maverick,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use this regular expression.&lt;/P&gt;&lt;P&gt;FIND REGEX '[^[:digit:]|^[:space:]] IN lv_1.&lt;/P&gt;&lt;P&gt;IF sy-subrc = 0.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp; ** Invalid&lt;/P&gt;&lt;P&gt;ELSE.&lt;/P&gt;&lt;P&gt;&amp;nbsp; ** Valid.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Satish D R&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 17 Jul 2013 11:53:03 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572750#M1755623</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-17T11:53:03Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572751#M1755624</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;string suhas.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 14:56:18 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572751#M1755624</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-19T14:56:18Z</dc:date>
    </item>
    <item>
      <title>Re: how to validate a numeric field using regex</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572752#M1755625</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks ppl for your prompt replies, i got this solved.Space validation wasnt needed, but [:alpha:]expression is considering space as a char.So used find regex digit space and it solved the issue.Thanks again.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 19 Jul 2013 18:49:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/how-to-validate-a-numeric-field-using-regex/m-p/9572752#M1755625</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2013-07-19T18:49:54Z</dc:date>
    </item>
  </channel>
</rss>

