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

Mail Sending to external email id's

Hi all,

I have written a logic to send mail to external id's .E.g : abc@xyz.com.

I am using the FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send the mail.

When i am checking the transaction SBWP the mail is showing there in the outbox but the status of the message is ' Wait for communication service '.

So,the mail is not reaching the desired email-id.

What could be the possible problems for these..Plz send in your suggestions..

Useful answers will be rewarded.

Thanks in advance.

Arun Chaudhary

Add a comment
10|10000 characters needed characters exceeded

Related questions

3 Answers

  • Best Answer
    author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2007 at 11:00 AM

    Please check with your basis team whether they have configured SCOT for the domain to which you want to send your emails to.

    Also you can monitor the status of your emails using the transaction SOST, Sometimes (based on config again) the emails are only sent if you choose the email and click on send in SOST.

    Regards,

    Srihari

    Message was edited by:

    Srihari Hebbar

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi

      These are the FM for sending external email :-

      SO_DOCUMENT_SEND_API1

      SAPoffice: Send new document with attachments via RFC

      SO_NEW_DOCUMENT_ATT_SEND_API1

      (In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)

      SAPoffice: Send new document with attachments via RFC

      Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.

      SO_NEW_DOCUMENT_SEND_API1

      SAPoffice: Send new document

      Check this sample report

      DATA : BEGIN OF ITAB OCCURS 0,
      PERNR LIKE PA0001-PERNR,
      ENAME LIKE PA0001-ENAME,
      END OF ITAB.
      
      DATA: message_content LIKE soli OCCURS 10 WITH HEADER LINE,
      receiver_list LIKE soos1 OCCURS 5 WITH HEADER LINE,
      packing_list LIKE soxpl OCCURS 2 WITH HEADER LINE,
      listobject LIKE abaplist OCCURS 10,
      compressed_attachment LIKE soli OCCURS 100 WITH HEADER LINE,
      w_object_hd_change LIKE sood1,
      compressed_size LIKE sy-index.
      
      START-OF-SELECTION.
      
      SELECT PERNR ENAME
      INTO CORRESPONDING FIELDS OF TABLE ITAB
      FROM PA0001
      WHERE PERNR < 50.
      
      LOOP AT ITAB.
      WRITE :/02 SY-VLINE , ITAB-PERNR, 15 SY-VLINE , ITAB-ENAME, 50
      SY-VLINE.
      ENDLOOP.
       
      
      * Receivers
      receiver_list-recextnam = 'EXTERNAL-MAIL-ID@YAHOO.COM'. "-->
      * EMAIL ADDRESS
      RECEIVER_list-RECESC = 'E'. "<-
      RECEIVER_list-SNDART = 'INT'."<-
      RECEIVER_list-SNDPRI = '1'."<-
      
      APPEND receiver_list.
      
      * General data
      w_object_hd_change-objla = sy-langu.
      w_object_hd_change-objnam = 'Object name'.
      w_object_hd_change-objsns = 'P'.
      * Mail subject
      w_object_hd_change-objdes = 'Message subject'.
      
      * Mail body
      APPEND 'Message content' TO message_content.
      
      * Attachment
      CALL FUNCTION 'SAVE_LIST'
      EXPORTING
      list_index = '0'
      TABLES
      listobject = listobject.
      CALL FUNCTION 'TABLE_COMPRESS'
      IMPORTING
      compressed_size = compressed_size
      TABLES
      in = listobject
      out = compressed_attachment.
      DESCRIBE TABLE compressed_attachment.
      CLEAR packing_list.
      packing_list-transf_bin = 'X'.
      packing_list-head_start = 0.
      packing_list-head_num = 0.
      packing_list-body_start = 1.
      packing_list-body_num = sy-tfill.
      packing_list-objtp = 'ALI'.
      packing_list-objnam = 'Object name'.
      packing_list-objdes = 'Attachment description'.
      packing_list-objlen = compressed_size.
      APPEND packing_list.
      
      CALL FUNCTION 'SO_OBJECT_SEND'
      EXPORTING
      object_hd_change = w_object_hd_change
      object_type = 'RAW'
      owner = sy-uname
      TABLES
      objcont = message_content
      receivers = receiver_list
      packing_list = packing_list
      att_cont = compressed_attachment. 

      Regards

      Pavan

  • author's profile photo Former Member
    Former Member
    Posted on Oct 01, 2007 at 11:08 AM

    These are the FM for sending external email :-

    SO_DOCUMENT_SEND_API1

    SAPoffice: Send new document with attachments via RFC

    hi,

    SO_NEW_DOCUMENT_ATT_SEND_API1

    (In 4.6C only, You can go to SE37 and click the documentation on how to use it. A sample program is provided there.)

    SAPoffice: Send new document with attachments via RFC

    Note : If you are using FM SO_NEW_DOCUMENT_ATT_SEND_API1 then Export Parameter DOCUMENT_DATA-OBJ_DESCR contains the Subject.

    SO_NEW_DOCUMENT_SEND_API1

    SAPoffice: Send new document

    For more information check the following link:

    http://sap-img.com/fu016.htm

    Regards,

    Bhaskar

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Dec 03, 2007 at 02:39 PM

    THANKS

    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.