<?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: Function Module that generate a mail from the Program in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985305#M402422</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the function module to send the mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document_type = lc_raw&lt;/P&gt;&lt;P&gt;document_data = gs_doc_chng&lt;/P&gt;&lt;P&gt;put_in_outbox = gc_x&lt;/P&gt;&lt;P&gt;commit_work = gc_x&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;object_header = gt_objhead&lt;/P&gt;&lt;P&gt;object_content = gt_objtxt&lt;/P&gt;&lt;P&gt;receivers = gt_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;CASE sy-subrc.&lt;/P&gt;&lt;P&gt;WHEN 0.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 ON.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Mail has been sent successfully to below mentioned IDs:-&amp;gt;'(005)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 OFF.&lt;/P&gt;&lt;P&gt;WRITE:/ p_dlist.&lt;/P&gt;&lt;P&gt;WRITE:/ sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;WRITE: / 'Too many receivers specified !'(017).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;WRITE: / 'No receiver got the document !'(018).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;WRITE: / 'Missing send authority !'(016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;WRITE: / 'Unexpected error occurred !'(019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Sun, 04 Mar 2007 12:26:29 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-03-04T12:26:29Z</dc:date>
    <item>
      <title>Function Module that generate a mail from the Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985304#M402421</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi guys,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I need a Function Module that generate a mail to a person&lt;/P&gt;&lt;P&gt; when the  Program run&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Surjith&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 03 Mar 2007 09:12:44 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985304#M402421</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-03T09:12:44Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module that generate a mail from the Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985305#M402422</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Call the function module to send the mail&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;document_type = lc_raw&lt;/P&gt;&lt;P&gt;document_data = gs_doc_chng&lt;/P&gt;&lt;P&gt;put_in_outbox = gc_x&lt;/P&gt;&lt;P&gt;commit_work = gc_x&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;object_header = gt_objhead&lt;/P&gt;&lt;P&gt;object_content = gt_objtxt&lt;/P&gt;&lt;P&gt;receivers = gt_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;CASE sy-subrc.&lt;/P&gt;&lt;P&gt;WHEN 0.&lt;/P&gt;&lt;P&gt;SKIP.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 ON.&lt;/P&gt;&lt;P&gt;WRITE:/ 'Mail has been sent successfully to below mentioned IDs:-&amp;gt;'(005)&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;FORMAT COLOR 3 OFF.&lt;/P&gt;&lt;P&gt;WRITE:/ p_dlist.&lt;/P&gt;&lt;P&gt;WRITE:/ sy-uname.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 1.&lt;/P&gt;&lt;P&gt;WRITE: / 'Too many receivers specified !'(017).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 2.&lt;/P&gt;&lt;P&gt;WRITE: / 'No receiver got the document !'(018).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN 4.&lt;/P&gt;&lt;P&gt;WRITE: / 'Missing send authority !'(016).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;WHEN OTHERS.&lt;/P&gt;&lt;P&gt;WRITE: / 'Unexpected error occurred !'(019).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 04 Mar 2007 12:26:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985305#M402422</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-04T12:26:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module that generate a mail from the Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985306#M402423</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Surjith,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please check the below link for more info.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="221279"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points if Useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gokul&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 04:31:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985306#M402423</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T04:31:29Z</dc:date>
    </item>
    <item>
      <title>Re: Function Module that generate a mail from the Program</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985307#M402424</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   If u want to send a mail to SAP INBOX then u can use the FM's given below.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Z_SEND_MAIL_PROGRAM_COMPLETE&amp;lt;/b&amp;gt; -  Send SAPOffice Mail stating that a program has completed.&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Z_SEND_SAPOFFICE_MAIL&amp;lt;/b&amp;gt; - Send SAPOffice Mail to User.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Suppose in your scenario may be u want to send a mail to the user after completing the program execution. Then we can use these FM's to send a mail to the users.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 05 Mar 2007 07:11:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/function-module-that-generate-a-mail-from-the-program/m-p/1985307#M402424</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-05T07:11:00Z</dc:date>
    </item>
  </channel>
</rss>

