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
Hi Archana,
You will get the sent mail status in SOST tcode.
Regards,
Pawan
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
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