Skip to Content

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

Regarding sending email to outlook....

Hi Gurus,

I am using function module called "SO_NEW_DOCUMENT_ATT_SEND_API1" to send email to outlook via SAP. Now, if I want to finally have the email send after the function modlue is executed, what do I use ? Do I use commit work as in (1) or report RSCONN01 as in (b) ?

(a)

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = doc_chng

put_in_outbox = ' '

TABLES

packing_list = objpack

object_header = objhead

contents_bin = objbin

contents_txt = objtxt

CONTENTS_HEX = objhex " SOLIX OPTIONAL

receivers = reclist

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.

commit work.

(b)

CALL FUNCTION 'SO_NEW_DOCUMENT_ATT_SEND_API1'

EXPORTING

document_data = doc_chng

put_in_outbox = ' '

TABLES

packing_list = objpack

object_header = objhead

contents_bin = objbin

contents_txt = objtxt

CONTENTS_HEX = objhex " SOLIX OPTIONAL

receivers = reclist

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.

SUBMIT RSCONN01

WITH mode = 'INT'

WITH output = ' '

AND RETURN.

Please suggest which one is correct ?

Also where can I monitor the email queues in SAP ?

Regards,

Rajesh.

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