cancel
Showing results for 
Search instead for 
Did you mean: 

Email address checking not being performed in Web UI (CRM 2007)

Former Member
0 Kudos
75

At present I can enter any e-mail address as there does not seem to be any entry checks. Is this something that can be controlled via config for CRM 2007, or does it have to be coded?.

Anyone.

Jason.

Accepted Solutions (0)

Answers (1)

Answers (1)

Former Member
0 Kudos

This is one solution that I have found:

data matcher type ref to cl_abap_matcher.

matcher = cl_abap_matcher=>create(

pattern = `\w(\.\w)*@(\w\.)(\w{2,4})`

ignore_case = 'X'

text = email ). " Give your email say like ars @ ars....com and check

if matcher->match( ) is initial.

message 'Invalid email Format' type 'I'.

else.

message 'Valid email format' type 'I'.

endif.

But it might not be the best. I think the main problem is that although the e-mail field is held in table CRMD_CUSTOMER_H it's defined as a TEXT70 rather than any data tyep specifically for e-mail. Perhaps I'm wrong in that assumption.

Jas