Skip to Content
author's profile photo Former Member
Former Member

validate email address

hi,

i am uploading customer master in which i want to validate email address before upload. how to do this.

rgds

Madhu

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2007 at 07:33 AM

    Hi Madhu,

    Chk this solution from other thread

    llen = strlen( lemail ).

    do llen times.

    lchr = lemail(1).

    case lchr

    when '@'.

    lasterix = lasterix + 1.

    when '.'

    ldot = ldot + 1.

    when others.

    *checking for any wierd char apart from alphanumeric.

    if lchr na sy-abcde and lchr na '0123456789'.

    lerror = 'Y'.

    exit.

    endif.

    endcase.

    shift lemail.

    enddo.

    if ldot ne 2 or lasterix ne 1.

    lerror = 'Y'.

    endif.

    OR

    check FMs

    ISA_CONTACT_PERSON_FROM_EMAIL

    also chk this:

    SX_INTERNET_ADDRESS_TO_NORMAL

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2007 at 07:36 AM

    Hi Madhu,

    The best way is to validate the E-mail address for @ (should be 2nd character or at later) and . after @.

    As you can't validate the complete e-mail ID.

    Regards,

    Atish

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jul 03, 2007 at 07:38 AM
    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.