<?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: send notification by email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985177#M704912</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please give me code to do so&lt;/P&gt;&lt;P&gt;i just need to pick up email from a table and send notification to the email receipients maintained in that table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table has fields cust no.  name and email id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how to use this funtion module please provide me code to do so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 12 Nov 2007 03:32:50 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-11-12T03:32:50Z</dc:date>
    <item>
      <title>send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985171#M704906</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 ahve a talbe and email id maintained in that table&lt;/P&gt;&lt;P&gt;we need to send email notification from the table to the customer&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please let me know the process how to acheive this&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 07:15:00 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985171#M704906</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T07:15:00Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985172#M704907</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;&amp;gt; we need to send email notification from the table to the customer&lt;/P&gt;&lt;P&gt;What exactly you mean by sending notification from table to customer.&lt;/P&gt;&lt;P&gt;Do you want to send a email to the email maintained in the table.&lt;/P&gt;&lt;P&gt;If so use the FM:SO_NEW_DOCUMENT_SEND_API1. See the documentation of hwo to use it&lt;/P&gt;&lt;P&gt;And search the forum / blogs for sample code. You have many in the forums similar ones&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 07:18:34 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985172#M704907</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-11-09T07:18:34Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985173#M704908</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;ya thts what i mean   to take email id from table and send notification&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 09 Nov 2007 07:38:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985173#M704908</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-09T07:38:38Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985174#M704909</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi GOpi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please eloborate more and any other method to send notification &lt;/P&gt;&lt;P&gt;and can u please provide me the code to do so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;there are three fields in table ztable&lt;/P&gt;&lt;P&gt;number  name and email id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i need to pick up email id and send notification &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Please suggest&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:01:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985174#M704909</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:01:38Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985175#M704910</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopi&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the function module u gave is to send doucment not email id notification i dont want to send any doucments&amp;gt;&lt;/P&gt;&lt;P&gt;just a email notification?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:03:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985175#M704910</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:03:43Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985176#M704911</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The FM SO_NEW_DOCUMENT_SEND_API1 can also be used to send mails.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:18:05 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985176#M704911</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:18:05Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985177#M704912</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi atish&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;can u please give me code to do so&lt;/P&gt;&lt;P&gt;i just need to pick up email from a table and send notification to the email receipients maintained in that table &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;the table has fields cust no.  name and email id&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;please suggest how to use this funtion module please provide me code to do so&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:32:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985177#M704912</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:32:50Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985178#M704913</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Nishant,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I answered your query in another thread. Can you please close this one.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Atish&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:34:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985178#M704913</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:34:36Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985179#M704914</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hope you needed some sample code.&lt;/P&gt;&lt;P&gt;Here it is,&lt;/P&gt;&lt;P&gt;In my code i send an attachment, you can skip that part of attachment, but can just send the email with Text&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hi Arora, You can just skip the commented part and then proceed with the rest part just to send an email with "Shipment Sent" under TEXT-004.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;form send_email.

  data : it_docdata     like sodocchgi1 occurs 0 with header line,
         it_objpacklist like sopcklsti1 occurs 0 with header line,
         it_contenttxt  like solisti1   occurs 0 with header line,
         it_reclist     like somlreci1  occurs 0 with header line,
         recipient_int  like sadrud.

  data : l_lines type i.

  refresh : it_docdata, it_objpacklist, " it_objheader
            it_contentbin, it_contenttxt, it_reclist.

* Text contents of the email
  it_contenttxt-line = text-004.
  append it_contenttxt.
  clear : it_contenttxt.

* Contents of the Excel File
  perform align_data.

* Attributes of new document
  it_docdata-obj_name  = 'Message'.
  it_docdata-obj_descr = text-002.

* For Email message
  describe table it_contenttxt lines l_lines.
  it_objpacklist-transf_bin = 'X'.
  it_objpacklist-head_start = 1.
  it_objpacklist-head_num   = 0.
  it_objpacklist-body_start = 1.
  it_objpacklist-body_num   = l_lines.
  it_objpacklist-doc_type   = 'TXT'.
  it_objpacklist-obj_name   = 'Message'.
  it_objpacklist-doc_size   = l_lines * 255.
  append it_objpacklist.
  clear : it_objpacklist.

