<?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: error while downloading the xml file in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830857#M354100</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it means, the xml is not downloaded properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post your code which download xml. we will see whats going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign points and close previous threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="306381"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 29 Jan 2007 06:47:37 GMT</pubDate>
    <dc:creator>athavanraja</dc:creator>
    <dc:date>2007-01-29T06:47:37Z</dc:date>
    <item>
      <title>error while downloading the xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830856#M354099</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;i am having a internal table which contains data in xml format but i am unable to download the data into local system by using 'GUI_DOWNLOAD' fn. module&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;its error its showing is as : &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;The XML page cannot be displayed &lt;/P&gt;&lt;P&gt;Cannot view XML input using XSL style sheet. Please correct the error and then click the Refresh button, or try again later. &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;-&lt;/P&gt;&lt;HR originaltext="-------------------------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;A name contained an invalid character. Error processing resource 'file:///D:/XX.XML'. Line 4, Position 4 &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;MOD/&amp;gt;&amp;lt;RPTSX/&amp;gt;&amp;lt;MANDT/&amp;gt;&amp;lt;SYPSY/&amp;gt;&amp;lt;SYSID/&amp;gt;&amp;lt;SAPRL/&amp;gt;&amp;lt;/T682&amp;gt;&amp;lt;T682&amp;gt;&amp;lt;KVEWE&amp;gt;A&amp;lt;/KV...&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:42:46 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830856#M354099</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T06:42:46Z</dc:date>
    </item>
    <item>
      <title>Re: error while downloading the xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830857#M354100</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;it means, the xml is not downloaded properly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;post your code which download xml. we will see whats going wrong.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;assign points and close previous threads&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_thread" href="https://community.sap.com/" __jive_macro_name="thread" modifiedtitle="true" __default_attr="306381"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 06:47:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830857#M354100</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-29T06:47:37Z</dc:date>
    </item>
    <item>
      <title>Re: error while downloading the xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830858#M354101</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hello Durairaj,&lt;/P&gt;&lt;P&gt; i am fwd the code go thru it and check why the xml file is not downloading,&lt;/P&gt;&lt;P&gt;and after downloading the file i want that file to be in displayed in  .pdf.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT  ZCCSV_TO_XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF TABLE OCCURS 0,&lt;/P&gt;&lt;P&gt;        TABNAME(15) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF HEADER_NAMTAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        NAMTAB TYPE STRING,&lt;/P&gt;&lt;P&gt;       END OF HEADER_NAMTAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF CONVERT_ITAB_TO_XML OCCURS 0,&lt;/P&gt;&lt;P&gt;        FIELDNAME(255) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF CONVERT_ITAB_TO_XML .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF CONVERT_XML_TO_ITAB OCCURS 0,&lt;/P&gt;&lt;P&gt;        FIELDNAME(255) TYPE C,&lt;/P&gt;&lt;P&gt;       END OF CONVERT_XML_TO_ITAB.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA DREF TYPE REF TO DATA.&lt;/P&gt;&lt;P&gt;DATA TNAME LIKE DD02L-TABNAME.&lt;/P&gt;&lt;P&gt;DATA BEGIN OF ZDFIES OCCURS 0.&lt;/P&gt;&lt;P&gt;        INCLUDE STRUCTURE DFIES.&lt;/P&gt;&lt;P&gt;DATA END OF ZDFIES.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: xml_out TYPE string .&lt;/P&gt;&lt;P&gt;DATA: xml_TO_ITAB TYPE string .&lt;/P&gt;&lt;P&gt;data : wa_indx type indx.&lt;/P&gt;&lt;P&gt;DATA : DETAIL(30).&lt;/P&gt;&lt;P&gt;DATA : DATA1 TYPE STRING.&lt;/P&gt;&lt;P&gt;DATA : COMMA . "VALUE ','.&lt;/P&gt;&lt;P&gt;DATA : DBTAB1(15) TYPE C.&lt;/P&gt;&lt;P&gt;FIELD-SYMBOLS: &amp;lt;ITAB&amp;gt; TYPE ANY TABLE,&lt;/P&gt;&lt;P&gt;               &amp;lt;WA&amp;gt;    TYPE ANY,&lt;/P&gt;&lt;P&gt;                &amp;lt;WA1&amp;gt; TYPE ANY .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : BEGIN OF BLOCK b1 WITH FRAME,&lt;/P&gt;&lt;P&gt;                   SKIP 1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;PARAMETERS : SPOOL    RADIOBUTTON GROUP rad1 DEFAULT 'X',&lt;/P&gt;&lt;P&gt;             CSV      RADIOBUTTON GROUP rad1 ,&lt;/P&gt;&lt;P&gt;             XMLTOPDF RADIOBUTTON GROUP rad1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECTION-SCREEN : SKIP 1,&lt;/P&gt;&lt;P&gt;                   END OF BLOCK b1.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;    TABLE-TABNAME = 'T681'.&lt;/P&gt;&lt;P&gt;    APPEND TABLE.&lt;/P&gt;&lt;P&gt;    TABLE-TABNAME = 'T682'.&lt;/P&gt;&lt;P&gt;    APPEND TABLE.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  IF SPOOL = 'X'.&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt;   PERFORM SPOOL.&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF CSV = 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM CSV.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ELSEIF XMLTOPDF = 'X'.&lt;/P&gt;&lt;P&gt;    PERFORM XMLTOPDF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  CSV&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form CSV .&lt;/P&gt;&lt;P&gt;LOOP AT TABLE.&lt;/P&gt;&lt;P&gt;  dbtab1 = TABLE-TABNAME.&lt;/P&gt;&lt;P&gt;  TNAME = dbtab1.&lt;/P&gt;&lt;P&gt;  PERFORM GETFIELDS.&lt;/P&gt;&lt;P&gt;  LOOP AT HEADER_NAMTAB.&lt;/P&gt;&lt;P&gt;   WRITE: HEADER_NAMTAB-NAMTAB, COMMA.&lt;/P&gt;&lt;P&gt;  ENDLOOP.&lt;/P&gt;&lt;P&gt;  PERFORM GET_DETAIL_LIST.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endform.                    " CSV&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form XMLTOPDF .&lt;/P&gt;&lt;P&gt;LOOP AT TABLE.&lt;/P&gt;&lt;P&gt;  PERFORM GET_DETAIL_LIST.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;endform.                    " XMLTOPDF&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;UL&gt;&lt;LI level="1" type="ul"&gt;&lt;P&gt; GETTING THE HEADER OF THE TABLE                                     *&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;************************************************************************&lt;/P&gt;&lt;P&gt;FORM GETFIELDS.&lt;/P&gt;&lt;P&gt;  REFRESH HEADER_NAMTAB.&lt;/P&gt;&lt;P&gt;  CALL FUNCTION 'GET_FIELDTAB'&lt;/P&gt;&lt;P&gt;   EXPORTING&lt;/P&gt;&lt;P&gt;       LANGU              = SY-LANGU&lt;/P&gt;&lt;P&gt;       ONLY               = SPACE&lt;/P&gt;&lt;P&gt;       TABNAME            = TNAME&lt;/P&gt;&lt;P&gt;       WITHTEXT           = 'X'&lt;/P&gt;&lt;P&gt;   TABLES&lt;/P&gt;&lt;P&gt;       FIELDTAB           = ZDFIES&lt;/P&gt;&lt;P&gt;   EXCEPTIONS&lt;/P&gt;&lt;P&gt;       INTERNAL_ERROR      = 01&lt;/P&gt;&lt;P&gt;       NO_TEXTS_FOUND      = 02&lt;/P&gt;&lt;P&gt;       TABLE_HAS_NO_FIELDS = 03&lt;/P&gt;&lt;P&gt;       TABLE_NOT_ACTIV     = 04.&lt;/P&gt;&lt;P&gt;  CASE SY-SUBRC.&lt;/P&gt;&lt;P&gt;    WHEN 0.&lt;/P&gt;&lt;P&gt;      LOOP AT ZDFIES.&lt;/P&gt;&lt;P&gt;        HEADER_NAMTAB-NAMTAB = ZDFIES-SCRTEXT_M.&lt;/P&gt;&lt;P&gt;        APPEND HEADER_NAMTAB.&lt;/P&gt;&lt;P&gt;      ENDLOOP.&lt;/P&gt;&lt;P&gt;    WHEN OTHERS.&lt;/P&gt;&lt;P&gt;      MESSAGE ID SY-MSGID TYPE SY-MSGTY NUMBER SY-MSGNO&lt;/P&gt;&lt;P&gt;       WITH  SY-SUBRC.&lt;/P&gt;&lt;P&gt;  ENDCASE.&lt;/P&gt;&lt;P&gt;ENDFORM.                  " GETFIELEDS&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*&amp;amp;      Form  GET_DETAIL_LIST&lt;/P&gt;&lt;P&gt;&lt;STRONG&gt;&amp;amp;----&lt;/STRONG&gt;&lt;/P&gt;&lt;HR originaltext="----------------------------------------------------------------" /&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;form GET_DETAIL_LIST .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CREATE DATA DREF TYPE STANDARD TABLE OF (TABLE)&lt;/P&gt;&lt;P&gt;                            WITH NON-UNIQUE DEFAULT KEY.&lt;/P&gt;&lt;P&gt;  ASSIGN DREF-&amp;gt;* TO &amp;lt;ITAB&amp;gt; .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  SELECT * FROM (TABLE) INTO TABLE &amp;lt;ITAB&amp;gt;.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;  CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;  SOURCE tab = &amp;lt;ITAB&amp;gt;[]&lt;/P&gt;&lt;P&gt;  RESULT XML xml_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------" /&gt;&lt;P&gt; Convert to TABLE&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'HR_EFI_CONVERT_STRING_TO_TABLE'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;i_string = xml_out&lt;/P&gt;&lt;P&gt;i_tabline_length = 100&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;et_table = CONVERT_ITAB_TO_XML.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="---------" /&gt;&lt;P&gt; Download&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_DOWNLOAD'&lt;/P&gt;&lt;P&gt;EXPORTING&lt;/P&gt;&lt;P&gt;filetype = 'ASC'&lt;/P&gt;&lt;P&gt;filename = 'D:\XX.XML'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = CONVERT_ITAB_TO_XML&lt;/P&gt;&lt;P&gt;.&lt;/P&gt;&lt;P&gt;endform.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:29:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830858#M354101</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-01-29T07:29:51Z</dc:date>
    </item>
    <item>
      <title>Re: error while downloading the xml file</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830859#M354102</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check this thread&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A class="jive_macro jive_macro_message" href="https://community.sap.com/" __jive_macro_name="message" modifiedtitle="true" __default_attr="975885"&gt;&lt;/A&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 29 Jan 2007 07:39:54 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/error-while-downloading-the-xml-file/m-p/1830859#M354102</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-01-29T07:39:54Z</dc:date>
    </item>
  </channel>
</rss>

