<?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: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111688#M106385</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using FM. Check Sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;  case SY-SUBRC.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;      message S999(YF01) with 'Mail sent with attachment'.&lt;/P&gt;&lt;P&gt;    when 1.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'No authorization for sending to the specified number of recipients'.&lt;/P&gt;&lt;P&gt;    when 2.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'Document could not be sent to any recipient'.&lt;/P&gt;&lt;P&gt;    when 4.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'No send authorization'.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'Error occurred while sending'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u get sy-subrc = 0 then goto SCOT to check ur mail status. Most probably this transaction is sheduled by basis person. So, after execution of ur FM mail will sent to the respactive person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh Panchal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 18 Jan 2006 11:44:55 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2006-01-18T11:44:55Z</dc:date>
    <item>
      <title>Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111684#M106381</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hiiiii Every1,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m sending e-mail in Html format using the above mentioned FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      commit_work                = 'X'&lt;/P&gt;&lt;P&gt;      document_type              = 'HTM'&lt;/P&gt;&lt;P&gt;      document_data              = doc_chng&lt;/P&gt;&lt;P&gt;      put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      object_header              = objcont&lt;/P&gt;&lt;P&gt;      object_content             = objcont&lt;/P&gt;&lt;P&gt;      receivers                  = reclist&lt;/P&gt;&lt;P&gt;    EXCEPTIONS&lt;/P&gt;&lt;P&gt;      too_many_receivers         = 1&lt;/P&gt;&lt;P&gt;      document_not_sent          = 2&lt;/P&gt;&lt;P&gt;      operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;      OTHERS                     = 99.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and sending it automatically using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    SUBMIT rsconn01&lt;/P&gt;&lt;P&gt;    WITH mode EQ 'INT'&lt;/P&gt;&lt;P&gt;    AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;What the error is that when i send e-mail what i have to check is that weather the the E-mail is sent from SOST or Not..If the Status of that e-mail is Delivered then i have to set a flag for sucess.&lt;/P&gt;&lt;P&gt;Else..Error Message.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How i can check weather is mail is delivered to recipent or Not even if SMTP is creating problem or due to any reason mail is not sent. I have to check.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Plz do reply as soon as Possible.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="----------------" /&gt;&lt;P&gt;Sachin Dhingra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 10:37:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111684#M106381</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T10:37:58Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111685#M106382</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi sachin,&lt;/P&gt;&lt;P&gt; Check for the following field in receivers table.&lt;/P&gt;&lt;P&gt;RETRN_CODE&lt;/P&gt;&lt;P&gt;When the recipient has received the document, the function module enters the value '0' in this field. If the document is not successfully received, a value unequal to '0' is entered in the field.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REgards,&lt;/P&gt;&lt;P&gt;Ravi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 10:41:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111685#M106382</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T10:41:43Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111686#M106383</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Read this post:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="863529"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 11:12:23 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111686#M106383</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T11:12:23Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111687#M106384</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Ravi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I m using this FM in meathod for a class.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Earlier i was able to send mails by using this retrn_code.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;but i think it gives value 0 when it is just send to Job Queue in SOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;But i m scheduling the Jobs by sending it automatically using&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SUBMIT rsconn01&lt;/P&gt;&lt;P&gt;WITH mode EQ 'INT'&lt;/P&gt;&lt;P&gt;AND RETURN.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Now what This Program Returns that after sending jobs from SOST.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;In my case it still give some error for example: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Status - RED ICON&lt;/P&gt;&lt;P&gt; Msg. 808 :- No delivery to , as no route known&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Or ny of the error having RED ICON weather it is due to SMTP problem or ny problem. For this error Status i have to set flag....the email is not sent..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When a green ICON is displayed for status of Email i have to set a flag for Sucess.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this will clear the scenario..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; regards&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="---------------" /&gt;&lt;P&gt;Sachin Dhingra&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 11:16:04 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111687#M106384</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T11:16:04Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111688#M106385</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Sachin,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After using FM. Check Sy-subrc.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Sample code:&lt;/P&gt;&lt;P&gt;  case SY-SUBRC.&lt;/P&gt;&lt;P&gt;    when 0.&lt;/P&gt;&lt;P&gt;      message S999(YF01) with 'Mail sent with attachment'.&lt;/P&gt;&lt;P&gt;    when 1.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'No authorization for sending to the specified number of recipients'.&lt;/P&gt;&lt;P&gt;    when 2.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'Document could not be sent to any recipient'.&lt;/P&gt;&lt;P&gt;    when 4.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'No send authorization'.&lt;/P&gt;&lt;P&gt;    when others.&lt;/P&gt;&lt;P&gt;      message E999(YF01) with 'Error occurred while sending'.&lt;/P&gt;&lt;P&gt;  endcase.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;If u get sy-subrc = 0 then goto SCOT to check ur mail status. Most probably this transaction is sheduled by basis person. So, after execution of ur FM mail will sent to the respactive person.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Digesh Panchal&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 11:44:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111688#M106385</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2006-01-18T11:44:55Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending email :SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111689#M106386</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hallo,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I think I understand what you mean. You need the end status of the document after the send process has finshed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please try the following way:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After calling &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SO_NEW_DOCUMENT_SEND_API1&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;check the Export parameter: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;NEW_OBJECT_ID&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;It will cointain the new object ID wich is created.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;After submiting the send process manually (usually this is not recommended...) the status of the document is updated in the DB Table: &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;'SOST'.&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;In this you can look for the object by:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OBJTP         
OBJYR         
OBJNO   &lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;      &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(This can be found in the NEW_OBJECT_ID ).&lt;/P&gt;&lt;P&gt;The fileds:&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;MSGID
MSGTY
MSGNO&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;of the table &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;SOST&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt; will contain the information you requiere.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I hope this helps you.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 18 Jan 2006 14:45:39 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-email-so-new-document-send-api1/m-p/1111689#M106386</guid>
      <dc:creator>former_member191062</dc:creator>
      <dc:date>2006-01-18T14:45:39Z</dc:date>
    </item>
  </channel>
</rss>

