<?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 code to transfer xml file to abap internal table using transformation in Application Development and Automation Discussions</title>
    <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636282#M606548</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt;Given the following xml file .the requirementis to  display and transfer the xml file to internal table usin transformation and gui_upload.If any onehaving simple code on this please send .&lt;/P&gt;&lt;P&gt; Can any one sugest the steps to be followed to write source code using simple transformation.&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt; &lt;/P&gt;&lt;P&gt;- &amp;lt;Negara&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MANDT&amp;gt;600&amp;lt;/MANDT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZCODE&amp;gt;500&amp;lt;/ZCODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZDESC&amp;gt;Pening Lalat&amp;lt;/ZDESC&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZSAPCD&amp;gt;T1&amp;lt;/ZSAPCD&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MANDT&amp;gt;600&amp;lt;/MANDT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZCODE&amp;gt;600&amp;lt;/ZCODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZDESC&amp;gt;Pening Lalat2&amp;lt;/ZDESC&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZSAPCD&amp;gt;T2&amp;lt;/ZSAPCD&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/Negara&amp;gt;&lt;/P&gt;&lt;P&gt;Thaking You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 03 Aug 2007 03:29:06 GMT</pubDate>
    <dc:creator>Former Member</dc:creator>
    <dc:date>2007-08-03T03:29:06Z</dc:date>
    <item>
      <title>code to transfer xml file to abap internal table using transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636282#M606548</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hi friends &lt;/P&gt;&lt;P&gt;Given the following xml file .the requirementis to  display and transfer the xml file to internal table usin transformation and gui_upload.If any onehaving simple code on this please send .&lt;/P&gt;&lt;P&gt; Can any one sugest the steps to be followed to write source code using simple transformation.&lt;/P&gt;&lt;P&gt;&amp;lt;?xml version="1.0" encoding="utf-8" ?&amp;gt; &lt;/P&gt;&lt;P&gt;- &amp;lt;Negara&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MANDT&amp;gt;600&amp;lt;/MANDT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZCODE&amp;gt;500&amp;lt;/ZCODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZDESC&amp;gt;Pening Lalat&amp;lt;/ZDESC&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZSAPCD&amp;gt;T1&amp;lt;/ZSAPCD&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;item&amp;gt;&lt;/P&gt;&lt;P&gt;- &amp;lt;COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;MANDT&amp;gt;600&amp;lt;/MANDT&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZCODE&amp;gt;600&amp;lt;/ZCODE&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZDESC&amp;gt;Pening Lalat2&amp;lt;/ZDESC&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;ZSAPCD&amp;gt;T2&amp;lt;/ZSAPCD&amp;gt; &lt;/P&gt;&lt;P&gt;  &amp;lt;/COUNTRY&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/item&amp;gt;&lt;/P&gt;&lt;P&gt;  &amp;lt;/Negara&amp;gt;&lt;/P&gt;&lt;P&gt;Thaking You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 03:29:06 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636282#M606548</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T03:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: code to transfer xml file to abap internal table using transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636283#M606549</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;1. itab --- &amp;gt; xml&lt;/P&gt;&lt;P&gt;xml ---&amp;gt; itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;2. This program will do both.&lt;/P&gt;&lt;P&gt;(just copy paste in new program)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;3.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REPORT abc.&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; DATA&lt;/P&gt;&lt;P&gt;DATA : t001 LIKE TABLE OF t001 WITH HEADER LINE.&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF itab OCCURS 0,&lt;/P&gt;&lt;P&gt;a(100) TYPE c,&lt;/P&gt;&lt;P&gt;END OF itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA: xml_out TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;DATA : BEGIN OF upl OCCURS 0,&lt;/P&gt;&lt;P&gt;f(255) TYPE c,&lt;/P&gt;&lt;P&gt;END OF upl.&lt;/P&gt;&lt;P&gt;DATA: xmlupl TYPE string .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;FIRST PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="-------------" /&gt;&lt;P&gt; Fetch Data&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;SELECT * FROM t001 INTO TABLE t001.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE tab = t001[]&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 = itab.&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 = 'BIN'&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 = itab.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;UL&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;LI level="31" type="ul"&gt;&lt;P&gt;SECOND PHASE&lt;/P&gt;&lt;/LI&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;/UL&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;REFRESH t001.&lt;/P&gt;&lt;P&gt;CLEAR t001.&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 = 'D:\XX.XML'&lt;/P&gt;&lt;P&gt;filetype = 'BIN'&lt;/P&gt;&lt;P&gt;TABLES&lt;/P&gt;&lt;P&gt;data_tab = upl.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;LOOP AT upl.&lt;/P&gt;&lt;P&gt;CONCATENATE xmlupl upl-f INTO xmlupl.&lt;/P&gt;&lt;P&gt;ENDLOOP.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;*----&lt;/P&gt;&lt;HR originaltext="--------------" /&gt;&lt;P&gt; XML&lt;/P&gt;&lt;P&gt;CALL TRANSFORMATION ('ID')&lt;/P&gt;&lt;P&gt;SOURCE XML xmlupl&lt;/P&gt;&lt;P&gt;RESULT tab = t001[].&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&amp;lt;b&amp;gt;Reward points if useful&amp;lt;/b&amp;gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Regards&lt;/P&gt;&lt;P&gt;Ashu&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 03:44:58 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636283#M606549</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T03:44:58Z</dc:date>
    </item>
    <item>
      <title>Re: code to transfer xml file to abap internal table using transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636284#M606550</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;hi&lt;/P&gt;&lt;P&gt;good&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;go through this report&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;A href="http://www.sap-img.com/abap/xml-file-to-word-document-through-sap.htm" target="test_blank"&gt;http://www.sap-img.com/abap/xml-file-to-word-document-through-sap.htm&lt;/A&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;thanks&lt;/P&gt;&lt;P&gt;mrutyun^&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 03:59:57 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636284#M606550</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T03:59:57Z</dc:date>
    </item>
    <item>
      <title>Re: code to transfer xml file to abap internal table using transformation</title>
      <link>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636285#M606551</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hai Ashu &lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;How to write code in transformation (simple transformation ) .&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;Than You&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 03 Aug 2007 04:13:28 GMT</pubDate>
      <guid>https://community.sap.com/t5/application-development-and-automation-discussions/code-to-transfer-xml-file-to-abap-internal-table-using-transformation/m-p/2636285#M606551</guid>
      <dc:creator>Former Member</dc:creator>
      <dc:date>2007-08-03T04:13:28Z</dc:date>
    </item>
  </channel>
</rss>

