‎2007 May 29 12:02 PM
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..
‎2007 May 29 12:03 PM
Hi,
The BASIS people needs to do the configuration. Get in touch with you BASIS team.
Best regards,
Prashant
‎2007 May 29 12:08 PM
‎2007 May 29 12:22 PM
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?
‎2007 May 29 12:04 PM
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
‎2007 May 29 12:07 PM
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
‎2007 May 29 12:07 PM
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