<?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: SO_NEW_DOCUMENT_SEND_API1 in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029130#M416256</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi aditya,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Can u plz tell me how can i send an email with an attachment??&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have ALV report i need to send this ALV report as an attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 12 Jun 2008 06:07:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2008-06-12T06:07:10Z</dc:date>
    <item>
      <title>SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029119#M416245</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;am using the &amp;lt;b&amp;gt;SO_NEW_DOCUMENT_SEND_API1&amp;lt;/b&amp;gt; where i am sending an HTML format with obj_type = 'HTM'.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i tested it in DEV, its working fine, it sends my Messages in HTML format.&lt;/P&gt;&lt;P&gt;transported it to QAS, tested in QAS, now instead of message in HTML format its sending me an attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Summary :&lt;/P&gt;&lt;P&gt;1) In DEV it sends my HTML, but appends a system text &amp;amp;SO_FORMAT=ASC at the end.&lt;/P&gt;&lt;P&gt;So how can i remove this system text and&lt;/P&gt;&lt;P&gt;2) In QAS it doesnt send anything but an empty attachment.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 17:35:07 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029119#M416245</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2007-03-14T17:35:07Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029120#M416246</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;   could you please paste the code for us to review and comment on it..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  Thanks&lt;/P&gt;&lt;P&gt;  Rakesh&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 17:43:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029120#M416246</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-03-14T17:43:36Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029121#M416247</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;following is the code.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt;loop at idlient.&lt;/P&gt;&lt;P&gt;mailrec-receiver = idlient-member_adr.&lt;/P&gt;&lt;P&gt;mailrec-rec_type  = 'U'.   &lt;/P&gt;&lt;P&gt;append mailrec.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;html&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt  = '&amp;lt;meta http-equiv="Content-Type" content="text/html;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt  = 'charset=utf-16"&amp;gt;'.              &lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;p&amp;gt;&amp;lt;font color="#FF0000"&amp;gt;'. &lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = 'Please do not reply to this message!...&amp;lt;/font&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;font color="#0000FF"&amp;gt;'. &lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = 'THIS IS CONFIRMATION OF RECEIPT OF YOUR COMPLAINT'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;/font&amp;gt;&amp;lt;/p&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;p&amp;gt;If you need to discuss your situation immediately, '.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = 'you may contact our Quality Manager directly at : &amp;lt;/p&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '110-009-4966&amp;lt;br&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;img src="http://www.xyz.com/folder/logo.bmp"'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;/html&amp;gt;'. &lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i tried the mailtxt  = 'charset=utf-16"&amp;gt;' part using charset=1852-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 18:26:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029121#M416247</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2007-03-14T18:26:46Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029122#M416248</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Rakesh,&lt;/P&gt;&lt;P&gt;following is the code.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-----------" /&gt;&lt;P&gt;loop at idlient.&lt;/P&gt;&lt;P&gt;mailrec-receiver = idlient-member_adr.&lt;/P&gt;&lt;P&gt;mailrec-rec_type  = 'U'.   &lt;/P&gt;&lt;P&gt;append mailrec.&lt;/P&gt;&lt;P&gt;endloop.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;html&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt  = '&amp;lt;meta http-equiv="Content-Type" &lt;/P&gt;&lt;P&gt;content="text/html;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt  = 'charset=1852-1"&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = 'Please do not reply to this message!...'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;If you need to discuss your situation immediately, '.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = 'you may contact our &lt;/P&gt;&lt;P&gt;Quality Manager directly at : &amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '110-009-4966&amp;lt;br&amp;gt;'.&lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;mailtxt = '&amp;lt;/html&amp;gt;'. &lt;/P&gt;&lt;P&gt;append mailtxt.&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="--------------------" /&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;i tried the mailtxt  = 'charset=utf-16"&amp;gt;' part using charset=1852-1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;well basically i am writing all my HTML text in the HTML Tag format and storing in mailtxt,&lt;/P&gt;&lt;P&gt;passing this to my FM.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Aditya.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Mar 2007 18:39:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029122#M416248</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2007-03-14T18:39:24Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029123#M416249</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;selfanswered&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 28 Jun 2007 07:23:11 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029123#M416249</guid>
      <dc:creator>former_member184495</dc:creator>
      <dc:date>2007-06-28T07:23:11Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029124#M416250</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Could you tell us how you solved the &amp;amp;SO_FORMAT=ASC  problem?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks&lt;/P&gt;&lt;P&gt;Kevin&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jul 2007 13:07:16 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029124#M416250</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-07-12T13:07:16Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029125#M416251</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;using the FM SO_NEW_DOCUMENT_SEND_API1 to send an email in html format but in the end of the email content it is desplaying '&amp;amp;so_format = ASC'.&lt;/P&gt;&lt;P&gt;you mentioned here self answered. i am also facing the same problem could you please help me out to resolve the issue.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;P&gt;send your solution to this email id &lt;STRONG&gt;&amp;lt;REMOVED BY MODERATOR&amp;gt;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Alvaro Tejada Galindo on Mar 19, 2008 5:14 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 14 Nov 2007 11:50:30 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029125#M416251</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-14T11:50:30Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029126#M416252</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Aditya,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;could u pls let me know the solution to the problem.&lt;/P&gt;&lt;P&gt;I am facing the same problem.&lt;/P&gt;&lt;P&gt;I am using the doc_type as RAW&lt;/P&gt;&lt;P&gt;Thanks in Advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 15 Nov 2007 06:00:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029126#M416252</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-11-15T06:00:46Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029127#M416253</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 the same problem, any suggestions to resolve that ?&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Dec 2007 11:43:27 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029127#M416253</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-12-19T11:43:27Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029128#M416254</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I found the solution to the problem with the added text "&amp;amp;SO_FORMAT=ASC" etc. In the examples found elsewhere in this forum, the same table structure was passed to both object header and contents, like this:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = maildata
      document_type              = 'HTM'
      put_in_outbox              = 'X'
    TABLES
      object_header              = mailtxt
      object_content             = mailtxt
      receivers                  = mailrec&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;To remove tha trailing text, assign a different table to "object_header" instead, in my case I just left it empty (unassigned):&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;CALL FUNCTION 'SO_NEW_DOCUMENT_SEND_API1'
    EXPORTING
      document_data              = maildata
      document_type              = 'HTM'
      put_in_outbox              = 'X'
    TABLES
      object_header              = mailhdr
      object_content             = mailtxt
      receivers                  = mailrec&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;This takes care of the problem.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 19 Mar 2008 14:36:49 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029128#M416254</guid>
      <dc:creator>leif_almgren</dc:creator>
      <dc:date>2008-03-19T14:36:49Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029129#M416255</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thanks Almgren! You solved my problem. Somebody should award you points for this.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;KKR&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 20 May 2008 06:50:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029129#M416255</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-05-20T06:50:51Z</dc:date>
    </item>
    <item>
      <title>Re: SO_NEW_DOCUMENT_SEND_API1</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029130#M416256</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi aditya,&lt;/P&gt;&lt;P&gt;  &lt;/P&gt;&lt;P&gt; Can u plz tell me how can i send an email with an attachment??&lt;/P&gt;&lt;P&gt; &lt;/P&gt;&lt;P&gt;I have ALV report i need to send this ALV report as an attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 12 Jun 2008 06:07:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/so-new-document-send-api1/m-p/2029130#M416256</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2008-06-12T06:07:10Z</dc:date>
    </item>
  </channel>
</rss>

