cancel
Showing results for 
Search instead for 
Did you mean: 

SAP MAIL

Former Member
0 Kudos

Hi,

I am using the SO_OBJECT_SEND funtion module to send mails. I would like to know how to send mails to recepients as a carbon copy (CC) and blind carbon copy(BCC). I would also like to know to change the from id.(It seems to take the SAP Login name as the id) Kindly advice. Thank you.

Accepted Solutions (1)

Accepted Solutions (1)

jayanthi_jayaraman
Active Contributor
0 Kudos

Hi,

While using so_object_send, for 'Receivers' table you need to refer SOOS1.If you check that table,you can find

fields SNDBC(Send as a blind copy), SNDCP(Send: As copy).

So while appending the Receiver table,just make it

receiver-SNDCP = 'X'.

similarly,

receiver-SNDBC = 'X'.

Hope this helps.

Answers (4)

Answers (4)

Former Member
0 Kudos

originator = 'SAPSERVER@SOMEWHERE.COM'

ORIGINATOR-TYPE = 'U'

The above works...The type has to be U only then we can give a regular email address as the from address I suppose. Thanks for your input again.

Thiru

Former Member
0 Kudos

Hi jayanthi, Thank you, SNDCP and SNDBC worked. hey Rich, could you please let me know how to change the from address in SO_NEW_DOCUMENT_ATT_SEND_API1, SO_NEW_DOCUMENT_SEND_API1 and Benita could u ellaborate on inparameter operator. Thanks for your inputs.

Former Member
0 Kudos

Hi,

I've used the function module like this, instead of putting sender into import parameter SENDER, I used

import parameter ORIGINATOR( my mistake, I think I said OPERATOR yeasterday). SENDER contains a user in SU01 and the user has an E-Mail. This worked for me, when the mail was sent, the sender was the e-mail given for this user.

CALL FUNCTION 'SO_OBJECT_SEND'

EXPORTING

  • FOLDER_ID = ' '

  • FORWARDER =

OBJECT_FL_CHANGE = OBJECT_FL_CHANGE

OBJECT_HD_CHANGE = OBJECT_HD_CHANGE

OBJECT_TYPE = DOCUMENT_TYPE

OUTBOX_FLAG = PUT_IN_OUTBOX

  • SENDER = SENDER

===> ORIGINATOR = SENDER

ORIGINATOR_TYPE = 'B'

IMPORTING

OBJECT_ID_NEW = OBJECT_ID

SENT_TO_ALL = SENT_TO_ALL

TABLES

OBJCONT = OBJECT_CONTENT

OBJHEAD = OBJECT_HEADER

OBJPARA = OBJECT_PARA

OBJPARB = OBJECT_PARB

RECEIVERS = REC_TABLE

EXCEPTIONS

OBJECT_NOT_SENT = 15

OBJECT_TYPE_NOT_EXIST = 17

OPERATION_NO_AUTHORIZATION = 21

PARAMETER_ERROR = 23

TOO_MUCH_RECEIVERS = 73

OTHERS = 1000.

CASE SY-SUBRC.

Br Benita

Former Member
0 Kudos

Hi,

to change the sender you can use the inparameter

OPERATOR and set it to another user. //Br Benita

RichHeilman
Developer Advocate
Developer Advocate
0 Kudos

It uses SY-UNAME the whole way thru. I don't think that there is a way to override this.

Also, you may want to use the following function modules instead.

SO_NEW_DOCUMENT_ATT_SEND_API1

SO_NEW_DOCUMENT_SEND_API1

Regards,

Rich Heilman