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

E-Mail id verification

Dear all,

Is there any Function module to validate the e-mail id parameter which I'm having in my selection screen parameter.

Regards

Srini

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 11:04 AM

    Hi Srini,

    Check the program in below link

    http://www.saptechnical com/Tutorials/Others/ValidateEmailID/Webservice.htm

    Regards,

    Syf

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 11:03 AM

    Hi,

    Which email ID you want to verify? If its a email address maintained in user master in SU01, you can use following BAPI.

    BAPI_USER_GET_DETAIL

    pass the user name to it u will get corresponding mail address in addsmtp .

    Thanks,

    Supriya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 11:18 AM

    Hi,

    But the email id will be stored somewhere in the system rt? E.g. vendor mail id is stored in the vendor master.

    Supriya.

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 12:09 PM

    Hi Srini,

    I am not sure of any FM, but if I assume correctly you have a generic e-mail id to verify.

    If so, why don't you try using something like the code below.

    IF p_email NP '@.*'.

    • Show message for Invalid E-Mail ID

    MESSAGE 'Invalid E-Mail ID.' TYPE 'E'.

    ENDIF.

    I agree that this is a very basic validation. But, I go by the rule that make the program as generic as it is required.

    In case of a usual e-mail id like say 'someone@somewhere'(add .com etc after somewhere) the only validation you can use is that it should have a '@' and then a web server id like 'emailserver.co'.

    In case you are going to use only a specific mail server, like your company, you can add that restriction in the above pattern, e.g.,

    IF p_email NP '*@xyz.co'. -


    > add specific domain for your mail IDs

    • Show message for Invalid E-Mail ID

    MESSAGE 'Invalid E-Mail ID.' TYPE 'E'.

    ENDIF.

    Regards

    Barada

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 23, 2008 at 04:03 PM

    Hi Srini,

    I think function module SX_INTERNET_ADDRESS_TO_NORMAL can be useful.

    Regards,

    Darshan Mulmule

    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.