SAP® Documentation

Single view

CL_BCS_EMAIL_ADDRESS - Validation of E-Mail Addresses According to RFC 5322

rdisp/max_wprun_time - Maximum work process run time   TXBHW - Original Tax Base Amount in Local Currency  
This documentation is copyright by SAP AG.
SAP E-Book

Functionality

The class analyzes SMTP addresses. Four public methods are provided to do this:

- validate

- validate_domain

- validate_domain_puny

- validate_localpart

Depending on the method used, it checks the local part, the domain, or the full e-mail address. In the validate method, the local part, the domain, and comment and display name, if available, are also checked. The method creates the following normalized form of the address from the local part and the domain:

local@domain (case sensitive)

This enables addresses containing comments to be compared too. The parts of the address are output separately.

The class can analyze the following formats:

1. local@domain

2. Display name <local@domain>

3. local@domain (comment)

Relationships

Example

Output address:

•,,"Test address in test company" <testaddress@testcompany.com>

Result:

•,,Normal form: Testaddress@testcompany.com

•,,Local part: Test address

•,,Domain: testcompany.com

•,,Display name: "Test address in test company"

•,,Comment:

Output address:

•,,Testaddress@testcompany.com (test address in test company)

Result:

•,,Normal form: Testaddress@testcompany.com

•,,Local part: Test address

•,,Domain: testcompany.com

•,,Display name:

•,,Comment: Test address in test company

Notes

Further information

The class orientates itself to the guidelines for SMTP addresses, as specified in RFC 5322.






BAL_S_LOG - Application Log: Log header data   Fill RESBD Structure from EBP Component Structure  
This documentation is copyright by SAP AG.

Length: 1979 Date: 20190617 Time: 154306     sap01-206 ( 18 ms )

Our Service

Looking for Support? Questions?

The

Consolut

Callback-Service

Leave us your contact details and we will call you back. Panels marked with * are mandatory.