on 06-09-2005 1:17 PM
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.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
Hi,
to change the sender you can use the inparameter
OPERATOR and set it to another user. //Br Benita
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
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
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
84 | |
10 | |
10 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.