cancel
Showing results for 
Search instead for 
Did you mean: 

sending a mail

Former Member
0 Kudos

hello experts,

i have written a report to send the mail to recipient.

but the mail is not reached at the recipient side.

in sost transaction i'm able to see my transmission requests with yellow triangle button.

on selecting the entry,its telling 'WAIT for communication service'.

each time i need to select them separately and send it from sost transaction.

can anyone tell me what can be the problem.is there any way to avoid this lag of time.

Regards,

Accepted Solutions (1)

Accepted Solutions (1)

former_member182041
Active Contributor
0 Kudos

Hello,

If you are using BCS to send emails, do call method 'set_send_immediately' with 'X'. This has to be done just before calling the 'SEND' method. You may check the code below:

DATA: yfierrlog  TYPE REF TO cl_bcs.


* all the emailing code before calling the SEND method*


yfierrlog->set_send_immediately( abap_true ).

TRY.
       CALL METHOD yfierrlog->send
         EXPORTING
           i_with_error_screen =
         RECEIVING
           result              =
     CATCH cx_send_req_bcs .
   ENDTRY.

Regards,

Kumud

Answers (4)

Answers (4)

Former Member
0 Kudos

Hi Namitha,

Write the below code after the FM which sends the email.

SUBMIT rsconn01 WITH mode = 'INT'

                           WITH output = 'X'

                   AND RETURN.

This will trigger the immediate transfer of the email to the receiver system.

Hope this helps.

Kind Regards,

Satish Kanteti

Former Member
0 Kudos

You might check with your Basis specialists on the SCOT/SMTP settings.  Without seeing precisely what you have, it sounds like the email outbound process is not actually running in your SAP instance.

Former Member
0 Kudos

Hi Namitha,

For automatically sending mail like that, you have to ask your basis to schedule the program RSCONN01 with a periodic job.

A Step-by-step to setup a periodic job is given in the below wiki : http://wiki.sdn.sap.com/wiki/display/SI/How+to+define+a+job+for+sending+messages+via+SAPconnect

Alternatively you can use the below statement after your mail sending function module, but this sends out all user's mails which are waiting to be released.

SUBMIT RSCONN01 WITH MODE   = 'INT'

                    WITH OUTPUT = 'X'

                    AND RETURN.

Hope this helps.

Regards,

Karthik D

Former Member
0 Kudos

Hi Namitha,

Which function module are you using to send the mail?

Regards,

Sindhu Pulluru.

Former Member
0 Kudos

Sindhu, one hopes that he is not using a function module to send mail.  BCS is the current SAP email technology.