<?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: Validation of input fields in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605248#M1277325</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for name, u can declare it as character. after enetring the name jus do the validation like:&lt;/P&gt;&lt;P&gt;if v_name CO 'abcdefghijklmnopqrstuvwxyz ' then accept it else gve a message that it should contain only characters.&lt;/P&gt;&lt;P&gt;u can use the dataelement AD_SMTPADR for mail id. and check for the codition that . appears after @&lt;/P&gt;&lt;P&gt;u can use STRING for alphanumeric values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 06 May 2009 04:10:41 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-06T04:10:41Z</dc:date>
    <item>
      <title>Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605246#M1277323</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;I have a dialog progarm which has 3 fields :&lt;/P&gt;&lt;P&gt;Name,Email ID,Passport no.&lt;/P&gt;&lt;P&gt;I have to validate them as below:&lt;/P&gt;&lt;P&gt;Name : only characters allowed with spaces.&lt;/P&gt;&lt;P&gt;Email Id: There should be one @ in between and one dot after @.&lt;/P&gt;&lt;P&gt;Passport no :  It should be alphanumeric field.&lt;/P&gt;&lt;P&gt;I have tried the validation for name as&lt;/P&gt;&lt;P&gt;it_table-name CN sy-abcde.&lt;/P&gt;&lt;P&gt;But its not working. Please suggest the solution.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 03:56:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605246#M1277323</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T03:56:07Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605247#M1277324</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;its better to validate explicitly.&lt;/P&gt;&lt;P&gt;For ex: if p_name CA 'abcdefhijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ '&lt;/P&gt;&lt;P&gt;DO NOTHING&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;trigger ur error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;Since you are allowingonly char values for name.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;to validate email id for @ symbol...(i may be wrong syntactically.take f1 help and code the correct syntax)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;declare g_count as type i and temp_emailid as type p_emailid.&lt;/P&gt;&lt;P&gt;clear temp_emailid.&lt;/P&gt;&lt;P&gt;move the user i/p p_email to some temp_emailid.&lt;/P&gt;&lt;P&gt;replace '@' in temp_emailid on all occurences and count g_count.&lt;/P&gt;&lt;P&gt;if count &amp;gt; 1.&lt;/P&gt;&lt;P&gt;trigger ur error msg.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;For passport number: same as coding in name validation except that, you have to remove the space at the end in the string as you cannot have space in passport number.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kiran&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 04:09:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605247#M1277324</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T04:09:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605248#M1277325</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;for name, u can declare it as character. after enetring the name jus do the validation like:&lt;/P&gt;&lt;P&gt;if v_name CO 'abcdefghijklmnopqrstuvwxyz ' then accept it else gve a message that it should contain only characters.&lt;/P&gt;&lt;P&gt;u can use the dataelement AD_SMTPADR for mail id. and check for the codition that . appears after @&lt;/P&gt;&lt;P&gt;u can use STRING for alphanumeric values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 04:10:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605248#M1277325</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T04:10:41Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605249#M1277326</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check this Code,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Name validation.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
PARAMETERS: LMAIL TYPE ADR6-SMTP_ADDR.

IF LMAIL CO SY-ABCDE AND LMAIL CA ' '.
  WRITE : 'Success'.
ELSE.
  WRITE : 'Error'.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For E-Mail Validation.&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
IF LMAIL CP '*@*.*'.
  IF LMAIL CA ' '.
    WRITE : 'Error'.
  ELSE.
    WRITE : 'Success'.
  ENDIF.
ENDIF.
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;For Passport validtion&lt;/STRONG&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;
Just declare the variable as NUMC (Var Type N).
&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 04:15:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605249#M1277326</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T04:15:52Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605250#M1277327</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi &lt;/P&gt;&lt;P&gt;data:&lt;/P&gt;&lt;P&gt;w_str type string.&lt;/P&gt;&lt;P&gt;concatenate sy-abcde space into w_str.&lt;/P&gt;&lt;P&gt;concatenate '@'  '.' into w_str2 no gaps.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for name...&lt;/P&gt;&lt;P&gt;it_table-name CO w_str.&lt;/P&gt;&lt;P&gt;else.&lt;/P&gt;&lt;P&gt;// error message.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;for mailid..&lt;/P&gt;&lt;P&gt;if w_mail CA w_str2.&lt;/P&gt;&lt;P&gt;endif.&lt;/P&gt;&lt;P&gt;for alpha numeric ( type string/char )restrict the special characters..&lt;/P&gt;&lt;P&gt;NA ' !@#$%^&amp;amp;*() '.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 05:45:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605250#M1277327</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T05:45:43Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605251#M1277328</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Try Regular Expression....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. For Name&lt;/P&gt;&lt;P&gt;     '\[A-Ba-b\]* \[A-Ba-b\]*'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. For Mail id&lt;/P&gt;&lt;P&gt;    '&lt;STRONG&gt;@&lt;/STRONG&gt;.*'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3. For Alpha Numeric field&lt;/P&gt;&lt;P&gt;    '\[a-bA-B0-9\]*'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gyanendar Rathore on May 6, 2009 8:07 AM&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Gyanendar Rathore on May 6, 2009 8:09 AM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 06:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605251#M1277328</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T06:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Validation of input fields</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605252#M1277329</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sunil,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Is your problem solved,&lt;/P&gt;&lt;P&gt;If so, Not even replying a thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you please share the solution of your problem,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regard,&lt;/P&gt;&lt;P&gt;Dileep .C&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 06 May 2009 06:18:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validation-of-input-fields/m-p/5605252#M1277329</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-06T06:18:52Z</dc:date>
    </item>
  </channel>
</rss>

