Application Development 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: 

SO_NEW_DOCUMENT_SEND_API1

former_member189629
Active Contributor
0 Kudos

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.

2 REPLIES 2

0 Kudos

Nw,

Make sure your system is all set. Check over the transaction SCOT if your email was sent.

Is there any exception coming up?

Regards

Alexandre

former_member189629
Active Contributor
0 Kudos

solved myself. just had to uncheck the put in outbox parameter