Application Development and Automation 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: 
Read only

MAIL THRU PROGRAM

Former Member
0 Likes
913

hi sapiens,

I have written a code to send mail to external system.the program is excuting and message is showing sent.when i see it in sap office workprocess .it is telling that "send process still running"

tell me what all the necessary configurations i have to do..i have sent mail from sap system from scot.

but only if i send thru program it is not sending..

6 REPLIES 6
Read only

Former Member
0 Likes
828

Hi,

The BASIS people needs to do the configuration. Get in touch with you BASIS team.

Best regards,

Prashant

Read only

0 Likes
828

ask basis team to see settings in SCOT transaction.

Read only

0 Likes
828

thanks for ur replies .Tell me how to send a mail to external domains. ie

arun@yahoo.com

.what all the things i have to do in scot?

Read only

Former Member
0 Likes
828

Hi

Ask your basis person to check all the settings are OK or not in SCOT Tcode

and send a sample mail from SAP and check in the Inbox, whether it is coming or not

then try to send the program and see

Reward points if useful

Regards

Anji

Read only

Former Member
0 Likes
828

Hi,

you need to send the mail through the SCOT transaction code or else you need to submit a program rsconn01 for auotomate mail sending

See the below code

  • Send the email.

CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'

EXPORTING

document_data = document_data

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.

IF sy-subrc <> 0.

MESSAGE e208(00) WITH 'Error in sending email :-(('.

ELSE.

MESSAGE s208(00) WITH 'Email sent )'.

ENDIF.

<b>SUBMIT rsconn01 WITH mode = 'INT' AND RETURN.</b>

Regards

Sudheer

Read only

Former Member
0 Likes
828

hi

pl make sure you have given COMMIT WORK after the fm and submitted the program RSCONN01, which initiates "Start send process" from SCOT

if helpful, reward

Sathish. R