cancel
Showing results for 
Search instead for 
Did you mean: 

Get customer E-MAIL id in sap script

Former Member
0 Kudos

Hi,

I am doing a customer statement by standard form and as well as i created a program for send the output to customer via email with the attachment.but here i am enter my customer email id manualy but my user ask me to get the email id automaticaly based on the customer statement form he is running.so how to get the customer email main by default based on the form.pls help me to solve the issues.

Thanks,

Rajendra.

Accepted Solutions (0)

Answers (3)

Answers (3)

Former Member
0 Kudos

Can you provide the details of standard program..and how are you calling it.

Former Member
0 Kudos

For user email id we followed the following procedure.

USR21: TO GET ADDRESS NUMBER OF USER ID

ADR6: TO GET EMAIL ADDRESS OF THE ADDRESS NUMBER

Similarly u can get the customer email id, by getting the ADRNR from kna1 table

and using this u can get from ADR6 table u can get the email address.

Regards

Former Member
0 Kudos

Hi Ravi,

Hi i am running a STD program inside my customised program.but my selection screen of customer is in STD program and i want to get the mail id in my customised program.so how to get the selected customer no for the STD prog to the customised prog to get the mail id of customer.

Thanks,

Rajendra.

Former Member
0 Kudos

Hi Rajendra,

I usually get email addresses in table ADR6. Just enter the address number and you can retrieve its email address. Maybe you can do a select to retrieve this.

Hope this helps even a bit.

Cris