Ansicht
Dokumentation

ABENPRED_FUNCTION_MATCHES_ABEXA - PRED FUNCTION MATCHES ABEXA

ABENPRED_FUNCTION_MATCHES_ABEXA - PRED FUNCTION MATCHES ABEXA

General Material Data   BAL_S_LOG - Application Log: Log header data  
This documentation is copyright by SAP AG.
SAP E-Book

- Predicate Function matches

This example demonstrates the predicate function matches.

Source Code

Execute

Description

The program checks the formal correctness of an entered e-mail address by comparing it with regular expressions.

The first regular expression checks for standard e-mail addresses without special characters, whereas the second regular expression performs a more lenient syntax check in accordance with RFC 822.

Even the second check, which uses a relatively simple regular expression for the example, is not always compatible with all e-mail addresses that would be possible in accordance with RFC 822.

The program DEMO_VALIDATE_RFC_822_ADDRESS uses a regular expression taken from the Internet, which is designed to recognize all e-mail addresses allowed by RFC 822. The regular expression here was written originally for Perl and has more than 6000 characters. The program is therefore an example of how not to use regular expressions in ABAP.






Addresses (Business Address Services)   RFUMSV00 - Advance Return for Tax on Sales/Purchases  
This documentation is copyright by SAP AG.

Length: 1297 Date: 20240425 Time: 013446     sap01-206 ( 28 ms )