<?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: validating the input field in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528504#M573062</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: P_ORDER LIKE LIKP-VBELN.

AT SELECTION-SCREEN ON p_order. 
  IF NOT p_order BETWEEN '0' and '9999999999'. 
    MESSAGE 'Please enter numeric value' TYPE 'E'. 
  ENDIF. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 16 Jul 2007 20:21:44 GMT</pubDate>
    <dc:creator>ferry_lianto</dc:creator>
    <dc:date>2007-07-16T20:21:44Z</dc:date>
    <item>
      <title>validating the input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528503#M573061</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;       iam having an input field defined with &lt;/P&gt;&lt;P&gt;         parameters p_order like likp-vbeln.&lt;/P&gt;&lt;P&gt;we have to enter the values between o and 9999999999 and for other values and characters or space in the input will have to show the error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please send me the code for the above for validating the input.&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>Mon, 16 Jul 2007 20:15:13 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528503#M573061</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T20:15:13Z</dc:date>
    </item>
    <item>
      <title>Re: validating the input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528504#M573062</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;Please try this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: P_ORDER LIKE LIKP-VBELN.

AT SELECTION-SCREEN ON p_order. 
  IF NOT p_order BETWEEN '0' and '9999999999'. 
    MESSAGE 'Please enter numeric value' TYPE 'E'. 
  ENDIF. 
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ferry Lianto&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 20:21:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528504#M573062</guid>
      <dc:creator>ferry_lianto</dc:creator>
      <dc:date>2007-07-16T20:21:44Z</dc:date>
    </item>
    <item>
      <title>Re: validating the input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528505#M573063</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;you can write simple like as below&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;all printable sign's which are used in Web&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  DATA: vergleich_string(100) VALUE&lt;/P&gt;&lt;P&gt;          'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;parameters p_vbeln like vbap-vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;at selection-screen on p_vbeln.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CONCATENATE vergleich_string ',./!@#$%&amp;amp;*-_+=~|\[{]}()"'&lt;/P&gt;&lt;P&gt;                                               INTO vergleich_string.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if p_vbeln ca vergleich_string.&lt;/P&gt;&lt;P&gt;give error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Seshu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 20:55:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528505#M573063</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T20:55:23Z</dc:date>
    </item>
    <item>
      <title>Re: validating the input field</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528506#M573064</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Send the parameter to NUMERIC_CHECK function module and see the return type. If it is not NUMC, issue error. See below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
DATA: htype LIKE dd01v-datatype.

PARAMETERS: p_order LIKE likp-vbeln.

AT SELECTION-SCREEN.

  CALL FUNCTION 'NUMERIC_CHECK'
    EXPORTING
      string_in  = p_order
    IMPORTING
      string_out = p_order
      htype      = htype.
  IF htype &amp;lt;&amp;gt; 'NUMC'.
    MESSAGE e162(00) WITH 'Enter numeric value'.
  ENDIF.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 16 Jul 2007 23:56:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validating-the-input-field/m-p/2528506#M573064</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-16T23:56:57Z</dc:date>
    </item>
  </channel>
</rss>

