<?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: BCS - Send Email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937323#M1692884</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replys i managed to realize the problem with the help of this exception trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the recipients was in incorrect format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 05 Sep 2012 22:12:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2012-09-05T22:12:06Z</dc:date>
    <item>
      <title>BCS - Send Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937320#M1692881</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;I have a request where i need to send a email to approvers of a specific order,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The problem is i dont think bcs is properly configured in my system or the code i am using is incorrect.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My Code is based on the following link: &lt;A class="active_link" href="http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+mail+with+attachment+using+Object+Oriented+Approach"&gt;http://wiki.sdn.sap.com/wiki/display/Snippets/Sending+mail+with+attachment+using+Object+Oriented+Approach&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The code is pretty much the same actually, i have only commented the attachments part as it isnt necessary in our business logic.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;When debugging the code everything seems to go on as expected ( even the last send result equals 'X').&lt;/P&gt;&lt;P&gt;But i am not receiving the emails, so i am going to the transaction SOST and SCOT to see if they are in the queue but nothing appers aswell.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How could i test if my BCS is working properly in this system?&lt;/P&gt;&lt;P&gt;i have used a Test report called "RSBCS_EXAMPLE_EMAIL" and everything works i receive the email as expected&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 04 Sep 2012 23:16:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937320#M1692881</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-04T23:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: BCS - Send Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937321#M1692882</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;You should use COMMIT WORK after&amp;nbsp; lo_send_request-&amp;gt;send.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 06:52:59 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937321#M1692882</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-05T06:52:59Z</dc:date>
    </item>
    <item>
      <title>Re: BCS - Send Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937322#M1692883</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Commit Work is there in the code that has been shown in the wiki link.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;With result = 'X', it shows that the mail was sent. I would suggest verify, if recipients and all other parameters are populated correctly in debugging and then you could add the below code to catch any exception triggered. Current code does not catch any exception while sending. It might give you a hint of the problem.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: bcs_exception type ref to cx_send_req_bcs.&lt;/P&gt;&lt;P&gt;catch cx_send_req_bcs into bcs_exception.&lt;BR /&gt;Message i001(msgclass) with bcs_exception-&amp;gt;error_type&lt;/P&gt;&lt;P&gt;endtry.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You could consequently check other parmaters that are returned by the constructor of class CX_SEND_REQ_BCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would also suggest add a message after send method saying if result is initial mail was not sent to &lt;/P&gt;&lt;P&gt;the recipients else it was sent.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You can always check with your basis guys for any setting that is required to be done. Thanks.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Kumud&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 08:40:41 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937322#M1692883</guid>
      <dc:creator>kumud</dc:creator>
      <dc:date>2012-09-05T08:40:41Z</dc:date>
    </item>
    <item>
      <title>Re: BCS - Send Email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937323#M1692884</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks for the replys i managed to realize the problem with the help of this exception trace.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;One of the recipients was in incorrect format&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 05 Sep 2012 22:12:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/bcs-send-email/m-p/8937323#M1692884</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2012-09-05T22:12:06Z</dc:date>
    </item>
  </channel>
</rss>

