<?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: Problem sending XML file by email in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-xml-file-by-email/m-p/7778659#M1585211</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved passing the file length at document-&amp;gt;add_attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 12 Apr 2011 19:52:28 GMT</pubDate>
    <dc:creator>former_member541603</dc:creator>
    <dc:date>2011-04-12T19:52:28Z</dc:date>
    <item>
      <title>Problem sending XML file by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-xml-file-by-email/m-p/7778658#M1585210</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Dear all,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I have developed a program that uploads XMLfile and sends it attached by email. The XML file can be local or server.&lt;/P&gt;&lt;P&gt;To upload local file, I use gui_upload (bin); to upload server file I use open data set (bin) and I convert the line read using fm SCMS_XSTRING_TO_BINARY. To send it I use CL_BCS.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I execute the program, the email is sent, I receive it, I go to check the attached XML file, I open it, and I get a error message. Says that the XML page cannot be open, and indicates that the problem is at the last line of the file.&lt;/P&gt;&lt;P&gt;So I open the file at Notepad, and I see that there are some spaces at the end of the last line. I erase those spaces, save the file, and them I try to open the file again, it works.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I would like to know if anybody could help me with that. Why the file is going with those spaces and what I can do to avoid that.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thank you very much.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Karla.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 15:07:50 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-xml-file-by-email/m-p/7778658#M1585210</guid>
      <dc:creator>former_member541603</dc:creator>
      <dc:date>2011-04-12T15:07:50Z</dc:date>
    </item>
    <item>
      <title>Re: Problem sending XML file by email</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-xml-file-by-email/m-p/7778659#M1585211</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Solved passing the file length at document-&amp;gt;add_attachment.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 12 Apr 2011 19:52:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/problem-sending-xml-file-by-email/m-p/7778659#M1585211</guid>
      <dc:creator>former_member541603</dc:creator>
      <dc:date>2011-04-12T19:52:28Z</dc:date>
    </item>
  </channel>
</rss>

