‎2009 Mar 03 8:41 AM
Hi,
We're using function modules SO_DOCUMENT_SEND_API1 and SO_NEW_DOCUMENT_ATT_SEND_API1 to send email notifications. When our program runs it gets the user name who run the program and uses his email address to send email notifications. Our problem is it also gets the first name and last name of the user and uses it as display name to the email. For example, the user used is USER1. The first name, last name and email address of USER1 is My, User and myuser @ email.com respectively. When I get the email, notification the email sender is "My User" <myuser @ email.com>.
I want to disable the part where the function module gets the first name and last name of the user id used to run the progam and assigns it as the display name of the email. How will I do it?
‎2009 Mar 03 8:48 AM
Try to set the parameter 'SENDER_ADDRESS' with the value that you prefer.
‎2009 Mar 03 8:50 AM
Hi Ierardi Leo,
I already set value to that parameter. I also assigned SMTP to sender_address_type.
‎2009 Mar 03 11:40 AM
Anyone has an idea?
Are there other function modules that sends email notification?
‎2009 Mar 04 12:35 AM
‎2009 Mar 04 1:19 AM
‎2009 Mar 04 4:04 AM
Hi,
You have to set the sender in your program then. If no sender_address is specified, SAP will take the user's login details.
exporting
document_data = doc_chng
put_in_outbox = 'X'
sender_address = Email_address
sender_address_type = 'SMTP'
commit_work = 'X'
Regards.
Edited by: Dev Parbutteea on Mar 4, 2009 5:06 AM
‎2009 Mar 04 4:09 AM