<?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: Email attachments created by function SO_DOCUMENT_SEND_API1 are unusable in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690583#M1576843</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you please check SAP note 190669 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excerpt:&lt;/P&gt;&lt;P&gt;As of Release 6.10, we recommend that you no longer use the API1&lt;/P&gt;&lt;P&gt;interface for sending documents. Instead, use the BCS interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will also find sample code in that note.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nils Buerckel&lt;/P&gt;&lt;P&gt;SAP AG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 09 Feb 2011 16:23:48 GMT</pubDate>
    <dc:creator>nils_buerckel</dc:creator>
    <dc:date>2011-02-09T16:23:48Z</dc:date>
    <item>
      <title>Email attachments created by function SO_DOCUMENT_SEND_API1 are unusable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690580#M1576840</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;WE did a unicode upgrade about 2 weeks ago and since then, when using function module SO_DOCUMENT_SEND_API1 to attach a .txt file to an email, the TEXT file looks to be spaced incorrectly.  what I mean it there is a LOW-VALUE/Space between every character in the file, so when Notepad opens it, the CR_LFis there  but there is a space between each so it just becomes one continuous string of data.  is this a code page thing or a SCOT setting?&lt;/P&gt;&lt;P&gt;I could not past a screen shot in here but in  a Hex Editor it shows TWO ZEROS '00' between every character,  which are low-values.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Feb 2011 19:43:21 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690580#M1576840</guid>
      <dc:creator>troy_frackman</dc:creator>
      <dc:date>2011-02-07T19:43:21Z</dc:date>
    </item>
    <item>
      <title>Re: Email attachments created by function SO_DOCUMENT_SEND_API1 are unusable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690581#M1576841</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;SO_DOCUMENT_SEND_API1 doesn't handle attachments, does it?  thought that was the ATT version of this antiquated API....should be inserting that file/adata into the email body with this API.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 13:06:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690581#M1576841</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2011-02-08T13:06:51Z</dc:date>
    </item>
    <item>
      <title>Re: Email attachments created by function SO_DOCUMENT_SEND_API1 are unusable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690582#M1576842</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;We have been using this general code below for sometime now.  Unicode upgrade of the databases has caused the attachments to have spaces between each character in the attachment.  We get the attachment but the data inside is over spaced.   if you go thru the attached .txt file, you can delete all the extra spaces, including those between the CR/LF and&lt;/P&gt;&lt;P&gt;Notepad looks to be able to understand where each line ends now.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;it_reclist = email addresses&lt;/P&gt;&lt;P&gt;it_objtxt = body of the email message&lt;/P&gt;&lt;P&gt;it_objbin = attachment table of type solisti1&lt;/P&gt;&lt;P&gt;it_packing_list = table of sopcklsti1&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*Calling the FM SO_DOCUMENT_SEND_API1 to send the email and passing all&lt;/P&gt;&lt;P&gt;*the values and then commiting the work&lt;/P&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              = wa_doc_data&lt;/P&gt;&lt;P&gt;      put_in_outbox              = c_x&lt;/P&gt;&lt;P&gt;      commit_work                = c_x&lt;/P&gt;&lt;P&gt;    TABLES&lt;/P&gt;&lt;P&gt;      packing_list               = it_packing_list&lt;/P&gt;&lt;P&gt;      contents_bin               = it_objbin&lt;/P&gt;&lt;P&gt;      contents_txt               = it_objtxt&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;&lt;/P&gt;&lt;P&gt;  CASE sy-subrc.&lt;/P&gt;&lt;P&gt;    WHEN 0.&lt;/P&gt;&lt;P&gt;      wa_errlog-msg = 'Email send successfully'(021).&lt;/P&gt;&lt;P&gt;      APPEND wa_errlog TO it_errlog.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      wa_errlog-msg = 'Email sending failed'(022).&lt;/P&gt;&lt;P&gt;      APPEND wa_errlog TO it_errlog.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 08 Feb 2011 15:30:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690582#M1576842</guid>
      <dc:creator>troy_frackman</dc:creator>
      <dc:date>2011-02-08T15:30:37Z</dc:date>
    </item>
    <item>
      <title>Re: Email attachments created by function SO_DOCUMENT_SEND_API1 are unusable</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690583#M1576843</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;can you please check SAP note 190669 ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Excerpt:&lt;/P&gt;&lt;P&gt;As of Release 6.10, we recommend that you no longer use the API1&lt;/P&gt;&lt;P&gt;interface for sending documents. Instead, use the BCS interface.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;You will also find sample code in that note.&lt;/P&gt;&lt;P&gt;Best regards,&lt;/P&gt;&lt;P&gt;Nils Buerckel&lt;/P&gt;&lt;P&gt;SAP AG&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 09 Feb 2011 16:23:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/email-attachments-created-by-function-so-document-send-api1-are-unusable/m-p/7690583#M1576843</guid>
      <dc:creator>nils_buerckel</dc:creator>
      <dc:date>2011-02-09T16:23:48Z</dc:date>
    </item>
  </channel>
</rss>

