<?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: field should accept only numeric values not characters. in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768985#M645043</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CA operator as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if i_vbeln-low CA 'abcdefghijklmnopqrstuvwxyz'.
  ...Display here your error message...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if i_vbeln-low CN '1234567890'.
  ...Display here your error message...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test also the i_vbeln-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case they entered a multiple single values that cannot be validate using high and low, you should use loop to validate each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2007 11:06:00 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-09-05T11:06:00Z</dc:date>
    <item>
      <title>field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768981#M645039</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;     for the following code,&lt;/P&gt;&lt;P&gt;     SELECT-OPTIONS : I_VBELN FOR VBAK-VBELN DEFAULT 4563 TO 4965.&lt;/P&gt;&lt;P&gt;at run time, the low and high value range input boxes should accept only numeric values not any other values.  How can I restrict that?.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Waiting for your kind reply.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:00:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768981#M645039</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:00:35Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768982#M645040</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data w_vbeln(10) type n.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options s_vbeln for w_vbeln.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:03:53 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768982#M645040</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:03:53Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768983#M645041</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;In the At SELCETION SCREEN event.&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF not I_VBELN -LOW CA '0123456789'.
 " Raise the error message
ENDIF.

IF not I_VBELN -HIGH CA '0123456789'.
 " Raise the error message
ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt; Sudheer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:05:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768983#M645041</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:05:16Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768984#M645042</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i need from table field.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:05:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768984#M645042</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:05:45Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768985#M645043</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Use CA operator as in&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if i_vbeln-low CA 'abcdefghijklmnopqrstuvwxyz'.
  ...Display here your error message...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;or&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
if i_vbeln-low CN '1234567890'.
  ...Display here your error message...
endif.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Test also the i_vbeln-high.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But in case they entered a multiple single values that cannot be validate using high and low, you should use loop to validate each.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:06:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768985#M645043</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:06:00Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768986#M645044</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya you can do validation for VBAK-VBELN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;select-options: s_vbeln for vbak-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In main program add &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;AT SELECTION-SCREEN ON s_vbeln.&lt;/P&gt;&lt;P&gt;  PERFORM sub_valid_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;FORM sub_valid_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; DATA lv_vbeln TYPE  vbuk-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Validation for company Code&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  IF  s_vbeln-low IS INITIAL.&lt;/P&gt;&lt;P&gt;    IF NOT s_vbeln-high IS INITIAL.&lt;/P&gt;&lt;P&gt;      MESSAGE w001. "low should be added&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE vbeln FROM  vbuk INTO lv_vbeln&lt;/P&gt;&lt;P&gt;           WHERE vbeln = s_vbeln-low.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e007 WITH s_vbeln-low. " Invalid value&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF NOT s_vbeln-high IS INITIAL.&lt;/P&gt;&lt;P&gt;    SELECT SINGLE vbeln FROM vbuk INTO lv_vbeln&lt;/P&gt;&lt;P&gt;  WHERE vbeln = s_vbeln-high.&lt;/P&gt;&lt;P&gt;    IF sy-subrc NE 0.&lt;/P&gt;&lt;P&gt;      MESSAGE e007 WITH s_vbeln-high. " Invalid value&lt;/P&gt;&lt;P&gt;    ENDIF.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Rewards if useful....&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:08:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768986#M645044</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:08:27Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768987#M645045</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sudheer,&lt;/P&gt;&lt;P&gt;     Your code is not working properly.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:10:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768987#M645045</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:10:30Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768988#M645046</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;Could you please let us know what is exact scenario.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to validate for numeric values only, if can use CA for pattern checking.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the code provided by others.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Sriram Ponna.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:12:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768988#M645046</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:12:22Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768989#M645047</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Do the validation like this - &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SELECT VBELN up to 1 rows
from       VBAK
into        table t_tmp
where    VBLEN in S_VBELN
if sy-subrc ne 0.
 message s000(oo) with 'Invalid Sales Ord  no'.
 LEAVE LIST-PROCESSING.
endif.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If you want to do it at input level , then u ll have to shift to PARAMETERS instead of select-options. because in SELECT-OPTIONS u have the option of Wild card seraching. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if u use parameter then &amp;lt;b&amp;gt;VALUE CHECK&amp;lt;/b&amp;gt; statement will do the trick for you. For select-options I guess u cant achieve it.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:14:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768989#M645047</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:14:29Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768990#M645048</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Minal,&lt;/P&gt;&lt;P&gt;     Your code is working at validation level,  but i need at  entry or input level.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:14:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768990#M645048</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:14:35Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768991#M645049</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, Just check my query once again.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thnx&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768991#M645049</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: field should accept only numeric values not characters.</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768992#M645050</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;Copy paste this code .. you will understand.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;parameter : I_VBELN(20) type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;data : l_len type i,&lt;/P&gt;&lt;P&gt;       l_count type i.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;initialization .&lt;/P&gt;&lt;P&gt;clear l_count.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;At selection-screen on I_VBeLN.&lt;/P&gt;&lt;P&gt;l_len = STRLEN( I_VBELN ).&lt;/P&gt;&lt;P&gt;Do l_len times.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If I_VBELN+l_count(1) CA sy-abcde.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message    'error' type 'E'.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;l_count =  l_count + 1.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;start-of-selection.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;write I_VBELN.&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;rewards if useful.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;nazeer&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2007 11:17:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-should-accept-only-numeric-values-not-characters/m-p/2768992#M645050</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-09-05T11:17:52Z</dc:date>
    </item>
  </channel>
</rss>

