‎2009 May 14 5:31 AM
Hi,
I have to validate the email id. THe format of the mail id should be @.* The database field is od character type.I am doing the validation like this:
l_email TYPE c,
l_email1 TYPE c,
l_email2 TYPE c VALUE '@',
l_email3 TYPE c VALUE '.'.
CONCATENATE l_email1 l_email2 l_email1 l_email3 l_email1
INTO l_email.
IF ( it_tab-emailid NS l_email ).
MESSAGE e001(zmessage) WITH text-t12.
ENDIF.
But its not working.I cant change the database field to type STRING.Please suggest the solution.
‎2009 May 14 5:36 AM
Plz SEARCH in SCN before posting ,you can get so many posts like these.
[email validation|https://forums.sdn.sap.com/click.jspa?searchID=26084721&messageID=6337117]
‎2009 May 14 5:40 AM