cancel
Showing results for 
Search instead for 
Did you mean: 

How to pick receiver email address from contact screen?

Former Member
0 Kudos

We want to be able to pick the email address from the customer contact screen, not necessarily from the default on the customer address screen. I've looked a long time to try to find where/when in SAP it gets the email address and how to manipulate it. Rel 6.20 ABAP/ 4.7 APPS. Does anyone know?

thanks!

Joy

Accepted Solutions (0)

Answers (2)

Answers (2)

Former Member
0 Kudos

Hi Raj,

Thanks very much for your response. Do you know where in VA01/VA02 I can put my own code to populate SMTP_ADDR ?

Joy

Lakshmant1
Active Contributor
0 Kudos

Hi Joy,

You can use the Enhancement SAPMF02D( SMOD) if you want to use SMOD/CMOD for populating address fields.

If you want to use BADI you can use the BADI :CUSTOMER_ADD_DATA Additional Data at Customers

to populate the address fields.

Hope this helps.

Thanks,

Lakshman.

Former Member
0 Kudos

Hello Lakshman,

Thank you very much for your response. I need to change the email address when creating a sales order rather than a customer. Do you know in what code I could change the email address?

Thank you much.

Joy

Former Member
0 Kudos

Hi Joy,

You will find the Email Address in the "SMTP_ADDR" field of the table "ADR6". To fetch this field you need to get the Address Number for the Contact from the "ADDRNUMBER" field in "BUT020" table by passing the Contact details into "PARTNER" and "XDFADR" fields. If you need Standard Address then pass value "X" into "XDFADR" field. Leave it blank to get Address Independent email.

Hope this solves your problem.

Regards,

Raj.