<?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/2309080#M505495</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have to check email validations by using function module &lt;/P&gt;&lt;P&gt;input email (char70).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this email i hev to check @ and dot symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this @ symbol is exist after 2nd character onwards.&lt;/P&gt;&lt;P&gt;dot symbol is exist after @ symbol but between @ and dot symbols atleast one character and after dot symbol at least one character should be exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how can i achieve &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i mention my code, this is working fine upto checking @ and dot symbols .&lt;/P&gt;&lt;P&gt;but in this i heve incorporate the logic for findout the postions of @ and dot symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: c_patt1 TYPE c VALUE `@`,&lt;/P&gt;&lt;P&gt;             c_patt2 TYPE c VALUE `.`.&lt;/P&gt;&lt;P&gt;data: str1 type string  value 'abcdefghijklmnopqrstuvwxyz',&lt;/P&gt;&lt;P&gt;       str2 type string,&lt;/P&gt;&lt;P&gt;       str3 type string,&lt;/P&gt;&lt;P&gt;       str4 type string,&lt;/P&gt;&lt;P&gt;       str5 type string,&lt;/P&gt;&lt;P&gt;       str6 type string,&lt;/P&gt;&lt;P&gt;       str7 type string.&lt;/P&gt;&lt;P&gt;  data : atoff type i,&lt;/P&gt;&lt;P&gt;          moff type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not email is initial.&lt;/P&gt;&lt;P&gt;    str2  = email.&lt;/P&gt;&lt;P&gt;    translate str1 to upper case.&lt;/P&gt;&lt;P&gt;    if str2(1) ca str1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      find c_patt1 in section offset atoff of str2 match offset moff.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0  .&lt;/P&gt;&lt;P&gt;        return-message  =  ' no @ symbol'.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        split str2 at c_patt1 into str3 str4.&lt;/P&gt;&lt;P&gt;        find c_patt1 in section offset atoff of str4.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          return-message  =  ' 2 times @ symbol'.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          find c_patt2 in section offset atoff of str2.&lt;/P&gt;&lt;P&gt;          if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            return-message  =  ' no dot symbol'.&lt;/P&gt;&lt;P&gt;            exit.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            str5 = email.&lt;/P&gt;&lt;P&gt;            split str5  at c_patt2 into str6 str7.&lt;/P&gt;&lt;P&gt;            find c_patt2 in section offset atoff of str7.&lt;/P&gt;&lt;P&gt;            if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              return-message  =  '2 times dot symbol'.&lt;/P&gt;&lt;P&gt;              exit.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      return-message = 'enter email start with alphabets'.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    return-message  =  ' enter email id'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any misatke in this code plz correct this .&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Rambabu.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 17 May 2007 10:32:35 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-17T10:32:35Z</dc:date>
    <item>
      <title>validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309080#M505495</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  i have to check email validations by using function module &lt;/P&gt;&lt;P&gt;input email (char70).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this email i hev to check @ and dot symbols.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;in this @ symbol is exist after 2nd character onwards.&lt;/P&gt;&lt;P&gt;dot symbol is exist after @ symbol but between @ and dot symbols atleast one character and after dot symbol at least one character should be exist.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;this is how can i achieve &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;here i mention my code, this is working fine upto checking @ and dot symbols .&lt;/P&gt;&lt;P&gt;but in this i heve incorporate the logic for findout the postions of @ and dot symbols&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;plz help me&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Constants: c_patt1 TYPE c VALUE `@`,&lt;/P&gt;&lt;P&gt;             c_patt2 TYPE c VALUE `.`.&lt;/P&gt;&lt;P&gt;data: str1 type string  value 'abcdefghijklmnopqrstuvwxyz',&lt;/P&gt;&lt;P&gt;       str2 type string,&lt;/P&gt;&lt;P&gt;       str3 type string,&lt;/P&gt;&lt;P&gt;       str4 type string,&lt;/P&gt;&lt;P&gt;       str5 type string,&lt;/P&gt;&lt;P&gt;       str6 type string,&lt;/P&gt;&lt;P&gt;       str7 type string.&lt;/P&gt;&lt;P&gt;  data : atoff type i,&lt;/P&gt;&lt;P&gt;          moff type c.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  if not email is initial.&lt;/P&gt;&lt;P&gt;    str2  = email.&lt;/P&gt;&lt;P&gt;    translate str1 to upper case.&lt;/P&gt;&lt;P&gt;    if str2(1) ca str1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;      find c_patt1 in section offset atoff of str2 match offset moff.&lt;/P&gt;&lt;P&gt;      if sy-subrc &amp;lt;&amp;gt; 0  .&lt;/P&gt;&lt;P&gt;        return-message  =  ' no @ symbol'.&lt;/P&gt;&lt;P&gt;        exit.&lt;/P&gt;&lt;P&gt;      else.&lt;/P&gt;&lt;P&gt;        split str2 at c_patt1 into str3 str4.&lt;/P&gt;&lt;P&gt;        find c_patt1 in section offset atoff of str4.&lt;/P&gt;&lt;P&gt;        if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;          return-message  =  ' 2 times @ symbol'.&lt;/P&gt;&lt;P&gt;          exit.&lt;/P&gt;&lt;P&gt;        else.&lt;/P&gt;&lt;P&gt;          find c_patt2 in section offset atoff of str2.&lt;/P&gt;&lt;P&gt;          if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;            return-message  =  ' no dot symbol'.&lt;/P&gt;&lt;P&gt;            exit.&lt;/P&gt;&lt;P&gt;          else.&lt;/P&gt;&lt;P&gt;            str5 = email.&lt;/P&gt;&lt;P&gt;            split str5  at c_patt2 into str6 str7.&lt;/P&gt;&lt;P&gt;            find c_patt2 in section offset atoff of str7.&lt;/P&gt;&lt;P&gt;            if sy-subrc = 0.&lt;/P&gt;&lt;P&gt;              return-message  =  '2 times dot symbol'.&lt;/P&gt;&lt;P&gt;              exit.&lt;/P&gt;&lt;P&gt;            endif.&lt;/P&gt;&lt;P&gt;          endif.&lt;/P&gt;&lt;P&gt;        endif.&lt;/P&gt;&lt;P&gt;      endif.&lt;/P&gt;&lt;P&gt;    else.&lt;/P&gt;&lt;P&gt;      return-message = 'enter email start with alphabets'.&lt;/P&gt;&lt;P&gt;      exit.&lt;/P&gt;&lt;P&gt;    endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    return-message  =  ' enter email id'.&lt;/P&gt;&lt;P&gt;    exit.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;if any misatke in this code plz correct this .&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;Rambabu.A&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 10:32:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309080#M505495</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T10:32:35Z</dc:date>
    </item>
    <item>
      <title>Re: validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309081#M505496</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;U can validate an email ID with this FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;no need for any lengthy codings.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Try with FM - &amp;gt; &amp;lt;b&amp;gt;SX_INTERNET_ADDRESS_TO_NORMAL&amp;lt;/b&amp;gt; to validate the email address.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;TYP ADDRESS &lt;/P&gt;&lt;P&gt;INT xyz@yahoo.com &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now run the FM and see...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Reshma&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 10:34:42 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309081#M505496</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T10:34:42Z</dc:date>
    </item>
    <item>
      <title>Re: validations</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309082#M505497</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;CHECK THIS SAMPLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : TEXT(70) VALUE 'ABC@DEF.COM',&lt;/P&gt;&lt;P&gt;       VAR1(20),&lt;/P&gt;&lt;P&gt;       VAR2(50),&lt;/P&gt;&lt;P&gt;       VAR3(25),&lt;/P&gt;&lt;P&gt;       VAR4(25).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SPLIT TEXT AT '@' INTO VAR1 VAR2.&lt;/P&gt;&lt;P&gt;IF VAR2 CA '@'.&lt;/P&gt;&lt;P&gt;  MESSAGE 'INCORRECT ID' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ELSEIF VAR2 CA '.'.&lt;/P&gt;&lt;P&gt;  SPLIT VAR2 AT '.' INTO VAR3 VAR4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF VAR3 IS INITIAL.&lt;/P&gt;&lt;P&gt;MESSAGE 'INCORRECT ID' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ELSEIF VAR4 CA '.'.&lt;/P&gt;&lt;P&gt;MESSAGE 'INCORRECT ID' TYPE 'E'.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REGARDS&lt;/P&gt;&lt;P&gt;SHIBA DUTTA&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 17 May 2007 10:53:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/validations/m-p/2309082#M505497</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-17T10:53:06Z</dc:date>
    </item>
  </channel>
</rss>

