Skip to Content
author's profile photo Former Member
Former Member

MAIL THRU PROGRAM

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..

Add a comment
10|10000 characters needed characters exceeded

Assigned Tags

Related questions

4 Answers

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 11:04 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • Posted on May 29, 2007 at 11:03 AM

    Hi,

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

    Best regards,

    Prashant

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 11:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

  • author's profile photo Former Member
    Former Member
    Posted on May 29, 2007 at 11:07 AM

    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

    Add a comment
    10|10000 characters needed characters exceeded

Before answering

You should only submit an answer when you are proposing a solution to the poster's problem. If you want the poster to clarify the question or provide more information, please leave a comment instead, requesting additional details. When answering, please include specifics, such as step-by-step instructions, context for the solution, and links to useful resources. Also, please make sure that you answer complies with our Rules of Engagement.
You must be Logged in to submit an answer.

Up to 10 attachments (including images) can be used with a maximum of 1.0 MB each and 10.5 MB total.