Application Development 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: 

Function "Reply to" when sending a mail

Former Member
0 Kudos

Hi experts,

We send e-mails to vendors using function modules "SO_NEW_DOCUMENT_ATT_SEND_API1".

Those e-mails are sent at night by a generic user.

We would like that, if the vendor replies to an e-mail, its answer is not sent to the generic user address, but to the purchaser address.

My question is the following one : is there any way to define a "reply to" address when sending an e-mail from SAP ? (maybe by using another function module ?)

Thanks for your help !

Pippa.

1 ACCEPTED SOLUTION

oliver_wurm
Active Participant
0 Kudos

Hi Pippa,

if you look into function module "SO_NEW_DOCUMENT_ATT_SEND_API1" you will find that all it does is to call "SO_DOCUMENT_SEND_API1". This function module has importing Parameters for SENDER and SENDER_ADDRESS_TYPE. So changing to that function module should be very easy and allows to specify who is the Sender.

Regards

Oliver

3 REPLIES 3

prad_k
Explorer
0 Kudos

You can use FM SO_DOCUMENT_SEND_API1 to pass sender email ID of your choice.

Former Member
0 Kudos

What is the problem you are facing while using your FM SO_NEW_DOCUMENT_ATT_SEND_API1 and passing Email Ids in  RECEIVERS table parameter?

Though there are other better techniques available but this FM should work also.

oliver_wurm
Active Participant
0 Kudos

Hi Pippa,

if you look into function module "SO_NEW_DOCUMENT_ATT_SEND_API1" you will find that all it does is to call "SO_DOCUMENT_SEND_API1". This function module has importing Parameters for SENDER and SENDER_ADDRESS_TYPE. So changing to that function module should be very easy and allows to specify who is the Sender.

Regards

Oliver