<?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: Email validation in screen input in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363325#M523003</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Virat , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    There are two ways you can validate your fields , one by the value checks and the other by the entry check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The value check you can do by using a select statement on the table and then checking for the existance of that field in the list you got from select . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The other way is validating the screen field for a correct email id . the code fore which is given below . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Else for sample you can use the logic in the given code for checking an email id in input screen .&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 check_email&lt;/P&gt;&lt;P&gt;   USING    u_record_from_buffer_h TYPE zct_str_h&lt;/P&gt;&lt;P&gt;   CHANGING ct_tab_msg TYPE zct_str_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Local data declarations&lt;/P&gt;&lt;P&gt;  DATA: l_wa_msg TYPE LINE OF zct_tab_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF u_record_from_buffer_h-e_mail CA&lt;/P&gt;&lt;P&gt;        '/,%,*,$,^,#,(,),!,~,``,&amp;amp;,-,=,+,[,],:,;,",&amp;lt;,&amp;gt;,?,/,|,\'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Do the error handling&lt;/P&gt;&lt;P&gt;    l_wa_msg-return_code = con_rc_ppt_diff_e_mail.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_class   = con_msg_class.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_type    = con_msg_error.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_number  =  011.&lt;/P&gt;&lt;P&gt;    l_wa_msg-param1  =  u_record_from_buffer_h-e_mail.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE l_wa_msg TO ct_tab_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " check_email&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;Revert if further help needed !&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;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 14 Jun 2007 10:48:05 GMT</pubDate>
    <dc:creator>former_member196299</dc:creator>
    <dc:date>2007-06-14T10:48:05Z</dc:date>
    <item>
      <title>Email validation in screen input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363322#M523000</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i want's to validate email id and postcode in screen input field, does any budy have a complete code for it please forward it.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Mayatra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:36:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363322#M523000</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T10:36:59Z</dc:date>
    </item>
    <item>
      <title>Re: Email validation in screen input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363323#M523001</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;Post code is always validated based on the country&lt;/P&gt;&lt;P&gt;You can't validate that field alone&lt;/P&gt;&lt;P&gt;so declare it as some ADRC table field and validate against the Country and Postal code&lt;/P&gt;&lt;P&gt;Similarly you can declare the Mail ID field as&lt;/P&gt;&lt;P&gt;ADR6-SMTP_ADDR field and validate against this ADRC table&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward points for useful Answers&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Anji&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:41:14 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363323#M523001</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T10:41:14Z</dc:date>
    </item>
    <item>
      <title>Re: Email validation in screen input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363324#M523002</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;types: ty_email TYPE mailaddress. "Mail ID&lt;/P&gt;&lt;P&gt;Data : G_mailID TYPE ty_email,       &lt;/P&gt;&lt;P&gt;SELECT-OPTIONS: p_email FOR G_mailID NO INTERVALS .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Just give like this.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:47:33 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363324#M523002</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-14T10:47:33Z</dc:date>
    </item>
    <item>
      <title>Re: Email validation in screen input</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363325#M523003</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Virat , &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    There are two ways you can validate your fields , one by the value checks and the other by the entry check .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The value check you can do by using a select statement on the table and then checking for the existance of that field in the list you got from select . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   The other way is validating the screen field for a correct email id . the code fore which is given below . &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   Else for sample you can use the logic in the given code for checking an email id in input screen .&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 check_email&lt;/P&gt;&lt;P&gt;   USING    u_record_from_buffer_h TYPE zct_str_h&lt;/P&gt;&lt;P&gt;   CHANGING ct_tab_msg TYPE zct_str_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Local data declarations&lt;/P&gt;&lt;P&gt;  DATA: l_wa_msg TYPE LINE OF zct_tab_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF u_record_from_buffer_h-e_mail CA&lt;/P&gt;&lt;P&gt;        '/,%,*,$,^,#,(,),!,~,``,&amp;amp;,-,=,+,[,],:,;,",&amp;lt;,&amp;gt;,?,/,|,\'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*-- Do the error handling&lt;/P&gt;&lt;P&gt;    l_wa_msg-return_code = con_rc_ppt_diff_e_mail.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_class   = con_msg_class.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_type    = con_msg_error.&lt;/P&gt;&lt;P&gt;    l_wa_msg-msg_number  =  011.&lt;/P&gt;&lt;P&gt;    l_wa_msg-param1  =  u_record_from_buffer_h-e_mail.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  MOVE l_wa_msg TO ct_tab_msg.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDFORM.                    " check_email&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;Revert if further help needed !&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;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Ranjita&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 14 Jun 2007 10:48:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-validation-in-screen-input/m-p/2363325#M523003</guid>
      <dc:creator>former_member196299</dc:creator>
      <dc:date>2007-06-14T10:48:05Z</dc:date>
    </item>
  </channel>
</rss>

