<?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: Issue Writing XML Files to Application Server in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109150#M1361846</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.  I will try the XML_HEADER option as well but I already used the offset technique and it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 15 Sep 2009 13:46:37 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-09-15T13:46:37Z</dc:date>
    <item>
      <title>Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109148#M1361844</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I'm using CALL TRANSFORMATION to convert an internal table to an XML string (the data object into which it is transformed is "string").&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I'm using OPEN DATASET to write it out to the application server.  When I tried reading it back in I got a code page conversion error.  I looked at the file in a hex editor (I downloaded it to my PC) and there are 3 strange characters at the beginning of the file.  I have no idea what these are but I suspect that these are causing the problem when trying to read the file back in, again with using OPEN DATASET.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My question is, what's the best way to write out an XML string generated by CALL TRANSFORMATION so that I can read it back it (and others can) with minimal effort?  Is there a "lowest-common-denominator" way to use OPEN DATASET for input/output?  Or is there something I need to do to the XML string before I write it out?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;P.S., I noticed that the XML generated had "&amp;lt;?xml version="1.0" encoding="utf-16"?&amp;gt;" at the top.  That line isn't in the ST program I wrote so SAP is putting it there.  I'm not sure what that means or if it's relevant&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MANY THANKS!&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 03 Sep 2009 15:14:24 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109148#M1361844</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-03T15:14:24Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109149#M1361845</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello SK,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In call transformation there are some optional switches which you can use to switch the heading information off.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

CALL TRANSFORMATION ID
             SOURCE ITAB = ITAB[]
             OPTIONS xml_header = 'OFF'
              RESULT XML xml_string.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt; In some of the SAP versions call transformation produces '#', which is actually non printable char so after transformation&lt;/P&gt;&lt;P&gt; using offset you can remove that char and then download it to application server.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

* Suppose you have '#' at offset 10 in xml_string.

xml_string+10(1) = ''. --&amp;gt; This will remove that special char.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope this helps!&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks,&lt;/P&gt;&lt;P&gt;Augustin.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 04 Sep 2009 03:57:29 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109149#M1361845</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-04T03:57:29Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109150#M1361846</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Thank you very much.  I will try the XML_HEADER option as well but I already used the offset technique and it works fine.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 13:46:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109150#M1361846</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T13:46:37Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109151#M1361847</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;For everyone's information, I found out, quite by accident, that these three bytes that were causing me problems was something called a "BOM" or "Byte Order Mark".  I've included the Wikipedia link to find out more.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;[http://en.wikipedia.org/wiki/Byte-order_mark|http://en.wikipedia.org/wiki/Byte-order_mark]&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I am still confused as to why I was not able to use CALL TRANSFORMATION to serialize an XML file that contains a BOM into an internal table since SAP put it there to begin with.  As stated above, there is a workaround but it's still confusing...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 20:31:38 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109151#M1361847</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T20:31:38Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109152#M1361848</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Those chars seem to be encoding type, so perhaps they are triggered  by the type of data you are trying to convert.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 21:00:19 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109152#M1361848</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T21:00:19Z</dc:date>
    </item>
    <item>
      <title>Re: Issue Writing XML Files to Application Server</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109153#M1361849</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Perhaps.  My knowledge of Unicode is woefully lacking.  The system I'm working on does not contain any text data that is not based on the Latin alphabet; in other words, it's all English.  &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;I did use the &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;OPTIONS xml_header = 'without_encoding'&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;and it removed the BOM from the beginning of the file.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 15 Sep 2009 21:06:15 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/issue-writing-xml-files-to-application-server/m-p/6109153#M1361849</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-09-15T21:06:15Z</dc:date>
    </item>
  </channel>
</rss>

