Application Development and Automation Discussions
Join the discussions or start your own on all things application development, including tools and APIs, programming models, and keeping your skills sharp.
cancel
Showing results for 
Search instead for 
Did you mean: 
Read only

Time SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Likes
676

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

1 ACCEPTED SOLUTION
Read only

Former Member
0 Likes
605

hi amine,

after FM SO_NEW_DOCUMENT_SEND_API1

try this command also.

submit rsconn01 with mode = 'INT' and return.

4 REPLIES 4
Read only

Former Member
0 Likes
606

hi amine,

after FM SO_NEW_DOCUMENT_SEND_API1

try this command also.

submit rsconn01 with mode = 'INT' and return.

Read only

Former Member
0 Likes
605

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

Read only

Former Member
0 Likes
605

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...

Read only

Former Member
0 Likes
605

Thanks a lot guys.

Amine