Application Development 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: 

email id validation .

Former Member
0 Kudos

I have to provide select option on the selection screen for the user to enter email ids.

Shall I give 40 character size for email id or any standard one you suggest ?

Then I have to validate like banks and spaces and @ etc symbols in between ... so

Some body might know better than me - could you help ?

Thanks IN ADV.

1 ACCEPTED SOLUTION

Former Member
0 Kudos

You can makre further checks in similar fashion. I am not sure is there is any function to do this.

REPORT  ztest3.

PARAMETERS: p_mail TYPE ad_smtpadr.

AT SELECTION-SCREEN.
  IF p_mail NA '@' OR p_mail NA '.'.
    BREAK-POINT.
  ENDIF.

Here you go..Check this FM

SX_INTERNET_ADDRESS_TO_NORMAL

-Aman

Edited by: Amandeep Bal on Oct 10, 2008 11:15 AM

2 REPLIES 2

Former Member
0 Kudos

You can makre further checks in similar fashion. I am not sure is there is any function to do this.

REPORT  ztest3.

PARAMETERS: p_mail TYPE ad_smtpadr.

AT SELECTION-SCREEN.
  IF p_mail NA '@' OR p_mail NA '.'.
    BREAK-POINT.
  ENDIF.

Here you go..Check this FM

SX_INTERNET_ADDRESS_TO_NORMAL

-Aman

Edited by: Amandeep Bal on Oct 10, 2008 11:15 AM

former_member188685
Active Contributor
0 Kudos

check this function for validation of email address SX_INTERNET_ADDRESS_TO_NORMAL

this function only look for @