<?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: internal table to xml-file using simple transformation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319978#M509180</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;Go through the links,&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="104476"&gt;&lt;/A&gt;&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="31699"&gt;&lt;/A&gt;&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="183331"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Wed, 23 May 2007 14:57:10 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-05-23T14:57:10Z</dc:date>
    <item>
      <title>internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319977#M509179</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi there!&lt;/P&gt;&lt;P&gt;I need to save an internal table as xml-file on desktop.&lt;/P&gt;&lt;P&gt;I tried to do this by using call transformation. I wrote the transformation as following below.&lt;/P&gt;&lt;P&gt;But unfortunately, when I test my programm, I get a runtime error and the error message:&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;"The goal was to access the variable "ROOT".However,this access was not possible."&lt;/P&gt;&lt;P&gt;Exception was triggered in line: &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Hope to hear/read from you soon!&lt;/P&gt;&lt;P&gt;Johann&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Message was edited by: &lt;/P&gt;&lt;P&gt;        Johann Just&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 13:09:20 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319977#M509179</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T13:09:20Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319978#M509180</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;Go through the links,&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="104476"&gt;&lt;/A&gt;&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="31699"&gt;&lt;/A&gt;&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="183331"&gt;&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards,&lt;/P&gt;&lt;P&gt;Azaz Ali.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 23 May 2007 14:57:10 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319978#M509180</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-23T14:57:10Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319979#M509181</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Azaz!&lt;/P&gt;&lt;P&gt;thanks for answering so quickly, unfortunately the threads you referred to are not really helping, because i do not have any problems with saving the xml-file, but the transformation  which is called by CALL TRANSACTION is not working(see code of transformation above).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Can you explain to me why?&lt;/P&gt;&lt;P&gt;I insert the program which should use the ST here for better understanding....&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; Report  Z_CONVERT_TO_XML&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;*&amp;amp;&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;&lt;/P&gt;&lt;P&gt;REPORT  z_convert_to_xml.&lt;/P&gt;&lt;P&gt;DATA: xml_out TYPE string .&lt;/P&gt;&lt;P&gt;DATA : wa_itab TYPE STANDARD TABLE OF zuploadtxt&lt;/P&gt;&lt;P&gt;            WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA: l_xml_table TYPE TABLE OF zuploadtxt.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'GUI_UPLOAD'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename                = 'C:\MELD_ZRST.txt'&lt;/P&gt;&lt;P&gt;    filetype                = 'ASC'&lt;/P&gt;&lt;P&gt;    has_field_separator     = 'X'&lt;/P&gt;&lt;P&gt;    replacement             = '#'&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    data_tab                = wa_itab&lt;/P&gt;&lt;P&gt;  EXCEPTIONS&lt;/P&gt;&lt;P&gt;    file_open_error         = 1&lt;/P&gt;&lt;P&gt;    file_read_error         = 2&lt;/P&gt;&lt;P&gt;    no_batch                = 3&lt;/P&gt;&lt;P&gt;    gui_refuse_filetransfer = 4&lt;/P&gt;&lt;P&gt;    invalid_type            = 5&lt;/P&gt;&lt;P&gt;    no_authority            = 6&lt;/P&gt;&lt;P&gt;    unknown_error           = 7&lt;/P&gt;&lt;P&gt;    bad_data_format         = 8&lt;/P&gt;&lt;P&gt;    header_not_allowed      = 9&lt;/P&gt;&lt;P&gt;    separator_not_allowed   = 10&lt;/P&gt;&lt;P&gt;    header_too_long         = 11&lt;/P&gt;&lt;P&gt;    unknown_dp_error        = 12&lt;/P&gt;&lt;P&gt;    access_denied           = 13&lt;/P&gt;&lt;P&gt;    dp_out_of_memory        = 14&lt;/P&gt;&lt;P&gt;    disk_full               = 15&lt;/P&gt;&lt;P&gt;    dp_timeout              = 16&lt;/P&gt;&lt;P&gt;    OTHERS                  = 17.&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;          WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION zz_joerns&lt;/P&gt;&lt;P&gt;SOURCE root = wa_itab&lt;/P&gt;&lt;P&gt;RESULT XML xml_out.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;APPEND xml_out TO l_xml_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL METHOD cl_gui_frontend_services=&amp;gt;gui_download&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    filename = 'c:\temp\XMLTRY.xml'&lt;/P&gt;&lt;P&gt;    filetype = 'BIN'&lt;/P&gt;&lt;P&gt;  CHANGING&lt;/P&gt;&lt;P&gt;    data_tab = l_xml_table.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;IF sy-subrc &amp;lt;&amp;gt; 0.&lt;/P&gt;&lt;P&gt;  MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno&lt;/P&gt;&lt;P&gt;             WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.&lt;/P&gt;&lt;P&gt;ENDIF.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 08:11:37 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319979#M509181</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T08:11:37Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319980#M509182</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi Johann,&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Use the function module &amp;lt;b&amp;gt;SAP_CONVERT_TO_XLS_FORMAT&amp;lt;/b&amp;gt; to download the internal table to an excel file&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Look at this example:&lt;/P&gt;&lt;P&gt;PARAMETERS: p_file LIKE rlgrap-filename DEFAULT 'c:\tmp\test.xls'.&lt;/P&gt;&lt;P&gt;DATA: t100_Lines TYPE STANDARD TABLE OF t001 WITH DEFAULT KEY.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE t100_Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;CALL FUNCTION 'SAP_CONVERT_TO_XLS_FORMAT'&lt;/P&gt;&lt;P&gt;  EXPORTING&lt;/P&gt;&lt;P&gt;    i_filename     = p_file&lt;/P&gt;&lt;P&gt;  TABLES&lt;/P&gt;&lt;P&gt;    i_tab_sap_data = t100_Lines.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Reward Points.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 11:49:51 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319980#M509182</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T11:49:51Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319981#M509183</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi!&lt;/P&gt;&lt;P&gt;I donot have a problem saving the internal table as a xml-file, can be done easily using the CL_XML_DOCUMENT class. But I want to learn more about simple transformations...&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Anyhow, thanks&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 24 May 2007 12:02:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319981#M509183</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-05-24T12:02:57Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319982#M509184</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;check out this excellent weblog series on ST&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/05/04/xml-processing-in-abap-part-1&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/05/17/xml-processing-in-abap-part-2&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/05/20/xml-processing-in-abap-part-3&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/05/27/xml-processing-in-abap-part-4&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/06/15/xml-processing-in-abap--part-5&lt;/P&gt;&lt;P&gt;/people/tobias.trapp/blog/2005/12/08/xml-processing-in-abap--part-6&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Raja&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 26 May 2007 09:13:35 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319982#M509184</guid>
      <dc:creator>athavanraja</dc:creator>
      <dc:date>2007-05-26T09:13:35Z</dc:date>
    </item>
    <item>
      <title>Re: internal table to xml-file using simple transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319983#M509185</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;did it myself&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 25 Jun 2007 08:55:55 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/internal-table-to-xml-file-using-simple-transformation/m-p/2319983#M509185</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-06-25T08:55:55Z</dc:date>
    </item>
  </channel>
</rss>

