Skip to Content

Archived discussions are read-only. Learn more about SAP Q&A

To send email out of SAP

Hi Experts,

I have used following code to send email out of SAP.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = lwa_docdata

document_type = lc_pdf

put_in_outbox = 'X'

commit_work = 'X'

TABLES

object_content = li_content

receivers = li_receiver

EXCEPTIONS

too_many_receivers = 1

document_not_sent = 2

document_type_not_exist = 3

operation_no_authorization = 4

parameter_error = 5

x_error = 6

enqueue_error = 7

OTHERS = 8.

IF sy-subrc EQ 0.

SUBMIT rsconn01 WITH mode = 'INT'

WITH output = 'X'

AND return.

ENDIF.

The problem is when i use submit rsconn01.All the send request which are in queue will be sent and i am getting all those mail details in my inbox of SBWP. I want to get only details of mail which i sent.

If i do not use submit rsconno1,the send status in sbwp will be 'waiting'.so i have to use submit rsconno1.

Please help me on this

Regards,

Umesh J D

Moderator Message: Questions related to Sending Mails have been extensively discussed in these forums. Please search for relevant information.

Edited by: kishan P on May 19, 2011 12:08 PM

Former Member
Not what you were looking for? View more on this topic or Ask a question