<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Problem in mail sending in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436204#M1411648</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vinit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding to Aditya's post you can also write below code after calling function module SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT rsconn01 WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;  WITH output = 'X'&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Error When Sending the File', sy-subrc.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Mail sent'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This rsconn01 program is used to send file from application server to SMTP. so there is no need to go to SOST, SCOT, SBWP for sening mails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can check from SCOT transaction. if you find documnets are pending in SCOT then execute the send process. &lt;/P&gt;&lt;P&gt;it will work for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned you have scheduled a job in production system and it's not working. The reason behind this may be heavy load on background workprocessor. Usually in production system a bunch of background jobs run simultaneously so the less priority jobs will have to wait. You can see it either tranaction sm50 also. You change the job priority to high. May be it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sourabh Batwara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sourabh Batwara on Nov 25, 2009 2:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 25 Nov 2009 09:24:51 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-11-25T09:24:51Z</dc:date>
    <item>
      <title>Problem in mail sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436202#M1411646</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi experts,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am using FM SO_NEW_DOCUMENT_ATT_SEND_API1 to send an mail to internaet address. There is explicit COMMIT WORK written after FM call.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have scheduled a job in Production to so. But it is not working. No mail is sent when i checked in SOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also When I run the program in foreground it works fine and sends mail. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 05:57:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436202#M1411646</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T05:57:24Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in mail sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436203#M1411647</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi, &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When you schedule a job, check whether the user(in the step definition) has enough authorizations to send mail. Check the  SCOT setting also in meantime. Also check in the your SAP outbox.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Contact the Basis for the same, they can help.&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 06:16:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436203#M1411647</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T06:16:28Z</dc:date>
    </item>
    <item>
      <title>Re: Problem in mail sending</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436204#M1411648</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi vinit,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Adding to Aditya's post you can also write below code after calling function module SO_NEW_DOCUMENT_ATT_SEND_API1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; SUBMIT rsconn01 WITH mode = 'INT'&lt;/P&gt;&lt;P&gt;  WITH output = 'X'&lt;/P&gt;&lt;P&gt;  AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Error When Sending the File', sy-subrc.&lt;/P&gt;&lt;P&gt;  ELSE.&lt;/P&gt;&lt;P&gt;    WRITE:/ 'Mail sent'.&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This rsconn01 program is used to send file from application server to SMTP. so there is no need to go to SOST, SCOT, SBWP for sening mails. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Also you can check from SCOT transaction. if you find documnets are pending in SCOT then execute the send process. &lt;/P&gt;&lt;P&gt;it will work for you. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;As you mentioned you have scheduled a job in production system and it's not working. The reason behind this may be heavy load on background workprocessor. Usually in production system a bunch of background jobs run simultaneously so the less priority jobs will have to wait. You can see it either tranaction sm50 also. You change the job priority to high. May be it will work. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Sourabh Batwara&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Sourabh Batwara on Nov 25, 2009 2:55 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 25 Nov 2009 09:24:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-in-mail-sending/m-p/6436204#M1411648</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-11-25T09:24:51Z</dc:date>
    </item>
  </channel>
</rss>

