on 2009 Sep 09 12:06 PM
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.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
23 | |
1 | |
1 | |
1 | |
1 | |
1 | |
1 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.