<?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 Validations in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722697#M1108846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have field called Registratio No. in which i can enter only Numbers, '/ 'and ' *' apart from these 3 if i enter any other special characters it has to through a  error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to wite code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given CHAR 16 for this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanku&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 31 Oct 2008 04:12:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-10-31T04:12:50Z</dc:date>
    <item>
      <title>Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722697#M1108846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I have field called Registratio No. in which i can enter only Numbers, '/ 'and ' *' apart from these 3 if i enter any other special characters it has to through a  error message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;how to wite code for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have given CHAR 16 for this field&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanku&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 04:12:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722697#M1108846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T04:12:50Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722698#M1108847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Pranu,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can proceed in the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;1. Declare are constant variable with those 3 special character.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: LC_VAR TYPE STING VALUE '~!@#$%^&amp;amp;*()-+={}[]\|'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. From the Screen/UI in the PAI event, you have to write a module to check the syntax.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This is the code snippet: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if lv_value CA lc_var.&lt;/P&gt;&lt;P&gt;message s(messgae_no) Display like 'E'.&lt;/P&gt;&lt;P&gt;&amp;lt; Further Logic for error handling &amp;gt;&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can put here any branching instruction by either call screen transaction or anything else.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Have a look at this Demo Code: DEMO_DYNPRO_FIELD_CHAIN&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will help. &lt;/P&gt;&lt;P&gt;Samantak.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 04:38:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722698#M1108847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T04:38:57Z</dc:date>
    </item>
    <item>
      <title>Re: Validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722699#M1108848</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; DATA: LC_VAR1 TYPE STRING  VALUE ' -*/'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; if ZTAB2-REGNO NA lc_var1.&lt;/P&gt;&lt;P&gt;  message E010(ZMSG) with 'Enter Valid Registration Number'.&lt;/P&gt;&lt;P&gt;Endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;as pre the code u have given me it is accepting only if i enter any one of the special character i specified in the local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but my requirement is it should not accept if i give any other special character apart from the characters i specified in the local variable.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it should accept me if i don't enter any special character also&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PLZ help me my code is&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 31 Oct 2008 06:55:45 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/4722699#M1108848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-10-31T06:55:45Z</dc:date>
    </item>
  </channel>
</rss>

