‎2006 Jul 18 6:17 AM
Hi,
I want to validate a email address which is present in a Char variable. I want to check whether it is in accurate format or not. Please suggest me some function module or code which can do this job for me.
Please Help me out.
Thank You in Advance.
‎2006 Jul 18 7:33 AM
Hi,
Try with FM <b>SX_INTERNET_ADDRESS_TO_NORMAL</b> to validate the email address.
<b>TYP ADDRESS
INT vijay@yahoo.com</b>
Now run the FM and see...
Regards
vijay
‎2006 Jul 18 6:41 AM
Hi Eswar,
I think there is no such FM available to validate email address. If it is email id linked with SAP user id then u can get it USR* tables and can validate or if it is a external mail id then try like this.
1.Pass the mail id to a string.
2.check for the @ if exists,
3.go on check for dot'.'
4.if succeed split at this and get the domain into another variable .
5.maintain a internal table with valid domains like com ,net,biz,tv and check the variable of step 4 with this.
Like thie you can build logic around this.
Regards,
Raghav
‎2006 Jul 18 6:53 AM
Hi
If you want to validate if the email ID is maintaine din SAP or not then try this FM
ISA_CONTACT_PERSON_FROM_EMAILHope This Helps
Anirban
‎2006 Jul 18 7:33 AM
Hi,
Try with FM <b>SX_INTERNET_ADDRESS_TO_NORMAL</b> to validate the email address.
<b>TYP ADDRESS
INT vijay@yahoo.com</b>
Now run the FM and see...
Regards
vijay