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

SO_DOCUMENT_SEND_API1 Problem with Display Name

Former Member
0 Likes
938

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?

7 REPLIES 7
Read only

Former Member
0 Likes
882

Try to set the parameter 'SENDER_ADDRESS' with the value that you prefer.

Read only

0 Likes
882

Hi Ierardi Leo,

I already set value to that parameter. I also assigned SMTP to sender_address_type.

Read only

0 Likes
882

Anyone has an idea?

Are there other function modules that sends email notification?

Read only

0 Likes
882

Help pls.

Read only

Former Member
0 Likes
882

not sure about MC_SEND_MAIL.

thanq

Read only

dev_parbutteea
Active Contributor
0 Likes
882

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

Read only

I355602
Product and Topic Expert
Product and Topic Expert
0 Likes
882

This message was moderated.