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

Check whether the email from SAP has been sent

Hello,

I have developed a requirement where my program will send a PDF document to the external mail id.

Through the program we can set the variables to get the acknowledgement ,which is fine,

But my client is asking, how to get the failure delivery notice which means it could be wrong email id address or

some other problem due to which the email has not been sent,

So the user who runs the report has to get the failure delivery notice same as acknowledgement. (Acknowledgement part I have worked on). Kindly let me know your views on this please.....

I am using SO_DOCUMENT_SEND_API1 function module.

Thanks,

Archana

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

5 Answers

  • Posted on Oct 05, 2010 at 12:59 PM

    Hi Archana,

    You will get the sent mail status in SOST tcode.

    Regards,

    Pawan

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 05, 2010 at 01:00 PM

    Hi!

    You might check out the SapConnect transaction SCOT as well, maybe you can use this.

    Regards

    Tamá

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on Oct 08, 2010 at 01:29 PM

    Hi Archana,

    Thanks for posting this query .

    I am also looking for a solution if email id is wrong.

    Regards,

    Vengal Rao.

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on Oct 08, 2010 at 02:22 PM

    After FM 'SO_DOCUMENT_SEND_API1' call you can send the email immediately by calling the report RSCONN01 . This report has a selection scree parameter OUTPUT , if this has been set to X , the result will be send to basic list .

    Here is sample code

       
     WAIT UP TO 1 SECONDS.
          SUBMIT RSCONN01 WITH MODE = 'INT'
                 WITH OUTPUT = 'X '
                 AND RETURN.
    

    - Tushar Shukla

    Add a comment
    10|10000 characters needed characters exceeded

    • Former Member

      Hi Tushar,

      The report program " RSCONN01 " is generally used in place of SOST . It is used if we want to send emails automatically instead of eveytime going to executing SOST. I am using the same program to execute the email and send in background.

      By selecting 'X' the spool is generated like successful or not.

      But will this spool is send to the email Sendor?

      Thanks,

      Vengal Rao.

  • Posted on Oct 08, 2010 at 09:53 PM

    I donot know whether this fm has any flag which indicates the failure. But you can use the BCS classes and methods where you can capture the failure in the method send .

    For example in this thread check reply given by Aaron Morden.

    Note the part

      sent_to_all = send_request->send( ).
      IF sent_to_all = 'X'.   "if not equal to X then failed
        MESSAGE i022(so).
      ENDIF.
    
    

    For exmples you can goto se38 and search for bcsexample . Its better than this function module because this fm doesnot support all the codepages.

    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.