<?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 validations- in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927285#M940556</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : num type i.&lt;/P&gt;&lt;P&gt;data : n type i value 0.&lt;/P&gt;&lt;P&gt;data cpos type c.&lt;/P&gt;&lt;P&gt;parameters : input(30) type c.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num = strlen( input ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do num times.&lt;/P&gt;&lt;P&gt;  assign input+n(1) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  if &amp;lt;fs&amp;gt; = '1'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '2'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '3'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '4'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '5'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '6'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '7'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '8'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '9'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '0'.&lt;/P&gt;&lt;P&gt;  add 1 to n.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;continue&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;  add 1 to n.&lt;/P&gt;&lt;P&gt;  write 'error in input'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 27 May 2008 10:58:39 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-05-27T10:58:39Z</dc:date>
    <item>
      <title>field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927281#M940552</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I am working on a dialogue programme in which there are various fields like firstname, lastname, phoneno,age etc etc.., I need to validate the phoneno and age fields such that it should not accept anything but numericals, how can i do that!!!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sample code i am using is this -&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*PHONE NUMBER VALIDATIONS&lt;/P&gt;&lt;P&gt; IF PHONENO CN 'ABCDEFGHIHJK'.&lt;/P&gt;&lt;P&gt; MESSAGE I017(YMESS).&lt;/P&gt;&lt;P&gt; RETURN.&lt;/P&gt;&lt;P&gt; ENDIF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;sushanth.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:46:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927281#M940552</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:46:22Z</dc:date>
    </item>
    <item>
      <title>Re: field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927282#M940553</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;use a numeric field as type reference to the age and phone no fields. ..&lt;/P&gt;&lt;P&gt;that will validate automatically&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards,&lt;/P&gt;&lt;P&gt;lavanya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:49:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927282#M940553</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:49:59Z</dc:date>
    </item>
    <item>
      <title>Re: field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927283#M940554</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;  validate ur fields in &lt;/P&gt;&lt;P&gt;    PBO event of driver program with in &lt;/P&gt;&lt;P&gt;    CHAIN &lt;/P&gt;&lt;P&gt;    ENDCHAIN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;u can refer CHAIN       ENDCHAIN.   example .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;reward if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:51:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927283#M940554</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:51:28Z</dc:date>
    </item>
    <item>
      <title>Re: field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927284#M940555</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi sushant,  &lt;/P&gt;&lt;P&gt;                Use CHAIN ..... ENDCHAIN for validation of fields in Dialog prog. for detailed help abt the code, use help on Chain ... Endchain.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanx.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Khan&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:57:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927284#M940555</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:57:17Z</dc:date>
    </item>
    <item>
      <title>Re: field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927285#M940556</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;data : num type i.&lt;/P&gt;&lt;P&gt;data : n type i value 0.&lt;/P&gt;&lt;P&gt;data cpos type c.&lt;/P&gt;&lt;P&gt;parameters : input(30) type c.&lt;/P&gt;&lt;P&gt;field-symbols : &amp;lt;fs&amp;gt; type any.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;num = strlen( input ).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;do num times.&lt;/P&gt;&lt;P&gt;  assign input+n(1) to &amp;lt;fs&amp;gt;.&lt;/P&gt;&lt;P&gt;  if &amp;lt;fs&amp;gt; = '1'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '2'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '3'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '4'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '5'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '6'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '7'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '8'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '9'&lt;/P&gt;&lt;P&gt;  or &amp;lt;fs&amp;gt; = '0'.&lt;/P&gt;&lt;P&gt;  add 1 to n.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;continue&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;  add 1 to n.&lt;/P&gt;&lt;P&gt;  write 'error in input'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;enddo.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 10:58:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927285#M940556</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T10:58:39Z</dc:date>
    </item>
    <item>
      <title>Re: field validations-</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927286#M940557</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sushanth,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      Using the numeric fiends is the best solutions, as it will handle by default so that it will not allow the alphabets or any special characters, instead if you want to validate the existing Character fields on the screen you can validate by using the FIELD, CHAIN-ENDCHAIN. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To check this take the Length(say len1) of the screen field that you want to validate and move that field value to NUMC variable(var1) (declare that variable in you program), and after you move the original value to var1, again check the length for var1 (say len2). Now you compare both var1 and var2. if they are not equal to each other, then there will some character field exist in field that you want to validate.&lt;/P&gt;&lt;P&gt;Now you can throw the error message that 'please enter numeric value only'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please reward the points if helpful.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 27 May 2008 11:00:22 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/field-validations/m-p/3927286#M940557</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-27T11:00:22Z</dc:date>
    </item>
  </channel>
</rss>

