<?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: SAP_CONVERT_TO_XML_FORMAT in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568722#M1270368</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 change the path to my presentation server and added the XML tag as follows:&lt;/P&gt;&lt;P&gt;"C:\Documents and Settings\APolo\My Documents\outbound.xml" , but still the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it suppose to be formatted the internal table I_TAB_SAP_DATA ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 19 May 2009 14:00:48 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2009-05-19T14:00:48Z</dc:date>
    <item>
      <title>SAP_CONVERT_TO_XML_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568720#M1270366</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;After converting a SAP file to XML with function SAP_CONVERT_TO_XML_FORMAT, I get the following error or message when trying to open the generetaed XML file:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XML page cannot be displayed.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A name was started with an invalid character. Error processing resource 'file://sapdev/sapmnt/Daily/SAQ/Output/OUTBOUND2009...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0"?&amp;gt;&amp;lt;OUTBOUND&amp;gt;&amp;lt;%_T00004S00000000O0000002096/&amp;gt;&amp;lt;%_T00004S00000000O0000002096&amp;gt;&amp;lt;NAME...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Here is the code:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;PRE&gt;&lt;CODE&gt;

  concatenate sy-datum '_' sy-uzeit '.xml' into filename.
  concatenate '\\sapdev\sapmnt\Daily\SAQ\Output\OUTBOUND' filename into infile.

  filename = infile.

  data doc_name(30) value 'OUTBOUND'.

  clear: xml_table[], totalSize.

  CALL FUNCTION 'SAP_CONVERT_TO_XML_FORMAT'
    EXPORTING
      I_FILENAME           = infile
      I_XML_DOC_NAME       = doc_name
    IMPORTING
      PE_BIN_FILESIZE      = totalSize
    TABLES
      I_TAB_SAP_DATA       = xml_file_list
    CHANGING
      I_TAB_CONVERTED_DATA = xml_table
    EXCEPTIONS
      CONVERSION_FAILED    = 1
      OTHERS               = 2.

  check not xml_table[] is initial.


  CALL FUNCTION 'GUI_DOWNLOAD'
    EXPORTING
      FILENAME   = filename
      FILETYPE   = 'BIN'
    IMPORTING
      FILELENGTH = totalSize
    TABLES
      DATA_TAB   = xml_table
    EXCEPTIONS
      OTHERS     = 22.

  IF SY-SUBRC &amp;lt;&amp;gt; 0.
    MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO
            WITH SY-MSGV1 SY-MSGV2 SY-MSGV3 SY-MSGV4.
  ENDIF.

&lt;/CODE&gt;&lt;/PRE&gt;&lt;P&gt;Thanks in advance.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:15:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568720#M1270366</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:15:48Z</dc:date>
    </item>
    <item>
      <title>Re: SAP_CONVERT_TO_XML_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568721#M1270367</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Issac,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;i seen you are trying to download the file using using GUI_DOWNlOAD using the Application server path..&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;GUI_DOWNlOAD is used for presentation server...&lt;/P&gt;&lt;P&gt;&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;Prabhudas&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Edited by: Prabhu Das on May 13, 2009 5:51 PM&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 13 May 2009 12:20:36 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568721#M1270367</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-13T12:20:36Z</dc:date>
    </item>
    <item>
      <title>Re: SAP_CONVERT_TO_XML_FORMAT</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568722#M1270368</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 change the path to my presentation server and added the XML tag as follows:&lt;/P&gt;&lt;P&gt;"C:\Documents and Settings\APolo\My Documents\outbound.xml" , but still the same result.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How does it suppose to be formatted the internal table I_TAB_SAP_DATA ?&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Thanks.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 19 May 2009 14:00:48 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/sap-convert-to-xml-format/m-p/5568722#M1270368</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2009-05-19T14:00:48Z</dc:date>
    </item>
  </channel>
</rss>