"* For Email attachment
"  clear : l_lines.
"  describe table it_contentbin lines l_lines.
"*  describe table it_text lines l_lines.
"  it_objpacklist-transf_bin = 'X'.
"  it_objpacklist-head_start = 1.
"  it_objpacklist-head_num   = 0.
"  it_objpacklist-body_start = 1.
"  it_objpacklist-body_num   = l_lines.
"  it_objpacklist-doc_type   = 'XLS'.
"  it_objpacklist-obj_name   = 'Attachment'.
"  it_objpacklist-obj_descr  = 'Workload Statistics for this server'.
"  it_objpacklist-doc_size   = l_lines * 255.
"  append it_objpacklist.
"  clear : it_objpacklist.

* Receivers list
  loop at so_email.
    concatenate so_email-low '@YAHOO.COM' into
                recipient_int-address.
    it_reclist-receiver = recipient_int.
    it_reclist-rec_type = 'U'.
    append it_reclist.
    clear : it_reclist, so_email, recipient_int.
  endloop.

* Function module to send email with attachment
  call function 'SO_NEW_DOCUMENT_ATT_SEND_API1'
       exporting
            document_data              = it_docdata
            put_in_outbox              = 'X'
       tables
            packing_list               = it_objpacklist
            contents_bin               = it_contentbin
            contents_txt               = it_contenttxt
            receivers                  = it_reclist
       exceptions
            too_many_receivers         = 1
            document_not_sent          = 2
            document_type_not_exist    = 3
            operation_no_authorization = 4
            parameter_error            = 5
            x_error                    = 6
            enqueue_error              = 7
            others                     = 8.
  if sy-subrc &amp;lt;&amp;gt; 0.
    write :/ 'Error sending Email'.
  else.
    write :/ 'Mail successfully sent'.
  endif.

