Skip to Content

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

SO_NEW_DOCUMENT_SEND_API1

Experts,

The FM SO_NEW_DOCUMENT_SEND_API1 is creating an outgooing email entry in my SAP outbox but I wan it to directly send email to an internet address. Is there any parameter that i missed to pass? Below is my code

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = maildata

document_type = 'HTM'

put_in_outbox = 'X'

COMMIT_WORK = 'X'

TABLES

  • object_header = mailtxt

object_content = mailtxt

receivers = mailrec

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.

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