Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Validate email from FD01

carlos_laborda
Explorer
0 Likes
554

Hi experts :

I have to validate some fields when creating / modifying customer data from transactions FD01/FD02.

I'm using the FM EXIT_SAPMF02D_001 from enhancement SAPMF0D because I have to do these validations when saving the data, at the end of the process.

My problem is that one of the fields to validate is email, which is not available there (not in KNA1 as the other fields to be validated).

This is not a problem if t-code is FD02 (as can check table ADR6 using KNA1-ADNRN), but I don't know how to access email address if t-code is FD01.

Can anybody help me?.

Thanks in advance,

Carlos.

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
484

check the below links

[https://wiki.sdn.sap.com/wiki/display/Snippets/E-MAIL%20Validation]

[;

3 REPLIES 3
Read only

Former Member
0 Likes
484

take adrnr from kna1 and pass it to adr6, validate the email.

Read only

0 Likes
484

Thanks for your answer, but if users are creating a new customer, there is no entry in KNA1-ADRNR, so can access table ADR6.

This only works when t-code is FD02, my problem is when creating the customer (the first time).

Read only

Former Member
0 Likes
485

check the below links

[https://wiki.sdn.sap.com/wiki/display/Snippets/E-MAIL%20Validation]

[;