endform.                    " send_email&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:38:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985179#M704914</guid>
      <dc:creator>gopi_narendra</dc:creator>
      <dc:date>2007-11-12T03:38:24Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985180#M704915</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi gopi &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks for the code but please can u simplify it and eloborate a little according to my requirement &lt;/P&gt;&lt;P&gt;as i want to first select data from a ztable and there can be sevaral email ids maintained in that table may be 1000 or more and i want to send to all the email notification....&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;pls suggest&lt;/P&gt;&lt;P&gt;thanks in advance&lt;/P&gt;&lt;P&gt;regards&lt;/P&gt;&lt;P&gt;Arora&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:45:17 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985180#M704915</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:45:17Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985181#M704916</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;HI GOPI&lt;/P&gt;&lt;P&gt;here are doubts PLEASE eloborate if possible for u and please can u help in my context?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form send_email.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;WHAT ARE THESE DECLARATION FOR I SUPPOSE AS PR FUNTION MODULE DOCUMENTATION&lt;/P&gt;&lt;P&gt;  data : it_docdata     like sodocchgi1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;         it_objpacklist like sopcklsti1 occurs 0 with header line,&lt;/P&gt;&lt;P&gt;         it_contenttxt  like solisti1   occurs 0 with header line,&lt;/P&gt;&lt;P&gt;         it_reclist     like somlreci1  occurs 0 with header line,&lt;/P&gt;&lt;P&gt;         recipient_int  like sadrud.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  data : l_lines type i.   WHAT IS T HIS FOR I SEE BEING USED IN it_contenttxt &lt;/P&gt;&lt;P&gt;BUT PARAMATERS USAGAE IS NOT CLEAR ?&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;  refresh : it_docdata, it_objpacklist, " it_objheader&lt;/P&gt;&lt;P&gt;            it_contentbin, it_contenttxt, it_reclist.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Text contents of the email&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  it_contenttxt-line = text-004. " SO HERE I HAV TO PUT MY TEXT WHICH I WANT TO MSSG RIGHT?&lt;/P&gt;&lt;P&gt;  append it_contenttxt.&lt;/P&gt;&lt;P&gt;  clear : it_contenttxt.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Contents of the Excel File&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  perform align_data.   THIS PERFORM HAS NOT FORM? WHAT IS THIS FOR&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Attributes of new document  THIS IS USED FOR?&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  it_docdata-obj_name  = 'Message'.&lt;/P&gt;&lt;P&gt;  it_docdata-obj_descr = text-002.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Email message  PARAMETES NOT CLEAR AND WHAT IS PURPOSE OF THIS&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  describe table it_contenttxt lines l_lines.  &lt;/P&gt;&lt;P&gt;  it_objpacklist-transf_bin = 'X'.       ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-head_start = 1.    ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-head_num   = 0.   ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-body_start = 1.    ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-body_num   = l_lines.   ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-doc_type   = 'TXT'.     ?&lt;/P&gt;&lt;P&gt;  it_objpacklist-obj_name   = 'Message'.   ?  WHAT IS OBJE NAME AND PURPOSE&lt;/P&gt;&lt;P&gt;  it_objpacklist-doc_size   = l_lines * 255.   WHY THIS IS USED&lt;/P&gt;&lt;P&gt;  append it_objpacklist.&lt;/P&gt;&lt;P&gt;  clear : it_objpacklist.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;For Email attachment THIS I HAVE TO SKIP ANYHOW&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  clear : l_lines.&lt;/P&gt;&lt;P&gt;  describe table it_contentbin lines l_lines.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; describe table it_text lines l_lines.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;  it_objpacklist-transf_bin = 'X'.&lt;/P&gt;&lt;P&gt;  it_objpacklist-head_start = 1.&lt;/P&gt;&lt;P&gt;  it_objpacklist-head_num   = 0.&lt;/P&gt;&lt;P&gt;  it_objpacklist-body_start = 1.&lt;/P&gt;&lt;P&gt;  it_objpacklist-body_num   = l_lines.&lt;/P&gt;&lt;P&gt;  it_objpacklist-doc_type   = 'XLS'.&lt;/P&gt;&lt;P&gt;  it_objpacklist-obj_name   = 'Attachment'.&lt;/P&gt;&lt;P&gt;  it_objpacklist-obj_descr  = 'Workload Statistics for this server'.&lt;/P&gt;&lt;P&gt;  it_objpacklist-doc_size   = l_lines * 255.&lt;/P&gt;&lt;P&gt;  append it_objpacklist.&lt;/P&gt;&lt;P&gt;  clear : it_objpacklist.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Receivers list  SO/_MAIL ?  HOW USE THIS FOR SEND ING EMAIL&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;LIKE I POPULATE DATA IN A INTERNAL TABLE IT_EMAIL AND IT HAS ALL RECEIPENTS WHICH NEEDS TO BE SEND EMAIL&lt;/P&gt;&lt;P&gt;SO HOW TO USE THIS TABLE IT_EMAIL HERE&lt;/P&gt;&lt;P&gt;  loop at so_email.&lt;/P&gt;&lt;P&gt;    concatenate so_email-low '@YAHOO.COM' into      &lt;/P&gt;&lt;P&gt;                &amp;lt;b&amp;gt;recipient_int-address.&amp;lt;/b&amp;gt;  WHAT IS THIS FOR&lt;/P&gt;&lt;P&gt;    it_reclist-receiver = recipient_int.     ?&lt;/P&gt;&lt;P&gt;    it_reclist-rec_type = 'U'.   ? WHAT IS U&lt;/P&gt;&lt;P&gt;    append it_reclist.&lt;/P&gt;&lt;P&gt;    clear : it_reclist, so_email, recipient_int.&lt;/P&gt;&lt;P&gt;  endloop.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;Function module to send email with attachment&lt;/P&gt;&lt;/LI&gt;&lt;/UL&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              = it_docdata&lt;/P&gt;&lt;P&gt;            put_in_outbox              = 'X'&lt;/P&gt;&lt;P&gt;       tables&lt;/P&gt;&lt;P&gt;            packing_list               = it_objpacklist&lt;/P&gt;&lt;P&gt;            contents_bin               = it_contentbin&lt;/P&gt;&lt;P&gt;            contents_txt               = it_contenttxt&lt;/P&gt;&lt;P&gt;            receivers                  = it_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;  if sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Error sending Email'.&lt;/P&gt;&lt;P&gt;  else.&lt;/P&gt;&lt;P&gt;    write &lt;span class="lia-unicode-emoji" title=":confused_face:"&gt;😕&lt;/span&gt; 'Mail successfully sent'.&lt;/P&gt;&lt;P&gt;  endif.&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;endform.                    " send_email&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Gopi&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 03:54:43 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985181#M704916</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T03:54:43Z</dc:date>
    </item>
    <item>
      <title>Re: send notification by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985182#M704917</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;   refer&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="3657951"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 12 Nov 2007 05:36:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/send-notification-by-email/m-p/2985182#M704917</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-12T05:36:35Z</dc:date>
    </item>
  </channel>
</rss>

