<?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 Mail in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582285#M1273024</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;Check this link..http://docs.google.com/Doc?id=dfv2hmgs_0fm22tggx&amp;amp;hl=en&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check you have correctly populated packing_list table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Smartform as a PDF to Mail id |https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/smartform&lt;EM&gt;as&lt;/EM&gt;a&lt;EM&gt;PDF&lt;/EM&gt;to&lt;EM&gt;Mail&lt;/EM&gt;id]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sat, 09 May 2009 11:35:19 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-09T11:35:19Z</dc:date>
    <item>
      <title>Error in Sending Mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582284#M1273023</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; &lt;/P&gt;&lt;P&gt;I am Converting smartform into PDF and send mail to the mailid mentioned in the vendor master.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Upto PDF conversion its working fine, sending mail is the problem here, am getting value for sy-subrc is '2'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Iam attaching the code below, please suggest me what could be the reason for the error.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'&lt;/P&gt;&lt;P&gt;  exporting&lt;/P&gt;&lt;P&gt;  document_data = wa_doc_chng&lt;/P&gt;&lt;P&gt;  put_in_outbox = 'X'&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;commit_work = 'X'&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  tables&lt;/P&gt;&lt;P&gt;  packing_list = i_objpack&lt;/P&gt;&lt;P&gt;  object_header = wa_objhead&lt;/P&gt;&lt;P&gt;  contents_bin = i_objbin&lt;/P&gt;&lt;P&gt;  contents_txt = i_objtxt&lt;/P&gt;&lt;P&gt;  receivers = i_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;  document_type_not_exist = 3&lt;/P&gt;&lt;P&gt;  operation_no_authorization = 4&lt;/P&gt;&lt;P&gt;  parameter_error = 5&lt;/P&gt;&lt;P&gt;  x_error = 6&lt;/P&gt;&lt;P&gt;  enqueue_error = 7&lt;/P&gt;&lt;P&gt;  others = 8.&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;&lt;/P&gt;&lt;P&gt;Thanks in advance&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 11:29:52 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582284#M1273023</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T11:29:52Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending Mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582285#M1273024</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;Check this link..http://docs.google.com/Doc?id=dfv2hmgs_0fm22tggx&amp;amp;hl=en&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Check you have correctly populated packing_list table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[Smartform as a PDF to Mail id |https://www.sdn.sap.com/irj/scn/wiki?path=/display/snippets/smartform&lt;EM&gt;as&lt;/EM&gt;a&lt;EM&gt;PDF&lt;/EM&gt;to&lt;EM&gt;Mail&lt;/EM&gt;id]&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 11:35:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582285#M1273024</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-09T11:35:19Z</dc:date>
    </item>
    <item>
      <title>Re: Error in Sending Mail</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582286#M1273025</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Raja,&lt;/P&gt;&lt;P&gt;If you are executing the program then check your user master in SU01 if any email ID is maintained in that or not.If it is being executed by any other user then check that user id for maintanence of email id.If not maintain the same. This might solve your problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks &amp;amp; Regards,&lt;/P&gt;&lt;P&gt;Kalyan.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 09 May 2009 13:31:26 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-in-sending-mail/m-p/5582286#M1273025</guid>
      <dc:creator>KalC</dc:creator>
      <dc:date>2009-05-09T13:31:26Z</dc:date>
    </item>
  </channel>
</rss>

