cancel
Showing results for 
Search instead for 
Did you mean: 

Error Code 836 by sending over SO_NEW_DOCUMENT_SEND_API1

Former Member
0 Kudos

Hi,

my programm sending emails over SO_NEW_DOCUMENT_SEND_API1.

The Code is:

s_receivers-receiver = 'my.email at my-company.de.

s_receivers-rec_type = 'U'.

s_receivers-express = 'X'.

APPEND s_receivers TO t_receivers.

document_data-obj_descr = 'Hello World'.

"Body

s_content = 'Hello World'.

APPEND s_content TO t_content.

"Sending Mail.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = document_data

put_in_outbox = 'X'

TABLES

object_content = t_content

receivers = t_receivers

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' AND RETURN.

But the System doesn't send these mail and produce an Error code 836 (Contact the Administrator).

The Details of these error 836 is that the "Sending abord by Administrator". But when I restart the sending

of these Message, the Message will be send perfectly.

Whats wrong? Please, could anybody help me

Edited by: Thomas Bucklitsch on May 16, 2008 2:54 PM

Accepted Solutions (1)

Accepted Solutions (1)

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

From transaction code SCOT you can activate outbound tracing and usually get a little more error details. There are many things that could be the cause of the problem. Perhaps there is a problem with authorization on the send batch job (or the job is failing for some other reason). That could explain why you can perform the send manually.

But why use SO_NEW_DOCUMENT_SEND_API1 at all. This is the older API for 4.6C and lower. As of 6.10 we have the BCS classes. These are better performing and allow for the send immediate option - thereby getting around the need for the batch job all together. Since you are posting this question in the Web Dynpro ABAP forum I am assuming that you are working with NetWeaver 7.0 so you would certainly have the BCS classes.

Former Member
0 Kudos

Hello Thomas,

thanks for your answer. I am a beginner in Abap and Webdynpro for Abap.

Perhaps you have an code example for me

Thank You very much.

thomas_jung
Developer Advocate
Developer Advocate
0 Kudos

Sure. Here is a blog with code samples as well some discussion around the setup and workings of SCOT:

[/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface|/people/thomas.jung3/blog/2004/09/08/sending-e-mail-from-abap--version-610-and-higher--bcs-interface]

Answers (0)