Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

email validation

Former Member
0 Likes
407

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.

2 REPLIES 2
Read only

GauthamV
Active Contributor
0 Likes
372

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]

Read only

Former Member
0 Likes
372

Check FM :SX_INTERNET_ADDRESS_TO_NORMAL