<?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 Sending email from a report program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-a-report-program/m-p/6111547#M1362337</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 requirement to update a z table.If the update is successful, commit work should be done.&lt;/P&gt;&lt;P&gt;If the update is not successful an error has to be reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the errors reported in the program should be sent through an email to a particular addresse.&lt;/P&gt;&lt;P&gt;How to send the email from the report program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 27 Aug 2009 10:34:32 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-08-27T10:34:32Z</dc:date>
    <item>
      <title>Sending email from a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-a-report-program/m-p/6111547#M1362337</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 requirement to update a z table.If the update is successful, commit work should be done.&lt;/P&gt;&lt;P&gt;If the update is not successful an error has to be reported.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;All the errors reported in the program should be sent through an email to a particular addresse.&lt;/P&gt;&lt;P&gt;How to send the email from the report program?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:34:32 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-a-report-program/m-p/6111547#M1362337</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-08-27T10:34:32Z</dc:date>
    </item>
    <item>
      <title>Re: Sending email from a report program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-a-report-program/m-p/6111548#M1362338</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;&lt;/P&gt;&lt;P&gt;Use following FM  to send a mail&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;  Call Function Module to sen the mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  CALL FUNCTION 'SO_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;    EXPORTING&lt;/P&gt;&lt;P&gt;      document_data              = ls_doc_change      "Attribute of new document&lt;/P&gt;&lt;P&gt;      put_in_outbox              = gc_chk             "Flag: Move document to outbox after send&lt;/P&gt;&lt;P&gt;      commit_work                = gc_chk             "Execute explicit commit works at end of function module&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = gt_pack_list       "Information about structure of data tables&lt;/P&gt;&lt;P&gt;      contents_hex               = gt_attach          "Obsolete - see CONTENTS_HEX&lt;/P&gt;&lt;P&gt;      contents_txt               = gt_message         "ASCII contents of object and attachments&lt;/P&gt;&lt;P&gt;      receivers                  = gt_reciever        "Document recipients with send attributes&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 EQ 0.&lt;/P&gt;&lt;P&gt;                                                            "#EC NEEDED&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;       Mail Successfully Delivered&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Prashant&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 27 Aug 2009 10:37:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sending-email-from-a-report-program/m-p/6111548#M1362338</guid>
      <dc:creator>former_member386202</dc:creator>
      <dc:date>2009-08-27T10:37:06Z</dc:date>
    </item>
  </channel>
</rss>

