‎2014 Dec 09 3:57 PM
Hi experts,
I am using FM SO_NEW_DOCUMENT_SEND_API1 in a program to send mails from SAP to end users.
The emails arrive between 5 or 10 minutes after the program execution. The program make only 3 seconds to be exectued.
Why such a delay?
What can i do to reduce this delay?
Thanks.
Amine
‎2014 Dec 09 6:41 PM
hi amine,
after FM SO_NEW_DOCUMENT_SEND_API1
try this command also.
submit rsconn01 with mode = 'INT' and return.
‎2014 Dec 09 6:41 PM
hi amine,
after FM SO_NEW_DOCUMENT_SEND_API1
try this command also.
submit rsconn01 with mode = 'INT' and return.
‎2014 Dec 09 7:01 PM
Hi Amine ,
Emails are submitted to be sent to outside world by the FM SO_NEW_DOCUMENT_SEND_API1 but they are sent by program rsconn01 to outside world which is scheduled in the system .
Time to send the email depends on how frequent the program rsconn01 is scheduled.
To take care of this , take Abdul's suggestion and submit the program after executing the FM for sending email .
Thanks
Manik
‎2014 Dec 09 7:48 PM
Just a comment,
In your next programs try to use CL_BCS class to send e-mails.
You can find a lot of stuff in abap forum...
‎2014 Dec 10 8:56 AM