E-Mail Address Checks

Use

The function module SX_INTERNET_ADDRESS_TO_NORMAL is called to check and format e-mail addresses. The following is checked in this function module:

  • The system first checks whether the e-mail address contains the @ character. If it does not, an error message is displayed. The other operations depend on the success of this first check. The address is only broken down and checked further if the @ is found.

  • The formats of the components Local (name before the @), Domain (domain after the @), and comment are then checked. The valid formats are:

    • Local@Domain

    • <Local@Domain>

    • Comment <Local@Domain>

    • "Comment" <Local@Domain>

    • Local@Domain (Comment)

A few special characters, such as the period, are allowed within the Local and Domain components. An error message is returned if non-permitted special characters are entered. A standardized form is also inferred by the function module. The comment is eliminated and the domain is treated as case-insensitive.

The first 20 characters of the standardized form are converted into upper case letters and stored in the search field ADR6-SMTP_SRCH. This enables a superset of the actual hit list to be displayed quickly when you search with an e-mail address entry. The exact hit list is then determined by comparing the search string with the exact field values.

Parameters can be set in the calling application to specify whether a case-insensitive search is also to be carried out in the local part in this comparison.