Skip to Content
author's profile photo Former Member
Former Member

SAP MAIL

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.

Add a comment
10|10000 characters needed characters exceeded

Related questions

5 Answers

  • Best Answer
    Posted on Jun 09, 2005 at 12:29 PM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Jun 09, 2005 at 12:31 PM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 09, 2005 at 02:03 PM

    Hi,

    to change the sender you can use the inparameter

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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2005 at 05:11 AM

    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.

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      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

  • author's profile photo Former Member
    Former Member
    Posted on Jun 10, 2005 at 08:06 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.