<?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 numeric fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282077#M496871</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;   i have requirement where i need to upload the file from the desktop and validate the file data like formating structure of the fields (i.e., numeric fields contain numeric values, character fields contain alphanumeric characters, if a field is eight characters in lengh, input is equal to eight characters or less) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have the isnumeric , ischar , isdecimal functions in SAP to check for numeric , character and decimals fields .  Appreciate your suggestions.&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;Latha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 03:55:43 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T03:55:43Z</dc:date>
    <item>
      <title>numeric fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282077#M496871</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Experts,&lt;/P&gt;&lt;P&gt;   i have requirement where i need to upload the file from the desktop and validate the file data like formating structure of the fields (i.e., numeric fields contain numeric values, character fields contain alphanumeric characters, if a field is eight characters in lengh, input is equal to eight characters or less) . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Do we have the isnumeric , ischar , isdecimal functions in SAP to check for numeric , character and decimals fields .  Appreciate your suggestions.&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;Latha.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 03:55:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282077#M496871</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T03:55:43Z</dc:date>
    </item>
    <item>
      <title>Re: numeric fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282078#M496872</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;In SAP there are many FM, or there is simple way to check fields using ABAP keywords such as CO(Contains Only), CA(Contain Any), etc&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can check help on these operators.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 03:59:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282078#M496872</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T03:59:28Z</dc:date>
    </item>
    <item>
      <title>Re: numeric fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282079#M496873</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;To check whether seq no contains only numericals&lt;/P&gt;&lt;P&gt;  if seqno na '0123456789'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to check whether v_string contains only characters&lt;/P&gt;&lt;P&gt;if v_string ca sy-abcde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward points if helpful&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;venki&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:12:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282079#M496873</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:12:49Z</dc:date>
    </item>
    <item>
      <title>Re: numeric fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282080#M496874</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;To check for only numeric value u can check if field co '0123456789' &lt;/P&gt;&lt;P&gt;To get the filed length use  strlen(field) &amp;amp; get it in integer field.&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;Sandeep&lt;/P&gt;&lt;P&gt;Reward if helpful &lt;SPAN __jive_emoticon_name="happy"&gt;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282080#M496874</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T04:13:28Z</dc:date>
    </item>
    <item>
      <title>Re: numeric fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282081#M496875</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;Use&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CATS_NUMERIC_INPUT_CHECK

or

You can use the Function Module:
NUMERIC_CHECK

Usage:

CALL FUNCTION 'NUMERIC_CHECK'
EXPORTING
STRING_IN = X
IMPORTING
STRING_OUT = X
HTYPE = H_TYPE.
if h_type = 'CHAR'.


WRITE:/ 'NOt Numeric'.
else.
write:/ 'Numeric'.
ENDIF&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rgds&lt;/P&gt;&lt;P&gt;Anversha.S&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 04:34:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/numeric-fields/m-p/2282081#M496875</guid>
      <dc:creator>anversha_s</dc:creator>
      <dc:date>2007-05-23T04:34:15Z</dc:date>
    </item>
  </channel>
</rss>

